playlists.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <page-header model="ctrl.navModel"></page-header>
  2. <div class="page-container page-body">
  3. <div ng-if="ctrl.playlists.length > 0">
  4. <div class="page-action-bar">
  5. <div class="page-action-bar__spacer"></div>
  6. <a class="btn btn-success pull-right" href="playlists/create">
  7. <i class="fa fa-plus"></i>
  8. New Playlist
  9. </a>
  10. </div>
  11. <table class="filter-table filter-table--hover">
  12. <thead>
  13. <th><strong>Name</strong></th>
  14. <th style="width: 100px"></th>
  15. <th style="width: 78px"></th>
  16. </thead>
  17. <tr ng-repeat="playlist in ctrl.playlists">
  18. <td class="link-td">
  19. <a href="playlists/edit/{{playlist.id}}">{{playlist.name}}</a>
  20. </td>
  21. <td class="dropdown">
  22. <button class="btn btn-inverse btn-small" data-toggle="dropdown">
  23. Start playlist
  24. <i class="fa fa-caret-down"></i>
  25. </button>
  26. <ul class="dropdown-menu" role="menu">
  27. <li>
  28. <a href="{{playlist.startUrl}}">
  29. <i class="fa fa-play"></i> In Normal mode</span>
  30. </a>
  31. <a href="{{playlist.startUrl}}?kiosk=tv">
  32. <i class="fa fa-play"></i> In TV mode</span>
  33. </a>
  34. <a href="{{playlist.startUrl}}?kiosk=tv&autofitpanels">
  35. <i class="fa fa-play"></i> In TV mode <span class="muted">(with auto fit panels)</span>
  36. </a>
  37. <a href="{{playlist.startUrl}}?kiosk">
  38. <i class="fa fa-play"></i> In Kiosk mode</span>
  39. </a>
  40. <a ng-href="{{playlist.startUrl}}?kiosk&autofitpanels">
  41. <i class="fa fa-play"></i> In Kiosk mode <span class="muted">(with auto fit panels)</span>
  42. </a>
  43. </li>
  44. </ul>
  45. </td>
  46. <td class="text-right">
  47. <a ng-click="ctrl.removePlaylist(playlist)" class="btn btn-danger btn-small">
  48. <i class="fa fa-remove"></i>
  49. </a>
  50. </td>
  51. </tr>
  52. </table>
  53. </div>
  54. <div ng-if="ctrl.playlists.length === 0">
  55. <empty-list-cta model="{
  56. title: 'There are no playlists created yet',
  57. buttonIcon: 'fa fa-plus',
  58. buttonLink: 'playlists/create',
  59. buttonTitle: ' Create Playlist',
  60. proTip: 'You can use playlists to remove control TVs',
  61. proTipLink: 'http://docs.grafana.org/reference/playlist/',
  62. proTipLinkTitle: 'Learn more',
  63. proTipTarget: '_blank'
  64. }" />
  65. </div>
  66. </div>