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
1d769fe4
Commit
1d769fe4
authored
Jan 09, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Worked on handling marking a datasource as the default
parent
1b9b8ba2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
src/app/features/admin/partials/datasources.html
+14
-1
src/views/index.html
+1
-1
No files found.
src/app/features/admin/partials/datasources.html
View file @
1d769fe4
...
@@ -26,14 +26,26 @@
...
@@ -26,14 +26,26 @@
<em>
No datasources defined
</em>
<em>
No datasources defined
</em>
</div>
</div>
<table
class=
"grafana-options-table"
>
<table
class=
"grafana-options-table"
>
<tr>
<td><strong>
Name
<strong></td>
<td><strong>
Url
<strong></td>
<td><strong><strong></td>
<td><strong><strong></td>
<td><strong><strong></td>
</tr>
<tr
ng-repeat=
"ds in datasources"
>
<tr
ng-repeat=
"ds in datasources"
>
<td
style=
"width:1%"
>
<td
style=
"width:1%"
>
<i
class=
"
icon-hdd
"
></i>
<i
class=
"
fa fa-database
"
></i>
{{ds.name}}
{{ds.name}}
</td>
</td>
<td
style=
"width:90%"
>
<td
style=
"width:90%"
>
{{ds.url}}
{{ds.url}}
</td>
</td>
<td
style=
"width:2%"
class=
"text-center"
>
<span
ng-if=
"ds.isDefault"
>
<span
class=
"label label-info"
>
default
</span>
</span>
</td>
<td
style=
"width: 1%"
>
<td
style=
"width: 1%"
>
<a
ng-click=
"edit(ds)"
class=
"btn btn-success btn-mini"
>
<a
ng-click=
"edit(ds)"
class=
"btn btn-success btn-mini"
>
<i
class=
"fa fa-edit"
></i>
<i
class=
"fa fa-edit"
></i>
...
@@ -60,6 +72,7 @@
...
@@ -60,6 +72,7 @@
<label
class=
"small"
>
Type
</label>
<label
class=
"small"
>
Type
</label>
<select
class=
"input-medium"
ng-model=
"current.type"
ng-options=
"f for f in ['graphite', 'influxdb', 'opentsdb']"
ng-change=
"typeChanged()"
></select>
<select
class=
"input-medium"
ng-model=
"current.type"
ng-options=
"f for f in ['graphite', 'influxdb', 'opentsdb']"
ng-change=
"typeChanged()"
></select>
</div>
</div>
<editor-opt-bool
text=
"Mark as default"
model=
"current.isDefault"
change=
"render()"
></editor-opt-bool>
</div>
</div>
<div
class=
"editor-row"
>
<div
class=
"editor-row"
>
...
...
src/views/index.html
View file @
1d769fe4
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<div
class=
"page-alert-list"
>
<div
class=
"page-alert-list"
>
<div
ng-repeat=
'alert in dashAlerts.list'
class=
"alert-{{alert.severity}} alert"
>
<div
ng-repeat=
'alert in dashAlerts.list'
class=
"alert-{{alert.severity}} alert"
>
<button
type=
"button"
class=
"alert-close"
ng-click=
"dashAlerts.clear(alert)"
>
<button
type=
"button"
class=
"alert-close"
ng-click=
"dashAlerts.clear(alert)"
>
<i
class=
"
icon-remove-sign
"
></i>
<i
class=
"
fa fa-times-circle
"
></i>
</button>
</button>
<div
class=
"alert-title"
>
{{alert.title}}
</div>
<div
class=
"alert-title"
>
{{alert.title}}
</div>
<div
ng-bind-html=
'alert.text'
></div>
<div
ng-bind-html=
'alert.text'
></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