details.hbs 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. {{#if view.isLoaded}}
  19. <div id="host-details">
  20. <div class="status-info">
  21. <span rel="HealthTooltip" {{bindAttr class="view.content.healthClass view.content.healthIconClass"}} {{bindAttr data-original-title="view.content.healthToolTip" }}></span><span class='host-title'>{{unbound view.content.publicHostName}}</span>
  22. {{#if view.content.criticalAlertsCount}}
  23. <span class="label label-important alerts-count" {{action "showAlertsPopup" content target="App.router.mainHostController"}}>{{view.content.criticalAlertsCount}}</span>
  24. {{else}}
  25. <span class="label label-success alerts-count" {{action "showAlertsPopup" content target="App.router.mainHostController"}}>{{t hosts.host.alert.noAlerts}}</span>
  26. {{/if}}
  27. {{#unless view.isActive}}
  28. <span class="host-maintenance-notice pull-right"><span class="icon-medkit"></span> {{t hosts.host.passive.mode}}</span>
  29. {{/unless}}
  30. </div>
  31. <div><a href="javascript:void(null)" data-toggle="modal" {{action back}}><i class="icon-arrow-left"></i>&nbsp;{{t common.back}}</a></div>
  32. <div class="content">
  33. {{view App.MainHostMenuView}}
  34. {{#if App.isAdmin}}
  35. {{#if App.supports.deleteHost}}
  36. <div class="service-button">
  37. <div class="btn-group display-inline-block">
  38. <a href="javascript:void(null)" {{bindAttr class=":btn :dropdown-toggle"}} data-toggle="dropdown">
  39. {{t hosts.host.details.hostActions}}
  40. <span class="caret"></span>
  41. </a>
  42. <ul class="dropdown-menu pull-right">
  43. <!-- dropdown menu links -->
  44. {{#each option in view.maintenance}}
  45. <li {{bindAttr class="controller.isStopDisabled:disabled option.liClass"}}>
  46. <a {{action "doAction" option target="controller" href=true}}><i {{bindAttr class="option.cssClass option.liClass"}}></i> {{option.label}}</a>
  47. </li>
  48. {{/each}}
  49. {{#if App.supports.downloadClientConfigs}}
  50. {{#if view.clients}}
  51. <li class="dropdown-submenu submenu-left">
  52. <a><i class="icon-download-alt"></i> {{t services.service.actions.downloadClientConfigs}}</a>
  53. <div class="dropdown-menu-wrap">
  54. <ul class="dropdown-menu">
  55. {{#each client in view.clientsWithConfigs}}
  56. <li>
  57. <a {{action "downloadClientConfigs" client target="controller" href=true}}>{{client.displayName}}</a>
  58. </li>
  59. {{/each}}
  60. </ul>
  61. </div>
  62. </li>
  63. {{/if}}
  64. {{/if}}
  65. </ul>
  66. </div>
  67. </div>
  68. {{/if}}
  69. {{/if}}
  70. {{outlet}}
  71. </div>
  72. </div>
  73. {{else}}
  74. <div class="spinner"></div>
  75. {{/if}}