mirror of https://github.com/grafana/grafana
commit
7207068181
@ -1,37 +1,15 @@ |
||||
<div class="editor-row"> |
||||
<div class="section"> |
||||
<div> |
||||
<div class="tight-form"> |
||||
<ul class="tight-form-list"> |
||||
<li class="tight-form-item" style="width: 118px"> |
||||
Auto-refresh |
||||
</li> |
||||
<li> |
||||
<input type="text" class="input-xlarge tight-form-input last" style="width: 450px" ng-model="ctrl.panel.refresh_intervals" array-join> |
||||
</li> |
||||
</ul> |
||||
<div class="clearfix"></div> |
||||
</div> |
||||
|
||||
<div class="tight-form last"> |
||||
<ul class="tight-form-list"> |
||||
<li class="tight-form-item" style="width: 118px"> |
||||
Now delay |
||||
</li> |
||||
<li class="tight-form-item"> |
||||
now- |
||||
</li> |
||||
<li> |
||||
<input type="text" class="input-mini tight-form-input last" |
||||
<div class="gf-form-group"> |
||||
<div class="gf-form"> |
||||
<span class="gf-form-label width-10">Auto-refresh</span> |
||||
<input type="text" class="gf-form-input max-width-25" ng-model="ctrl.panel.refresh_intervals" array-join> |
||||
</div> |
||||
<div class="gf-form"> |
||||
<span class="gf-form-label width-10">Now delay now-</span> |
||||
<input type="text" class="gf-form-input max-width-25" |
||||
ng-model="ctrl.panel.nowDelay" placeholder="0m" |
||||
valid-time-span |
||||
bs-tooltip="'Enter 1m to ignore the last minute (because it can contain incomplete metrics)'" |
||||
data-placement="right"> |
||||
</li> |
||||
|
||||
</ul> |
||||
<div class="clearfix"></div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
@ -1,90 +1,82 @@ |
||||
<div class="editor-row"> |
||||
<h5>Links and Dash Navigation</h5> |
||||
<h5 class="page-heading">Links and Dash Navigation</h5> |
||||
|
||||
<div ng-repeat="link in dashboard.links" style="margin-top: 10px;"> |
||||
<div class="tight-form"> |
||||
<ul class="tight-form-list pull-right"> |
||||
<li class="tight-form-item"> |
||||
<i ng-click="moveLink($index, -1)" ng-hide="$first" class="pointer fa fa-arrow-up"></i> |
||||
<i ng-click="moveLink($index, 1)" ng-hide="$last" class="pointer fa fa-fw fa-arrow-down"></i> |
||||
</li> |
||||
<li class="tight-form-item last"> |
||||
<i class="fa fa-remove pointer" ng-click="deleteLink($index)"></i> |
||||
</li> |
||||
</ul> |
||||
<div ng-repeat="link in dashboard.links"> |
||||
<div class="gf-form-group" style="/*background: #292929; border-bottom: 2px solid #1f1d1d; padding: 10px; margin-bottom: 5px;*/"> |
||||
<div class="gf-form-inline pull-right"> |
||||
<div class="gf-form-buttons-row"> |
||||
<button class="btn btn-inverse btn-mini" ng-hide="$first"><i ng-click="moveLink($index, -1)" class="fa fa-arrow-up"></i></button> |
||||
<button class="btn btn-inverse btn-mini" ng-hide="$last"><i ng-click="moveLink($index, 1)" class="fa fa-arrow-down"></i></button> |
||||
<button class="btn btn-inverse btn-mini"><i class="fa fa-remove" ng-click="deleteLink($index)"></i></button> |
||||
</div> |
||||
</div> |
||||
|
||||
<ul class="tight-form-list"> |
||||
<li class="tight-form-item" style="width: 20px"> |
||||
<div class="gf-form-inline"> |
||||
<div class="gf-form width-2"> |
||||
<i class="fa fa-fw fa-unlink"></i> |
||||
</li> |
||||
</div> |
||||
|
||||
<div class="gf-form"> |
||||
<span class="gf-form-label width-6">Type</span> |
||||
<div class="gf-form-select-wrapper width-10"> |
||||
<select class="gf-form-input" ng-model="link.type" ng-options="f for f in ['dashboards','link']" ng-change="updated()"></select> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="gf-form" ng-show="link.type === 'dashboards'"> |
||||
<span class="gf-form-label">With tags</span> |
||||
<bootstrap-tagsinput ng-model="link.tags" tagclass="label label-tag" placeholder="add tags"></bootstrap-tagsinput> |
||||
</div> |
||||
|
||||
<li class="tight-form-item">Type</li> |
||||
<li> |
||||
<select class="input-medium tight-form-input" style="width: 150px;" ng-model="link.type" ng-options="f for f in ['dashboards','link']" ng-change="updated()"></select> |
||||
</li> |
||||
<div class="gf-form" ng-show="link.type === 'dashboards' && link.asDropdown"> |
||||
<span class="gf-form-label width-6">Title</span> |
||||
<input type="text" ng-model="link.title" class="gf-form-input max-width-10" ng-model-onblur ng-change="updated()"> |
||||
</div> |
||||
|
||||
<li class="tight-form-item" ng-show="link.type === 'dashboards'">With tags</li> |
||||
<li ng-show="link.type === 'dashboards'"> |
||||
<bootstrap-tagsinput ng-model="link.tags" tagclass="label label-tag" placeholder="add tags"> |
||||
</bootstrap-tagsinput> |
||||
</li> |
||||
<li class="tight-form-item" ng-show="link.type === 'dashboards'"> |
||||
<div class="gf-form" ng-show="link.type === 'dashboards'"> |
||||
<editor-checkbox text="As dropdown" model="link.asDropdown" change="updated()"></editor-checkbox> |
||||
</li> |
||||
<li class="tight-form-item" ng-show="link.type === 'dashboards' && link.asDropdown"> |
||||
Title |
||||
</li> |
||||
<li ng-show="link.type === 'dashboards' && link.asDropdown"> |
||||
<input type="text" ng-model="link.title" class="input-medium tight-form-input" ng-model-onblur ng-change="updated()"> |
||||
</li> |
||||
<li class="tight-form-item" ng-show="link.type === 'link'" style="width: 51px">Url</li> |
||||
<li ng-show="link.type === 'link'"> |
||||
<input type="text" ng-model="link.url" class="input-xlarge tight-form-input" style="width: 302px;" ng-model-onblur ng-change="updated()"> |
||||
</li> |
||||
<li class="tight-form-item" ng-show="link.type === 'link'"> |
||||
</div> |
||||
|
||||
<div class="gf-form" ng-show="link.type === 'link'"> |
||||
<li class="gf-form-label width-6">Url</li> |
||||
<input type="text" ng-model="link.url" class="gf-form-input max-width-10" ng-model-onblur ng-change="updated()"> |
||||
<editor-checkbox text="Open in new tab " model="link.targetBlank" change="updated()"></editor-checkbox> |
||||
</li> |
||||
</ul> |
||||
<div class="clearfix"></div> |
||||
</div> |
||||
<div class="tight-form" ng-if="link.type === 'link'"> |
||||
<ul class="tight-form-list"> |
||||
<li class="tight-form-item" style="width: 20px"> |
||||
</div> |
||||
|
||||
<div class="gf-form-inline" ng-show="link.type === 'link'"> |
||||
<div class="gf-form width-2"> |
||||
<i class="fa fa-fw fa-unlink invisible"></i> |
||||
</li> |
||||
<li class="tight-form-item" ng-show="link.type === 'link'" style="width: 31px">Title</li> |
||||
<li ng-show="link.type === 'link'"> |
||||
<input type="text" ng-model="link.title" class="input-medium tight-form-input" ng-model-onblur ng-change="updated()"> |
||||
</li> |
||||
<li class="tight-form-item" ng-show="link.type === 'link'" style="width: 51px">Tooltip</li> |
||||
<li ng-show="link.type === 'link'"> |
||||
<input type="text" ng-model="link.tooltip" class="input-medium tight-form-input" style="width: 151px" placeholder="Open dashboard" ng-model-onblur ng-change="updated()"> |
||||
</li> |
||||
<li class="tight-form-item" ng-show="link.type === 'link'">Icon</li> |
||||
<li ng-show="link.type === 'link'"> |
||||
<select class="input-medium tight-form-input" style="width: 110px;" ng-model="link.icon" ng-options="k as k for (k, v) in iconMap" ng-change="updated()"></select> |
||||
</li> |
||||
</ul> |
||||
<div class="clearfix"></div> |
||||
</div> |
||||
<div class="tight-form last"> |
||||
<ul class="tight-form-list"> |
||||
<li class="tight-form-item" style="width: 20px"> |
||||
</div> |
||||
<div class="gf-form"> |
||||
<span class="gf-form-label width-6">Title</span> |
||||
<input type="text" ng-model="link.title" class="gf-form-input max-width-10" ng-model-onblur ng-change="updated()"> |
||||
</div> |
||||
|
||||
<div class="gf-form"> |
||||
<span class="gf-form-label width-6">Tooltip</span> |
||||
<input type="text" ng-model="link.tooltip" class="gf-form-input max-width-10" placeholder="Open dashboard" ng-model-onblur ng-change="updated()"> |
||||
</div> |
||||
|
||||
<div class="gf-form"> |
||||
<span class="gf-form-label width-6">Icon</span> |
||||
<div class="gf-form-select-wrapper max-width-10"> |
||||
<select class="gf-form-input" ng-model="link.icon" ng-options="k as k for (k, v) in iconMap" ng-change="updated()"></select> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="gf-form-inline"> |
||||
<div class="gf-form width-1"> |
||||
<i class="fa fa-fw fa-unlink invisible"></i> |
||||
</li> |
||||
<li class="tight-form-item"> |
||||
</div> |
||||
<div class="gf-form"> |
||||
<editor-checkbox text="Keep current time range" model="link.keepTime" change="updated()"></editor-checkbox> |
||||
</li> |
||||
<li class="tight-form-item"> |
||||
<editor-checkbox text="Add current variable values" model="link.includeVars" change="updated()"></editor-checkbox> |
||||
</li> |
||||
</ul> |
||||
<div class="clearfix"></div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="editor-row"> |
||||
<br> |
||||
<button class="btn btn-inverse" ng-click="addLink()"><i class="fa fa-plus"></i> Add link</button> |
||||
</div> |
||||
</div> |
||||
|
||||
<button class="btn btn-inverse" ng-click="addLink()"><i class="fa fa-plus"></i> Add link</button> |
||||
|
||||
@ -1,59 +1,34 @@ |
||||
<div class="editor-row"> |
||||
<div class="section tight-form-container" style="margin-bottom: 20px"> |
||||
<div class="tight-form"> |
||||
<ul class="tight-form-list"> |
||||
<li class="tight-form-item tight-form-item-icon"> |
||||
<div class="gf-form-group"> |
||||
<div class="gf-form"> |
||||
<span class="gf-form-label"> |
||||
<i class="fa fa-clock-o"></i> |
||||
</li> |
||||
<li class="tight-form-item" style="width: 178px"> |
||||
<strong>Override relative time</strong> |
||||
</li> |
||||
<li class="tight-form-item" style="width: 50px"> |
||||
Last |
||||
</li> |
||||
<li> |
||||
<input type="text" class="input-small tight-form-input last" placeholder="1h" |
||||
</span> |
||||
|
||||
<span class="gf-form-label width-12">Override relative time</span> |
||||
<span class="gf-form-label width-6">Last</span> |
||||
|
||||
<input type="text" class="gf-form-input max-width-8" placeholder="1h" |
||||
empty-to-null ng-model="ctrl.panel.timeFrom" valid-time-span |
||||
ng-change="ctrl.refresh()" ng-model-onblur> |
||||
</li> |
||||
</ul> |
||||
<div class="clearfix"></div> |
||||
</div> |
||||
<div class="tight-form"> |
||||
<ul class="tight-form-list"> |
||||
<li class="tight-form-item tight-form-item-icon"> |
||||
|
||||
<div class="gf-form"> |
||||
<span class="gf-form-label"> |
||||
<i class="fa fa-clock-o"></i> |
||||
</li> |
||||
<li class="tight-form-item" style="width: 178px"> |
||||
<strong>Add time shift</strong> |
||||
</li> |
||||
<li class="tight-form-item" style="width: 50px"> |
||||
Amount |
||||
</li> |
||||
<li> |
||||
<input type="text" class="input-small tight-form-input last" placeholder="1h" |
||||
</span> |
||||
<span class="gf-form-label width-12">Add time shift</span> |
||||
<span class="gf-form-label width-6">Amount</span> |
||||
<input type="text" class="gf-form-input max-width-8" placeholder="1h" |
||||
empty-to-null ng-model="ctrl.panel.timeShift" valid-time-span |
||||
ng-change="ctrl.refresh()" ng-model-onblur> |
||||
</li> |
||||
</ul> |
||||
<div class="clearfix"></div> |
||||
</div> |
||||
<div class="tight-form"> |
||||
<ul class="tight-form-list"> |
||||
<li class="tight-form-item tight-form-item-icon"> |
||||
|
||||
<div class="gf-form"> |
||||
<span class="gf-form-label"> |
||||
<i class="fa fa-clock-o"></i> |
||||
</li> |
||||
<li class="tight-form-item" style="width: 178px"> |
||||
<strong>Hide time override info</strong> |
||||
</li> |
||||
<li class="tight-form-item last"> |
||||
<input class="cr1" id="ctrl.panel.hideTimeOverride" type="checkbox" |
||||
ng-model="ctrl.panel.hideTimeOverride" ng-checked="ctrl.panel.hideTimeOverride" ng-change="ctrl.refresh()"> |
||||
<label for="ctrl.panel.hideTimeOverride" class="cr1"></label> |
||||
</li> |
||||
</ul> |
||||
<div class="clearfix"></div> |
||||
</div> |
||||
</span> |
||||
<editor-checkbox text="Hide time override info" model="ctrl.panel.hideTimeOverride" change="ctrl.refresh()"></editor-checkbox> |
||||
</div> |
||||
</div> |
||||
|
||||
|
||||
|
||||
@ -1,84 +1,67 @@ |
||||
<div class="editor-row"> |
||||
<div class="section"> |
||||
<h5>Drilldown / detail link<tip>These links appear in the dropdown menu in the panel menu. </tip></h5> |
||||
<h5 class="section-heading"> |
||||
Drilldown / detail link<tip>These links appear in the dropdown menu in the panel menu. </tip></h5> |
||||
</h5> |
||||
|
||||
<div ng-repeat="link in panel.links" style="margin-top: 20px;"> |
||||
<div class="tight-form"> |
||||
<ul class="tight-form-list pull-right"> |
||||
<li class="tight-form-item"> |
||||
<i ng-click="moveLink($index, -1)" ng-hide="$first" class="pointer fa fa-arrow-up"></i> |
||||
<i ng-click="moveLink($index, 1)" ng-hide="$last" class="pointer fa fa-fw fa-arrow-down"></i> |
||||
</li> |
||||
<li class="tight-form-item last"> |
||||
<i class="fa fa-remove pointer" ng-click="deleteLink(link)"></i> |
||||
</li> |
||||
</ul> |
||||
<div class="gf-form-group"> |
||||
|
||||
<ul class="tight-form-list"> |
||||
<li class="tight-form-item" style="width: 20px"> |
||||
<div class="gf-form-inline"> |
||||
<div class="gf-form width-2"> |
||||
<i class="fa fa-fw fa-unlink"></i> |
||||
</li> |
||||
</div> |
||||
|
||||
<li class="tight-form-item">Type</li> |
||||
<li> |
||||
<select class="input-medium tight-form-input" style="width: 150px;" ng-model="link.type" ng-options="f for f in ['dashboard','absolute']"></select> |
||||
</li> |
||||
<div class="gf-form"> |
||||
<span class="gf-form-label width-7">Type</span> |
||||
<div class="gf-form-select-wrapper width-14"> |
||||
<select class="gf-form-input" ng-model="link.type" ng-options="f for f in ['dashboard','absolute']"></select> |
||||
</div> |
||||
</div> |
||||
|
||||
<li class="tight-form-item" ng-show="link.type === 'dashboard'" style="width: 73px;">Dashboard</li> |
||||
<li ng-show="link.type === 'dashboard'"> |
||||
<input type="text" ng-model="link.dashboard" bs-typeahead="searchDashboards" class="input-large tight-form-input" ng-blur="dashboardChanged(link)"> |
||||
</li> |
||||
<div class="gf-form"> |
||||
<span class="gf-form-label width-7" ng-show="link.type === 'dashboard'">Dashboard</span> |
||||
<input ng-show="link.type === 'dashboard'" type="text" ng-model="link.dashboard" bs-typeahead="searchDashboards" class="gf-form-input max-width-14" ng-blur="dashboardChanged(link)"> |
||||
|
||||
<li class="tight-form-item" ng-show="link.type === 'absolute'" style="width: 73px;">Url</li> |
||||
<li ng-show="link.type === 'absolute'"> |
||||
<input type="text" ng-model="link.url" class="input-large tight-form-input"> |
||||
</li> |
||||
<span class="gf-form-label width-7" ng-show="link.type === 'absolute'">Url</span> |
||||
<input ng-show="link.type === 'absolute'" type="text" ng-model="link.url" class="gf-form-input max-width-14"> |
||||
</div> |
||||
|
||||
</ul> |
||||
<div class="clearfix"></div> |
||||
<div class="gf-form"> |
||||
<button class="btn-inverse gf-form-btn btn-small" ng-click="deleteLink(link)"><i class="fa fa-trash"></i></button> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="tight-form"> |
||||
<ul class="tight-form-list"> |
||||
<li class="tight-form-item" style="width: 20px"> |
||||
<div class="gf-form-inline"> |
||||
<div class="gf-form width-2"> |
||||
<i class="fa fa-fw fa-unlink invisible"></i> |
||||
</li> |
||||
<li class="tight-form-item" style="width: 31px">Title</li> |
||||
<li> |
||||
<input type="text" ng-model="link.title" class="input-medium tight-form-input"> |
||||
</li> |
||||
<li class="tight-form-item" style="width: 73px;"> |
||||
Url params |
||||
</li> |
||||
<li> |
||||
<input type="text" ng-model="link.params" class="input-large tight-form-input"> |
||||
</li> |
||||
</ul> |
||||
<div class="clearfix"></div> |
||||
</div> |
||||
<div class="tight-form last"> |
||||
<ul class="tight-form-list"> |
||||
<li class="tight-form-item" style="width: 20px"> |
||||
</div> |
||||
|
||||
<div class="gf-form"> |
||||
<div class="gf-form-label width-7">Title</div> |
||||
<input type="text" ng-model="link.title" class="gf-form-input"> |
||||
</div> |
||||
|
||||
<div class="gf-form"> |
||||
<span class="gf-form-label width-7">Url params</span> |
||||
<input type="text" ng-model="link.params" class="gf-form-input"> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="gf-form-inline"> |
||||
<div class="gf-form width-2"> |
||||
<i class="fa fa-fw fa-unlink invisible"></i> |
||||
</li> |
||||
<li class="tight-form-item"> |
||||
</div> |
||||
|
||||
<div class="gf-form"> |
||||
<editor-checkbox text="Keep current time range" model="link.keepTime"></editor-checkbox> |
||||
</li> |
||||
<li class="tight-form-item"> |
||||
<editor-checkbox text="Add current variable values" model="link.includeVars"></editor-checkbox> |
||||
</li> |
||||
<li class="tight-form-item last"> |
||||
<editor-checkbox text="Open in new tab " model="link.targetBlank"></editor-checkbox> |
||||
</li> |
||||
</ul> |
||||
<div class="clearfix"></div> |
||||
</div> |
||||
</div> |
||||
|
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="editor-row"> |
||||
<br> |
||||
<button class="btn btn-inverse" ng-click="addLink()"><i class="fa fa-plus"></i> Add link</button> |
||||
</div> |
||||
|
||||
Loading…
Reference in new issue