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
aa9093bc
Commit
aa9093bc
authored
Oct 27, 2015
by
Nick Christus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated-list-views: added filter-table less component, updating styles for data sources table
parent
23404dec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
35 deletions
+90
-35
public/app/features/org/partials/datasources.html
+41
-35
public/less/filter-table.less
+48
-0
public/less/grafana.less
+1
-0
No files found.
public/app/features/org/partials/datasources.html
View file @
aa9093bc
...
...
@@ -5,47 +5,53 @@
</ul>
</topnav>
<div
class=
"page-container"
>
<div
class=
"page"
>
<div
class=
"page-container"
style=
"background: transparent; border: 0;"
>
<div
class=
"page
-wide
"
>
<h2>
Data sources
</h2>
<div
ng-if=
"datasources.length === 0"
>
<em>
No datasources defined
</em>
</div>
<table
class=
"grafana-options-table"
ng-if=
"datasources.length > 0"
>
<tr>
<td><strong>
Name
</strong></td>
<td><strong>
Url
</strong></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr
ng-repeat=
"ds in datasources"
>
<td
style=
"width:1%"
>
<i
class=
"fa fa-database"
></i>
{{ds.name}}
</td>
<td
style=
"width:90%"
>
{{ds.url}}
</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%"
>
<a
href=
"datasources/edit/{{ds.id}}"
class=
"btn btn-inverse btn-mini"
>
<i
class=
"fa fa-edit"
></i>
Edit
</a>
</td>
<td
style=
"width: 1%"
>
<a
ng-click=
"remove(ds)"
class=
"btn btn-danger btn-mini"
>
<i
class=
"fa fa-remove"
></i>
</a>
</td>
</tr>
<table
class=
"filter-table"
ng-if=
"datasources.length > 0"
>
<thead>
<tr>
<th><strong>
Name
</strong></th>
<th><strong>
Url
</strong></th>
<th
style=
"width: 60px;"
></th>
<th
style=
"width: 65px;"
></th>
<th
style=
"width: 30px;"
></th>
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"ds in datasources"
>
<td>
<span
class=
"ellipsis"
>
<i
class=
"fa fa-database"
></i>
{{ds.name}}
</span>
</td>
<td>
<span
class=
"ellipsis"
>
{{ds.url}}
</span>
</td>
<td
class=
"text-center"
>
<span
ng-if=
"ds.isDefault"
>
<span
class=
"label label-info"
>
default
</span>
</span>
</td>
<td
class=
"text-right"
>
<a
href=
"datasources/edit/{{ds.id}}"
class=
"btn btn-inverse btn-mini"
>
<i
class=
"fa fa-edit"
></i>
Edit
</a>
</td>
<td
class=
"text-right"
>
<a
ng-click=
"remove(ds)"
class=
"btn btn-danger btn-mini"
>
<i
class=
"fa fa-remove"
></i>
</a>
</td>
</tr>
</tbody>
</table>
</div>
...
...
public/less/filter-table.less
0 → 100644
View file @
aa9093bc
// ==========================================================================
// FILTER TABLE
// ==========================================================================
// Table
// --------------------------------------------------------------------------
.filter-table * {
box-sizing: border-box;
}
.filter-table {
width: 100%;
table-layout: fixed;
border-collapse: collapse;
}
.filter-table tr {
background: @grafanaPanelBackground;
border-bottom: 2px solid @bodyBackground;
}
.filter-table th {
padding: 10px 15px 10px 0;
text-align: left;
&:first-child {
padding-left: 15px;
}
}
.filter-table td {
padding: 15px 15px 15px 0;
&:first-child {
padding-left: 15px;
}
}
.filter-table .ellipsis {
display: block;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
public/less/grafana.less
View file @
aa9093bc
...
...
@@ -20,6 +20,7 @@
@import "timepicker.less";
@import "alerting.less";
@import "filter-list.less";
@import "filter-table.less";
.row-control-inner {
padding:0px;
...
...
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