Skip to content

Commit

Permalink
Merge pull request #2 from spenceralger/TimefilterAutoRefresh
Browse files Browse the repository at this point in the history
[timepicker] slight modification to navbar css
  • Loading branch information
grouma committed Dec 16, 2014
2 parents 11aa394 + 776a1b8 commit 2c8c48b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
23 changes: 12 additions & 11 deletions src/kibana/plugins/kibana/kibana.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,21 @@
</li>
</ul>

<ul class="nav navbar-nav navbar-right">
<ul class="nav navbar-nav navbar-right navbar-timepicker">
<li ng-show="httpActive.length" class="navbar-text">
<div class="spinner">
</div>
<div class="spinner"></div>
</li>
<li ng-if="setupComplete" ng-show="timefilter.enabled" class="navbar-timepicker-display">

<li ng-if="setupComplete" ng-show="timefilter.enabled" class="navbar-timepicker-container">
<a ng-click="toggleTimepicker()">
{{timefilter.refreshInterval.display}}
&nbsp;
<i class="fa fa-rotate-right"></i>
&nbsp; &nbsp;
<pretty-duration from="timefilter.time.from" to="timefilter.time.to"></pretty-duration>
&nbsp;
<i class="fa fa-clock-o"></i>
<span ng-show="timefilter.refreshInterval.value > 0" class="navbar-timepicker-auto-refresh-desc">
{{timefilter.refreshInterval.display}}
<i class="fa fa-rotate-right"></i>
</span>
<span class="navbar-timepicker-timefilter-desc">
<pretty-duration from="timefilter.time.from" to="timefilter.time.to"></pretty-duration>
<i class="fa fa-clock-o"></i>
</span>
</a>
</li>
</ul>
Expand Down
15 changes: 13 additions & 2 deletions src/kibana/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,23 @@ notifications {
color: @navbar-inverse-brand-hover-color;
vertical-align: middle;
}
}

.navbar-timepicker {
&-auto-refresh-desc {
margin-right: 20px;
}

&-timefilter-desc {

}

.fa {
font-size: @font-size-large;
vertical-align: text-top;
font-size: 16px;
vertical-align: middle;
}
}

.kbn-timepicker .btn-default {
background: transparent;
color: @text-color;
Expand Down

0 comments on commit 2c8c48b

Please sign in to comment.