mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
- prevented the config file from being minified. - offloaded the js minification to a dedicated uglify task, which accepts more options than the require-js wrapper does. - Addded the banner to the top of the minified files.
3 lines
3.4 KiB
HTML
3 lines
3.4 KiB
HTML
<div ng-controller="timepicker" ng-init="init()"><style>.timepicker-block {
|
|
display: inline-block;
|
|
}</style><div class="row-fluid form-horizontal" ng-switch="panel.mode" ng-show="filterSrv.idsByType('time').length > 0"><div ng-switch-when="absolute"><div class="timepicker-block"><form class="nomargin"><label><small>From</small></label><input type="text" class="input-smaller" ng-change="time_check()" ng-model="timepicker.from.date" data-date-format="mm/dd/yyyy" bs-datepicker=""><input type="text" class="input-mini" ng-change="time_check()" data-show-meridian="false" data-show-seconds="true" ng-model="timepicker.from.time" bs-timepicker=""></form></div><div class="timepicker-block" style="margin-left:10px"><form class="nomargin"><label style="margin-left:5px"><small>To (<a ng-click="to_now()">now</a>)</small></label><input type="text" class="input-smaller" ng-change="time_check()" ng-model="timepicker.to.date" data-date-format="mm/dd/yyyy" bs-datepicker=""><input type="text" class="input-mini" ng-change="time_check()" data-show-meridian="false" data-show-seconds="true" ng-model="timepicker.to.time" bs-timepicker=""></form></div><div class="timepicker-block"><form class="nomargin"><button class="btn" ng-click="time_apply()"><i class="icon-ok"></i></button></form></div></div><div ng-switch-when="since"><div class="timepicker-block"><form class="nomargin"><label><small>Since</small></label><input type="text" class="input-smaller" ng-change="time_check()" ng-model="timepicker.from.date" data-date-format="mm/dd/yyyy" bs-datepicker=""><input type="text" class="input-mini" ng-change="time_check()" data-show-meridian="false" data-show-seconds="true" ng-model="timepicker.from.time" bs-timepicker=""></form></div><div class="timepicker-block" style="margin-left:10px"><form class="nomargin"><label><small><br></small></label><button class="btn" ng-click="time_apply()"><i class="icon-ok"></i></button></form></div></div><div ng-switch-when="relative"><div class="timepicker-block"><form class="nomargin input-append"><label><small>The last</small></label><button class="btn btn" ng-repeat="timespan in panel.time_options" ng-class="{'btn-success': (panel.timespan == timespan)}" ng-click="set_timespan(timespan)">{{timespan}}</button> </form></div></div></div><div class="row-fluid" ng-show="filterSrv.idsByType('time').length < 1"><div><div class="span11"><h4>No time filter present</h4></div></div></div><div class="row-fluid nomargin"><div class="span12 small" ng-show="filterSrv.idsByType('time').length > 0"><a class="link" ng-click="set_mode('relative')" ng-class="{'strong': (panel.mode == 'relative')}">Relative</a> | <a class="link" ng-click="set_mode('absolute')" ng-class="{'strong': (panel.mode == 'absolute')}">Absolute</a> | <a class="link" ng-click="set_mode('since')" ng-class="{'strong': (panel.mode == 'since')}">Since</a> <span ng-hide="panel.mode == 'absolute' || panel.mode == 'none'">|<input type="checkbox" ng-model="panel.refresh.enable" ng-change="refresh();">Auto-refresh <span ng-class="{'ng-cloak': !panel.refresh.enable}">every <a data-title="<small>Auto-refresh Settings</small>" data-placement="bottom" bs-popover="'app/panels/timepicker/refreshctrl.html'">{{panel.refresh.interval}}s</a>.</span></span></div><div class="span12 small" ng-show="filterSrv.idsByType('time').length < 1"><a class="btn btn-small" ng-click="time_apply()">Create a time filter</a></div></div></div> |