playlists.html 2.4 KB

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