submenu.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <div class="submenu-controls" ng-controller="SubmenuCtrl">
  2. <div class="grafana-target">
  3. <div class="grafana-target-inner" style="border-top: none">
  4. <ul class="grafana-segment-list">
  5. <li class="grafana-target-segment">
  6. <div class="dropdown">
  7. <a class="pointer" data-toggle="dropdown">
  8. <i class="icon-cog"></i>
  9. </a>
  10. <ul class="dropdown-menu">
  11. <li><a class="pointer" dash-editor-link="app/partials/templating_editor.html">Templating</a></li>
  12. <li><a class="pointer" dash-editor-link="app/partials/annotations_editor.html">Annotations</a></li>
  13. </ul>
  14. </div>
  15. </li>
  16. </ul>
  17. <ul class="grafana-segment-list" ng-if="dashboard.templating.enable">
  18. <li ng-repeat-start="variable in variables" class="grafana-target-segment template-param-name">
  19. <span class="template-variable ">
  20. ${{variable.name}}:
  21. </span>
  22. </li>
  23. <li ng-repeat-end template-param-selector>
  24. </li>
  25. </ul>
  26. <ul class="grafana-segment-list" ng-if="dashboard.annotations.enable">
  27. <li ng-repeat="annotation in dashboard.annotations.list" class="grafana-target-segment annotation-segment" ng-class="{'annotation-disabled': !annotation.enable}">
  28. <a ng-click="disableAnnotation(annotation)">
  29. <i class="annotation-color-icon icon-bolt"></i>
  30. {{annotation.name}}
  31. </a>
  32. </li>
  33. </ul>
  34. <div class="clearfix"></div>
  35. </div>
  36. </div>
  37. </div>