editor.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <div class="editor-row" style="margin-top: 10px;">
  2. <div ng-repeat="target in panel.targets"
  3. class="grafana-target"
  4. ng-class="{'grafana-target-hidden': target.hide}"
  5. ng-controller="GraphiteTargetCtrl"
  6. ng-init="init()">
  7. <div class="grafana-target-inner">
  8. <ul class="grafana-target-controls">
  9. <li ng-show="parserError">
  10. <a bs-tooltip="parserError" style="color: rgb(229, 189, 28)" role="menuitem">
  11. <i class="icon icon-warning-sign"></i>
  12. </a>
  13. </li>
  14. <li>
  15. <a class="pointer" tabindex="1" ng-click="showTextEditor = !showTextEditor">
  16. <i class="icon icon-pencil"></i>
  17. </a>
  18. </li>
  19. <li class="dropdown">
  20. <a class="pointer dropdown-toggle"
  21. data-toggle="dropdown"
  22. tabindex="1">
  23. <i class="icon icon-cog"></i>
  24. </a>
  25. <ul class="dropdown-menu pull-right" role="menu">
  26. <li role="menuitem">
  27. <a tabindex="1"
  28. ng-click="duplicate()">
  29. Duplicate
  30. </a>
  31. </li>
  32. <li role="menuitem">
  33. <a tabindex="1"
  34. ng-click="toggleMetricOptions()">
  35. Toggle request options
  36. </a>
  37. </li>
  38. </ul>
  39. </li>
  40. <li>
  41. <a class="pointer" tabindex="1" ng-click="removeDataQuery(target)">
  42. <i class="icon icon-remove"></i>
  43. </a>
  44. </li>
  45. </ul>
  46. <ul class="grafana-segment-list">
  47. <li class="grafana-target-segment" style="min-width: 15px; text-align: center">
  48. {{targetLetter}}
  49. </li>
  50. <li>
  51. <a class="grafana-target-segment"
  52. ng-click="target.hide = !target.hide; get_data();"
  53. role="menuitem">
  54. <i class="icon-eye-open"></i>
  55. </a>
  56. </li>
  57. </ul>
  58. <input type="text"
  59. class="grafana-target-text-input span10"
  60. ng-model="target.target"
  61. focus-me="showTextEditor"
  62. spellcheck='false'
  63. ng-model-onblur ng-change="targetTextChanged()"
  64. ng-show="showTextEditor" />
  65. <ul class="grafana-segment-list" role="menu" ng-hide="showTextEditor">
  66. <li ng-repeat="segment in segments" role="menuitem" graphite-segment></li>
  67. <li ng-repeat="func in functions">
  68. <span graphite-func-editor class="grafana-target-segment grafana-target-function">
  69. </span>
  70. </li>
  71. <li class="dropdown" graphite-add-func>
  72. </li>
  73. </ul>
  74. <div class="clearfix"></div>
  75. </div>
  76. </div>
  77. <div class="grafana-target grafana-metric-options" ng-if="panel.metricOptionsEnabled">
  78. <div class="grafana-target-inner">
  79. <ul class="grafana-segment-list">
  80. <li class="grafana-target-segment">
  81. cacheTimeout <tip>Graphite parameter to overwride memcache default timeout (unit is seconds)</tip>
  82. </li>
  83. <li>
  84. <input type="text"
  85. class="input-large grafana-target-segment-input"
  86. ng-model="panel.cacheTimeout"
  87. spellcheck='false'
  88. placeholder="60">
  89. </li>
  90. </ul>
  91. <div class="clearfix"></div>
  92. </div>
  93. </div>
  94. </div>