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
3db11884
Commit
3db11884
authored
Feb 24, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ux(templates): move create new button to bottom of page
parent
be3d38ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
40 deletions
+43
-40
public/app/features/annotations/partials/editor.html
+3
-0
public/app/features/templating/partials/editor.html
+40
-40
No files found.
public/app/features/annotations/partials/editor.html
View file @
3db11884
...
...
@@ -15,6 +15,9 @@
{{currentAnnotation.name}}
</a>
</li>
<li
class=
"gf-tabs-item"
ng-show=
"mode === 'new'"
>
<span
class=
"active gf-tabs-link"
>
New
</span>
</li>
</ul>
<button
class=
"tabbed-view-close-btn"
ng-click=
"dismiss();"
>
...
...
public/app/features/templating/partials/editor.html
View file @
3db11884
...
...
@@ -15,11 +15,8 @@
{{current.name}}
</a>
</li>
<li
class=
"gf-tabs-item"
>
<a
class=
"gf-tabs-link"
ng-click=
"mode = 'new';"
ng-class=
"{active: mode === 'new'}"
>
<i
class=
"fa fa-plus"
></i>
New
</a>
<li
class=
"gf-tabs-item"
ng-show=
"mode === 'new'"
>
<span
class=
"active gf-tabs-link"
>
New
</span>
</li>
</ul>
...
...
@@ -31,42 +28,45 @@
<div
class=
"tabbed-view-body"
>
<div
ng-if=
"mode === 'list'"
>
<div
ng-if=
"variables.length === 0"
>
<em>
No template variables defined
</em>
</div>
<table
class=
"grafana-options-table"
>
<tr
ng-repeat=
"variable in variables"
>
<td
style=
"width: 1%"
>
<span
class=
"template-variable"
>
${{variable.name}}
</span>
</td>
<td
class=
"max-width"
style=
"max-width: 200px;"
>
{{variable.query}}
</td>
<td
style=
"width: 1%"
><i
ng-click=
"_.move(variables,$index,$index-1)"
ng-hide=
"$first"
class=
"pointer fa fa-arrow-up"
></i></td>
<td
style=
"width: 1%"
><i
ng-click=
"_.move(variables,$index,$index+1)"
ng-hide=
"$last"
class=
"pointer fa fa-arrow-down"
></i></td>
<td
style=
"width: 1%"
>
<a
ng-click=
"duplicate(variable)"
class=
"btn btn-inverse btn-mini"
>
Duplicate
</a>
</td>
<td
style=
"width: 1%"
>
<a
ng-click=
"edit(variable)"
class=
"btn btn-inverse btn-mini"
>
<i
class=
"fa fa-edit"
></i>
Edit
</a>
</td>
<td
style=
"width: 1%"
>
<a
ng-click=
"removeVariable(variable)"
class=
"btn btn-danger btn-mini"
>
<i
class=
"fa fa-remove"
></i>
</a>
</td>
</tr>
</table>
</div>
<div
class=
"editor-row row"
>
<div
ng-if=
"variables.length === 0"
>
<em>
No template variables defined
</em>
</div>
<table
class=
"grafana-options-table"
>
<tr
ng-repeat=
"variable in variables"
>
<td
style=
"width: 1%"
>
<span
class=
"template-variable"
>
${{variable.name}}
</span>
</td>
<td
class=
"max-width"
style=
"max-width: 200px;"
>
{{variable.query}}
</td>
<td
style=
"width: 1%"
><i
ng-click=
"_.move(variables,$index,$index-1)"
ng-hide=
"$first"
class=
"pointer fa fa-arrow-up"
></i></td>
<td
style=
"width: 1%"
><i
ng-click=
"_.move(variables,$index,$index+1)"
ng-hide=
"$last"
class=
"pointer fa fa-arrow-down"
></i></td>
<td
style=
"width: 1%"
>
<a
ng-click=
"duplicate(variable)"
class=
"btn btn-inverse btn-mini"
>
Duplicate
</a>
</td>
<td
style=
"width: 1%"
>
<a
ng-click=
"edit(variable)"
class=
"btn btn-inverse btn-mini"
>
<i
class=
"fa fa-edit"
></i>
Edit
</a>
</td>
<td
style=
"width: 1%"
>
<a
ng-click=
"removeVariable(variable)"
class=
"btn btn-danger btn-mini"
>
<i
class=
"fa fa-remove"
></i>
</a>
</td>
</tr>
</table>
<div
class=
"gf-form"
ng-show=
"mode === 'list'"
>
<div
class=
"gf-form-button-row"
>
<a
type=
"button"
class=
"btn gf-form-button btn-success"
ng-click=
"mode = 'new';"
><i
class=
"fa fa-plus"
></i>
New
</a>
</div>
</div>
...
...
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