Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

sidebar.html 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <md-sidenav class="md-sidenav-left md-whiteframe-z2 md-sidebar" md-component-id="left" md-is-locked-open="$mdMedia('gt-md')">
  2. <md-toolbar class="md-theme-indigo">
  3. <h1 class="md-toolbar-tools">Chronos</h1>
  4. </md-toolbar>
  5. <md-content layout-padding ng-controller="SideBarController">
  6. <!--<md-button ng-click="close()" class="md-primary" hide-gt-md>
  7. Close Sidenav Left
  8. </md-button>
  9. <p hide-md show-gt-md>
  10. This sidenav is locked open on your device. To go back to the default behavior,
  11. narrow your display.
  12. </p>-->
  13. <div lu-busy="sidebar">
  14. <md-autocomplete
  15. md-selected-item="Search.selected"
  16. md-search-text="Search.value"
  17. md-selected-item-change="goTo(item)"
  18. md-items="item in search(ctrl.searchText)"
  19. md-item-text="item.Name"
  20. md-min-length="1"
  21. placeholder="Type a group name...">
  22. <md-item-template>
  23. <span md-highlight-text="ctrl.searchText" md-highlight-flags="^i">{{item.Name}}</span>
  24. </md-item-template>
  25. <md-not-found>
  26. No groups matching "{{Search.value}}" were found.
  27. </md-not-found>
  28. </md-autocomplete>
  29. <ul class="col-sm-12 sidebar-group-list">
  30. <li ng-show="DataShareBusiness.CurrentGroups.length != 0" class="col-xs-12">
  31. <md-button class="md-primary md-hue-1 md-group-button col-xs-12"
  32. ng-href="{{DataShareBusiness.getGroupUrl(DataShareBusiness.getCurrentGroup().Parent)}}">
  33. ..
  34. </md-button>
  35. </li>
  36. <li ng-repeat="group in getCurrentGroups()" class="col-xs-12">
  37. <md-button class="md-primary md-hue-1 md-group-button col-xs-12"
  38. ng-class="{'md-group-button-checked': DataShareBusiness.getCurrentGroup().Id == group.Id}"
  39. ng-href="{{DataShareBusiness.getGroupUrl(group)}}">
  40. {{ group.Name }}
  41. </md-button>
  42. </li>
  43. </ul>
  44. </div>
  45. </md-content>
  46. </md-sidenav>