item.hbs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!--
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. -->
  18. {{view App.MainServiceInfoMenuView}}
  19. <div class="service-button">
  20. <div class="btn-group display-inline-block">
  21. <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
  22. {{t services.service.actions.maintenance}}
  23. <span class="caret"></span>
  24. </a>
  25. <ul class="dropdown-menu">
  26. <!-- dropdown menu links -->
  27. {{#each option in view.maintenance}}
  28. <li>
  29. <a {{action "doAction" option.action target="controller" href=true}}>{{option.label}}</a>
  30. </li>
  31. {{/each}}
  32. </ul>
  33. </div>
  34. {{#if controller.content.workStatus}}
  35. <a href="javascript:void(null)" class="btn disabled">
  36. <i class="icon-play"></i>
  37. Start
  38. </a>
  39. <a href="javascript:void(null)" class="btn btn-danger"
  40. data-toggle="modal" {{action "stopService" target="controller"}}>
  41. <i class="icon-stop icon-white"></i>
  42. Stop
  43. </a>
  44. {{else}}
  45. <a href="javascript:void(null)" class="btn btn-success"
  46. data-toggle="modal" {{action "startService" target="controller"}}>
  47. <i class="icon-play icon-white"></i>
  48. Start
  49. </a>
  50. <a href="javascript:void(null)" class="btn disabled">
  51. <i class="icon-stop"></i>
  52. Stop
  53. </a>
  54. {{/if}}
  55. </div>
  56. {{outlet}}