2017-12-01 11:32:00 +01:00
|
|
|
<page-header model="ctrl.navModel"></page-header>
|
2015-12-22 02:07:15 -08:00
|
|
|
|
2017-12-01 11:32:00 +01:00
|
|
|
<div class="page-container page-body">
|
2018-08-28 14:23:03 +02:00
|
|
|
<div ng-if="ctrl.playlists.length > 0">
|
|
|
|
|
<div class="page-action-bar">
|
|
|
|
|
<div class="page-action-bar__spacer"></div>
|
2019-02-05 12:05:02 +01:00
|
|
|
<a class="btn btn-primary pull-right" href="playlists/create">
|
2019-02-12 17:08:40 +01:00
|
|
|
New playlist
|
2018-08-28 14:23:03 +02:00
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
2018-08-30 11:52:31 +02:00
|
|
|
<table class="filter-table filter-table--hover">
|
2018-08-28 14:23:03 +02:00
|
|
|
<thead>
|
2018-08-30 11:52:31 +02:00
|
|
|
<th><strong>Name</strong></th>
|
|
|
|
|
<th style="width: 100px"></th>
|
2018-08-28 14:23:03 +02:00
|
|
|
<th style="width: 78px"></th>
|
|
|
|
|
</thead>
|
|
|
|
|
<tr ng-repeat="playlist in ctrl.playlists">
|
2018-08-30 11:52:31 +02:00
|
|
|
<td class="link-td">
|
2018-08-28 14:23:03 +02:00
|
|
|
<a href="playlists/edit/{{playlist.id}}">{{playlist.name}}</a>
|
|
|
|
|
</td>
|
2018-08-30 11:52:31 +02:00
|
|
|
<td class="dropdown">
|
|
|
|
|
<button class="btn btn-inverse btn-small" data-toggle="dropdown">
|
|
|
|
|
Start playlist
|
|
|
|
|
<i class="fa fa-caret-down"></i>
|
|
|
|
|
</button>
|
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
|
|
|
<li>
|
|
|
|
|
<a href="{{playlist.startUrl}}">
|
|
|
|
|
<i class="fa fa-play"></i> In Normal mode</span>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{playlist.startUrl}}?kiosk=tv">
|
|
|
|
|
<i class="fa fa-play"></i> In TV mode</span>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{playlist.startUrl}}?kiosk=tv&autofitpanels">
|
|
|
|
|
<i class="fa fa-play"></i> In TV mode <span class="muted">(with auto fit panels)</span>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{playlist.startUrl}}?kiosk">
|
|
|
|
|
<i class="fa fa-play"></i> In Kiosk mode</span>
|
|
|
|
|
</a>
|
|
|
|
|
<a ng-href="{{playlist.startUrl}}?kiosk&autofitpanels">
|
|
|
|
|
<i class="fa fa-play"></i> In Kiosk mode <span class="muted">(with auto fit panels)</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
2018-08-28 14:23:03 +02:00
|
|
|
</td>
|
2018-08-30 11:52:31 +02:00
|
|
|
<td class="text-right">
|
2018-08-28 14:23:03 +02:00
|
|
|
<a ng-click="ctrl.removePlaylist(playlist)" class="btn btn-danger btn-small">
|
|
|
|
|
<i class="fa fa-remove"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2016-02-19 15:19:01 +01:00
|
|
|
</div>
|
2018-08-28 14:23:03 +02:00
|
|
|
<div ng-if="ctrl.playlists.length === 0">
|
2019-09-06 10:34:10 +02:00
|
|
|
<empty-list-cta
|
|
|
|
|
title="'There are no playlists created yet'"
|
|
|
|
|
buttonIcon="'fa fa-plus'"
|
|
|
|
|
buttonLink="'playlists/create'"
|
|
|
|
|
buttonTitle="'Create Playlist'"
|
|
|
|
|
proTip="'You can use playlists to cycle dashboards on TVs without user control'"
|
|
|
|
|
proTipLink="'http://docs.grafana.org/reference/playlist/'"
|
|
|
|
|
proTipLinkTitle="'Learn more'"
|
|
|
|
|
proTipTarget="'_blank'" />
|
2018-08-28 14:23:03 +02:00
|
|
|
</div>
|
2015-12-22 02:07:15 -08:00
|
|
|
</div>
|