submenu.html 1.2 KB

123456789101112131415161718192021222324252627
  1. <div class="submenu-controls">
  2. <ul ng-if="ctrl.dashboard.templating.list.length > 0">
  3. <li ng-repeat="variable in ctrl.variables" ng-hide="variable.hide === 2" class="submenu-item">
  4. <span class="submenu-item-label template-variable " ng-hide="variable.hide === 1">
  5. {{variable.label || variable.name}}:
  6. </span>
  7. <value-select-dropdown variable="variable" on-updated="ctrl.variableUpdated(variable)" get-values-for-tag="ctrl.getValuesForTag(variable, tagKey)"></value-select-dropdown>
  8. </li>
  9. </ul>
  10. <ul ng-if="ctrl.dashboard.annotations.list.length > 0">
  11. <li ng-repeat="annotation in ctrl.dashboard.annotations.list" class="submenu-item annotation-segment" ng-class="{'annotation-disabled': !annotation.enable}">
  12. <a ng-click="ctrl.disableAnnotation(annotation)">
  13. <i class="fa fa-bolt" style="color:{{annotation.iconColor}}"></i>
  14. {{annotation.name}}
  15. <input class="cr1" id="hideYAxis" type="checkbox" ng-model="annotation.enable" ng-checked="annotation.enable">
  16. <label for="hideYAxis" class="cr1"></label>
  17. </a>
  18. </li>
  19. </ul>
  20. <ul class="pull-right" ng-if="ctrl.dashboard.links.length > 0">
  21. <dash-links-container links="ctrl.dashboard.links"></dash-links-container>
  22. </ul>
  23. <div class="clearfix"></div>
  24. </div>