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
637988b1
Commit
637988b1
authored
May 05, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI Polish, refactoring markup
parent
71edd9ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
47 deletions
+45
-47
public/app/partials/dasheditor.html
+43
-45
public/app/partials/templating_editor.html
+1
-1
public/css/less/forms.less
+1
-1
No files found.
public/app/partials/dasheditor.html
View file @
637988b1
...
...
@@ -5,7 +5,7 @@
</div>
<div
ng-model=
"editor.index"
bs-tabs
style=
"text-transform:capitalize;"
>
<div
ng-repeat=
"tab in ['General', 'Rows']"
data-title=
"{{tab}}"
>
<div
ng-repeat=
"tab in ['General', 'Rows'
, 'Links'
]"
data-title=
"{{tab}}"
>
</div>
<div
ng-repeat=
"tab in dashboard.nav"
data-title=
"{{tab.type}}"
>
</div>
...
...
@@ -14,13 +14,12 @@
<button
class=
"gf-box-header-close-btn"
ng-click=
"dismiss();"
>
<i
class=
"fa fa-remove"
></i>
</button>
</div>
<div
class=
"gf-box-body"
style=
"padding-bottom: 50px;"
>
<div
ng-if=
"editor.index == 0"
>
<div
class=
"editor-row"
>
<div
class=
"section"
>
<div
class=
"
tight-form-
section"
>
<h5>
Dashboard info
</h5>
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list"
>
...
...
@@ -52,45 +51,51 @@
</ul>
<div
class=
"clearfix"
></div>
</div>
</div>
</div>
<div
class=
"section"
>
<div
class=
"editor-row"
>
<div
class=
"tight-form-section"
>
<h5>
Toggles
</h5>
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 181px"
>
<
label
class=
"checkbox-label"
for=
"dashboard.editable"
>
Editable
</label
>
<li
class=
"tight-form-item"
>
<
editor-checkbox
text=
"Editable"
model=
"dashboard.editable"
></editor-checkbox
>
</li>
<li>
<
li
class=
"tight-form-item last"
>
<input
class=
"cr1"
id=
"dashboard.editable"
type=
"checkbox"
ng-model=
"dashboard.editable"
ng-checked=
"dashboard.editable"
>
<label
for=
"dashboard.editable"
class=
"cr1"
></label
>
<
/li
>
<li
class=
"tight-form-item"
>
<
editor-checkbox
text=
"Hide Controls (CTRL+H)"
model=
"dashboard.hideControls"
></editor-checkbox
>
</li
>
<li
class=
"tight-form-item"
>
<
editor-checkbox
text=
"Shared Crosshair (CTRL+O)"
model=
"dashboard.sharedCrosshair"
></editor-checkbox
>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
<div
class=
"tight-form"
>
</div>
</div>
</div>
<div
ng-if=
"editor.index == 1"
>
<div
class=
"editor-row"
>
<div
class=
"tight-form-section"
>
<h5>
Rows settings
</h5>
<div
class=
"tight-form"
ng-repeat=
"row in dashboard.rows"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 181px"
>
<label
class=
"checkbox-label"
for=
"dashboard.hideControls"
>
Hide Controls (CTRL+H)
</label>
<li
class=
"tight-form-item"
>
Title
</li>
<li
class=
"tight-form-item last"
>
<input
class=
"cr1"
id=
"dashboard.hideControls"
type=
"checkbox"
ng-model=
"dashboard.hideControls"
ng-checked=
"dashboard.hideControls"
>
<label
for=
"dashboard.hideControls"
class=
"cr1"
></label>
<li>
<input
type=
"text"
class=
"input tight-form-input"
style=
"width: 400px;"
ng-model=
'row.title'
></input>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 181px"
>
<label
class=
"checkbox-label"
for=
"dashboard.sharedCrosshair"
>
Shared Crosshair (CTRL+H)
</label>
<li
class=
"tight-form-item"
>
<editor-checkbox
text=
"Show title"
model=
"row.showTitle"
></editor-checkbox>
</li>
<li
class=
"tight-form-item"
>
<i
ng-click=
"_.move(dashboard.rows,$index,$index-1)"
ng-hide=
"$first"
class=
"pointer fa fa-arrow-up"
></i>
<i
ng-click=
"_.move(dashboard.rows,$index,$index+1)"
ng-hide=
"$last"
class=
"pointer fa fa-arrow-down"
></i>
</li>
<li
class=
"tight-form-item last"
>
<input
class=
"cr1"
id=
"dashboard.sharedCrosshair"
type=
"checkbox"
ng-model=
"dashboard.sharedCrosshair"
ng-checked=
"dashboard.sharedCrosshair"
>
<label
for=
"dashboard.sharedCrosshair"
class=
"cr1"
></label>
<i
ng-click=
"dashboard.rows = _.without(dashboard.rows,row)"
class=
"pointer fa fa-remove"
></i>
</li>
</ul>
<div
class=
"clearfix"
></div>
...
...
@@ -99,29 +104,22 @@
</div>
</div>
<div
ng-if=
"editor.index ==
1
"
>
<div
ng-if=
"editor.index ==
2
"
>
<div
class=
"editor-row"
>
<div
class=
"span6"
>
<table
class=
"grafana-options-table"
>
<tr
ng-repeat=
"row in dashboard.rows"
>
<td
style=
"width: 97%"
>
{{row.title}}
</td>
<td><i
ng-click=
"_.move(dashboard.rows,$index,$index-1)"
ng-hide=
"$first"
class=
"pointer fa fa-arrow-up"
></i></td>
<td><i
ng-click=
"_.move(dashboard.rows,$index,$index+1)"
ng-hide=
"$last"
class=
"pointer fa fa-arrow-down"
></i></td>
<td>
<a
ng-click=
"dashboard.rows = _.without(dashboard.rows,row)"
class=
"btn btn-danger btn-small"
>
<i
class=
"fa fa-remove"
></i>
</a>
</td>
</tr>
</table>
<div
class=
"tight-form-section"
>
<h5>
Links and Navigation Options
<h5>
<div
class=
"tight-form"
>
<ul
class=
"tight-form-list"
>
<li
class=
"tight-form-item"
style=
"width: 90px"
>
</li>
</ul>
<div
class=
"clearfix"
></div>
</div>
</div>
<div
class=
"clearfix"
></div>
</div>
</div>
<div
ng-repeat=
"pulldown in dashboard.nav"
ng-controller=
"SubmenuCtrl"
ng-show=
"editor.index ==
2
+$index"
>
<div
ng-repeat=
"pulldown in dashboard.nav"
ng-controller=
"SubmenuCtrl"
ng-show=
"editor.index ==
3
+$index"
>
<ng-include
ng-show=
"pulldown.enable"
src=
"pulldownEditorPath(pulldown.type)"
></ng-include>
<button
ng-hide=
"pulldown.enable"
class=
"btn"
ng-click=
"pulldown.enable = true"
>
Enable the {{pulldown.type}}
</button>
</div>
...
...
public/app/partials/templating_editor.html
View file @
637988b1
...
...
@@ -65,7 +65,7 @@
Name
</li>
<li>
<input
type=
"text"
class=
"input-xlarge tight-form-input"
placeholder=
"
name
"
ng-model=
'current.name'
></input>
<input
type=
"text"
class=
"input-xlarge tight-form-input"
placeholder=
"
apps.servers.*
"
ng-model=
'current.name'
></input>
</li>
<li
class=
"tight-form-item"
>
Type
...
...
public/css/less/forms.less
View file @
637988b1
...
...
@@ -24,7 +24,7 @@ label.cr1 {
clear: none;
text-indent: 2px;
margin: 0 0 0px 0;
padding: 0 0 0 2
0
px;
padding: 0 0 0 2
3
px;
vertical-align:middle;
background: url(@checkboxImageUrl) left top no-repeat;
cursor:pointer;
...
...
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