Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
be1fb131
Commit
be1fb131
authored
Jan 04, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(playlist): minor ux changes for playlists
parent
aa83dc15
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
28 deletions
+20
-28
public/app/features/playlist/partials/playlist-remove.html
+1
-1
public/app/features/playlist/partials/playlists.html
+19
-24
public/app/features/playlist/playlistsCtrl.js
+0
-3
No files found.
public/app/features/playlist/partials/playlist-remove.html
View file @
be1fb131
<p
class=
"text-center"
>
Are you sure want to delete "{{
playlist.title
}}" playlist?
</p>
<p
class=
"text-center"
>
Are you sure want to delete "{{
playlist.title
}}" playlist?
</p>
<p
class=
"text-center"
>
<button
type=
"button"
class=
"btn btn-danger"
ng-click=
"removePlaylist()"
>
Yes
</button>
<button
type=
"button"
class=
"btn btn-default"
ng-click=
"dismiss()"
>
No
</button>
...
...
public/app/features/playlist/partials/playlists.html
View file @
be1fb131
<topnav
icon=
"fa fa-fw fa-list"
title=
"Playlists"
></topnav>
<div
class=
"page-container"
>
<div
class=
"page"
>
<
button
type=
"submit"
class=
"btn btn-success"
ng-click=
"createPlaylist()"
>
Create playlist
</button
>
<div
class=
"page-container"
style=
"background: transparent; border: 0;"
>
<div
class=
"page
-wide
"
>
<
h2>
Playlists
</h2
>
<br>
<br>
<button
type=
"submit"
class=
"btn btn-success pull-right"
ng-click=
"createPlaylist()"
>
<i
class=
"fa fa-plus"
></i>
New playlist
</button>
<br
/>
<div
ng-if=
"playlists.length === 0"
>
<em>
No saved playlists
</em>
</div>
<table
class=
"filter-table"
style=
"margin-top: 20px"
>
<thead>
<th><strong>
Title
</strong></th>
<th><strong>
Url
</strong></th>
<th
style=
"width: 61px"
></th>
<th
style=
"width: 61px"
></th>
<th
style=
"width: 25px"
></th>
<div
ng-if=
"playlists.length > 0"
>
<em>
Saved playlists
</em>
</div>
<br>
<table
class=
"grafana-options-table"
ng-if=
"playlists.length > 0"
>
<tr>
<td><strong>
Title
</strong></td>
<td
colspan=
"0"
><strong>
Url
</strong></td>
</tr>
</thead>
<tr
ng-repeat=
"playlist in playlists"
>
<td
style=
"width:1%"
>
<td
>
{{playlist.title}}
</td>
<td
style=
"width:90%"
>
<td
>
<a
href=
"{{ playlistUrl(playlist) }}"
>
{{ playlistUrl(playlist) }}
</a>
</td>
<td
style=
"width: 1%
"
>
<td
class=
"text-center
"
>
<a
href=
"{{ playlistUrl(playlist) }}"
class=
"btn btn-inverse btn-mini"
>
<i
class=
"fa fa-play"
></i>
Play
</a>
</td>
<td
style=
"width: 1%
"
>
<td
class=
"text-right
"
>
<a
href=
"playlists/edit/{{playlist.id}}"
class=
"btn btn-inverse btn-mini"
>
<i
class=
"fa fa-edit"
></i>
Edit
</a>
</td>
<td
style=
"width: 1%
"
>
<td
class=
"text-right
"
>
<a
ng-click=
"removePlaylist(playlist)"
class=
"btn btn-danger btn-mini"
>
<i
class=
"fa fa-remove"
></i>
</a>
...
...
public/app/features/playlist/playlistsCtrl.js
View file @
be1fb131
...
...
@@ -41,13 +41,10 @@ function (angular, _) {
src
:
'./app/features/playlist/partials/playlist-remove.html'
,
scope
:
modalScope
});
};
$scope
.
createPlaylist
=
function
()
{
$location
.
path
(
'/playlists/create'
);
};
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment