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
31ea5f55
Commit
31ea5f55
authored
Feb 22, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(playlist): changes tag result into a list
parent
fc62af6b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
11 deletions
+20
-11
public/app/features/playlist/partials/playlist.html
+15
-5
public/sass/pages/_playlist.scss
+5
-6
No files found.
public/app/features/playlist/partials/playlist.html
View file @
31ea5f55
...
...
@@ -26,7 +26,6 @@
<div
class=
"row"
>
<div
class=
"col-md-6"
>
<div
class=
"playlist-search-containerwrapper"
>
<div
class=
"max-width-32"
>
<h5
class=
"page-headering playlist-column-header"
>
Available
</h5>
...
...
@@ -40,7 +39,9 @@
<table
class=
"grafana-options-table playlist-available-list"
>
<tr
ng-repeat=
"playlistItem in ctrl.filteredDashboards"
>
<td>
<i
class=
"icon-gf icon-gf-dashboard"
></i>
{{playlistItem.title}}
<i
class=
"icon-gf icon-gf-dashboard"
></i>
{{playlistItem.title}}
<i
class=
"fa fa-star"
ng-show=
"playlistItem.isStarred"
></i>
</td>
<td
class=
"add-dashboard"
>
<button
class=
"btn btn-inverse btn-mini pull-right"
ng-click=
"ctrl.addPlaylistItem(playlistItem)"
>
...
...
@@ -52,13 +53,22 @@
</table>
</div>
<div
class=
"playlist-search-results-container"
ng-if=
"ctrl.filteredTags.length > 0;"
>
<div
ng-repeat=
"tag in ctrl.filteredTags"
class=
"pointer tag-result-container"
ng-click=
"ctrl.addTagPlaylistItem(tag, $event)"
>
<table
class=
"grafana-options-table playlist-available-list"
>
<tr
ng-repeat=
"tag in ctrl.filteredTags"
>
<td>
<a
class=
"search-result-tag label label-tag"
tag-color-from-name=
"tag.term"
>
<i
class=
"fa fa-tag"
></i>
<span>
{{tag.term}}
({{tag.count}})
</span>
</a>
</div>
</td>
<td
class=
"add-dashboard"
>
<button
class=
"btn btn-inverse btn-mini pull-right"
ng-click=
"ctrl.addPlaylistItem(playlistItem)"
>
<i
class=
"fa fa-plus"
></i>
Add to playlist
</button>
</td>
</tr>
</table>
</div>
</div>
...
...
public/sass/pages/_playlist.scss
View file @
31ea5f55
...
...
@@ -27,6 +27,7 @@
margin-bottom
:
15px
;
}
.playlist-search-field-wrapper
{
input
{
width
:
100%
;
...
...
@@ -109,6 +110,10 @@
.add-dashboard
{
text-align
:
center
;
}
.fa-star
{
color
:
$orange
;
}
}
.playlist-column-header
{
...
...
@@ -120,8 +125,3 @@
.selected-playlistitem-settings
{
text-align
:
right
;
}
.tag-result-container
{
width
:
160px
;
float
:
left
;
}
\ No newline at end of file
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