|
|
@@ -1,7 +1,68 @@
|
|
|
<div class="editor-row">
|
|
|
+ <style>
|
|
|
|
|
|
- <div ng-repeat="target in panel.targets" ng-controller="GraphiteTargetCtrl">
|
|
|
- <div class="row-fluid">
|
|
|
+ .grafana-target {
|
|
|
+ border-top: 1px solid #444444;
|
|
|
+ border-bottom: 1px solid #444444;
|
|
|
+ }
|
|
|
+ .grafana-target-top td {
|
|
|
+ border-top: 1px solid black;
|
|
|
+ border-bottom: 1px solid black;
|
|
|
+ background: #202020;
|
|
|
+ padding: 0;
|
|
|
+ margin: 0;
|
|
|
+ }
|
|
|
+ .grafana-segment-list {
|
|
|
+ list-style: none;
|
|
|
+ margin: 0;
|
|
|
+ margin-left: 5px;
|
|
|
+ }
|
|
|
+ .grafana-segment-list li {
|
|
|
+ float: left;
|
|
|
+ }
|
|
|
+ .grafana-target-segment {
|
|
|
+ padding: 5px 7px;
|
|
|
+ display: inline-block;
|
|
|
+ font-weight: normal;
|
|
|
+ border-left: 1px solid #050505;
|
|
|
+ color: #c8c8c8;
|
|
|
+ }
|
|
|
+ .grafana-target .dropdown {
|
|
|
+ padding: 0; margin: 0;
|
|
|
+ }
|
|
|
+ .grafana-target-segment:hover {
|
|
|
+ text-decoration: none;
|
|
|
+ }
|
|
|
+ a.grafana-target-segment:focus {
|
|
|
+ outline: 0;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+
|
|
|
+ <div class="grafana-target" ng-repeat="target in panel.targets" ng-controller="GraphiteTargetCtrl" ng-init="init()">
|
|
|
+
|
|
|
+ <table style="margin: 0; padding: 0;width:100%;">
|
|
|
+ <tr class="grafana-target-top">
|
|
|
+ <td style="padding-left: 5px;"><i class="icon-eye-open"></i></td>
|
|
|
+ <td>
|
|
|
+ <ul class="grafana-segment-list">
|
|
|
+ <li class="dropdown" ng-repeat="segment in segments">
|
|
|
+ <a class="grafana-target-segment dropdown-toggle"
|
|
|
+ data-toggle="dropdown"
|
|
|
+ data-placement="bottom" ng-bind-html-unsafe="segment.val"></a>
|
|
|
+ <ul class="dropdown-menu">
|
|
|
+ <li>
|
|
|
+ <a ng-click="setSegmentStar($index)">All <i class="icon-star" /></a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </li>
|
|
|
+ <ul>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <i class="icon-remove"></i>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <!-- <div class="row-fluid">
|
|
|
<div class="span12">
|
|
|
<span ng-if="!editMode">
|
|
|
{{target.target}}
|
|
|
@@ -15,9 +76,10 @@
|
|
|
</span>
|
|
|
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
|
|
|
- <a ng-click="add_target(panel.target)" ng-show="editor.index == 1">Add target</a>
|
|
|
-
|
|
|
+ <div class="row-fluid" style="margin-top: 20px">
|
|
|
+ <a class="pull-right" ng-click="add_target(panel.target)" ng-show="editor.index == 1">Add target</a>
|
|
|
+ </div>
|
|
|
</div>
|