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
a73ef353
Commit
a73ef353
authored
Feb 19, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'timepicker'
parents
ed58474c
d769f6c0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
19 deletions
+66
-19
public/app/features/dashboard/timepicker/dropdown.html
+30
-15
public/sass/_grafana.scss
+1
-0
public/sass/base/_font_awesome.scss
+0
-0
public/sass/components/_timepicker.scss
+35
-4
No files found.
public/app/features/dashboard/timepicker/dropdown.html
View file @
a73ef353
<div
class=
"row pull-right"
>
<form
name=
"timeForm"
class=
"gf-timepicker-absolute-section"
>
<h3>
Time range
</h3>
<label
class=
"small"
>
From:
</label>
<div
class=
"input-prepend"
>
<input
type=
"text"
class=
"input-large"
ng-model=
"ctrl.timeRaw.from"
input-datetime
>
<button
class=
"btn btn-primary"
type=
"button"
ng-click=
"openFromPicker=!openFromPicker"
>
<i
class=
"fa fa-calendar"
></i>
</button>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form gf-size-max-xxxl"
>
<input
type=
"text"
class=
"gf-form-input input-large"
ng-model=
"ctrl.timeRaw.from"
input-datetime
>
</div>
<div
class=
"gf-form"
>
<button
class=
"btn gf-form-btn btn-primary"
type=
"button"
ng-click=
"openFromPicker=!openFromPicker"
>
<i
class=
"fa fa-calendar"
></i>
</button>
</div>
</div>
<div
ng-if=
"openFromPicker"
>
<datepicker
ng-model=
"ctrl.absolute.fromJs"
class=
"gf-timepicker-component"
show-weeks=
"false"
ng-change=
"ctrl.absoluteFromChanged()"
></datepicker>
</div>
<label
class=
"small"
>
To:
</label>
<div
class=
"input-prepend"
>
<input
type=
"text"
class=
"input-large"
ng-model=
"ctrl.timeRaw.to"
input-datetime
>
<button
class=
"btn btn-primary"
type=
"button"
ng-click=
"openToPicker=!openToPicker"
>
<i
class=
"fa fa-calendar"
></i>
</button>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form gf-size-max-xxxl"
>
<input
type=
"text"
class=
"gf-form-input input-large"
ng-model=
"ctrl.timeRaw.to"
input-datetime
>
</div>
<div
class=
"gf-form"
>
<button
class=
"btn gf-form-btn btn-primary"
type=
"button"
ng-click=
"openToPicker=!openToPicker"
>
<i
class=
"fa fa-calendar"
></i>
</button>
</div>
</div>
<div
ng-if=
"openToPicker"
>
<datepicker
ng-model=
"ctrl.absolute.toJs"
class=
"gf-timepicker-component"
show-weeks=
"false"
ng-change=
"ctrl.absoluteToChanged()"
></datepicker>
</div>
<label
class=
"small"
>
Refreshing every:
</label>
<select
ng-model=
"ctrl.refresh.value"
class=
'input-medium'
ng-options=
"f.value as f.text for f in ctrl.refresh.options"
>
</select>
<div
class=
"gf-form-inline"
>
<div
class=
"gf-form gf-size-max-xxxl"
>
<select
ng-model=
"ctrl.refresh.value"
class=
"gf-form-input input-medium"
ng-options=
"f.value as f.text for f in ctrl.refresh.options"
></select>
</div>
<div
class=
"gf-form"
>
<button
type=
"submit"
class=
"btn gf-form-btn btn-primary"
ng-click=
"ctrl.applyCustom();"
ng-disabled=
"!timeForm.$valid"
>
Apply
</button>
</div>
</div>
<button
type=
"submit"
class=
"btn btn-primary"
ng-click=
"ctrl.applyCustom();"
ng-disabled=
"!timeForm.$valid"
>
Apply
</button>
</form>
<div
class=
"gf-timepicker-relative-section"
>
...
...
public/sass/_grafana.scss
View file @
a73ef353
...
...
@@ -15,6 +15,7 @@
@import
"base/forms"
;
@import
"base/fonts"
;
@import
"base/grid"
;
@import
"base/font_awesome"
;
// UTILS
@import
"utils/utils"
;
...
...
public/
vendor/css/font-awesome.min.
css
→
public/
sass/base/_font_awesome.s
css
View file @
a73ef353
File moved
public/sass/components/_timepicker.scss
View file @
a73ef353
...
...
@@ -21,10 +21,10 @@
}
.gf-timepicker-absolute-section
{
width
:
30
0px
;
width
:
29
0px
;
float
:
left
;
border-right
:
1px
solid
$divider-border-color
;
padding
:
0
0
0
2
0px
;
padding
:
0
1
0px
;
select
{
width
:
183px
;
margin-bottom
:
0
;
...
...
@@ -47,7 +47,7 @@
.gf-timepicker-relative-section
{
padding
:
0
20px
0
30px
;
min-height
:
2
58
px
;
min-height
:
2
37
px
;
float
:
left
;
ul
{
list-style
:
none
;
...
...
@@ -66,11 +66,14 @@
.gf-timepicker-component
{
margin-bottom
:
10px
;
td
{
padding
:
1px
;
}
button
.btn-sm
{
@include
buttonBackground
(
$btnInverseBackground
,
$btnInverseBackgroundHighlight
);
background-image
:
none
;
border
:
none
;
padding
:
6px
9
px
;
padding
:
6px
10
px
;
color
:
$text-color
;
&
.active
span
{
color
:
$blue
;
...
...
@@ -86,3 +89,31 @@
.input-datetime-format
{
color
:
$link-color-disabled
}
.fa
{
display
:
inline-block
;
font
:
normal
normal
normal
14px
/
1
FontAwesome
;
font-size
:
inherit
;
text-rendering
:
auto
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
.fa-chevron-left
:before
{
content
:
"\f053"
;
}
.fa-chevron-right
:before
{
content
:
"\f054"
;
}
.glyphicon-chevron-right
{
@extend
.fa
;
@extend
.fa-chevron-right
;
}
.glyphicon-chevron-left
{
@extend
.fa
;
@extend
.fa-chevron-left
;
}
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