summary.hbs 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. <div class="row">
  19. <div class="span5 host-configuration">
  20. <div class="box">
  21. <div class="box-header">
  22. <h4>Summary</h4>
  23. </div>
  24. <div class="host-summary-content">
  25. <dl class="dl-horizontal">
  26. <dt>IP:</dt><dd>{{view.content.ip}}</dd>
  27. <dt>CPU:</dt><dd>{{view.content.cpu}}</dd>
  28. <dt>OS:</dt><dd>type</dd>
  29. <dt>Disk Usage:</dt><dd>{{view.content.diskUsage}}</dd>
  30. <dt>Memory:</dt><dd>{{view.content.memory}}</dd>
  31. <dt>Load Avg:</dt><dd>{{view.content.loadAvg}}</dd>
  32. <dt>Agent:</dt><dd>running</dd>
  33. </dl>
  34. </div>
  35. </div>
  36. </div>
  37. {{#if view.content.components.length}}
  38. <div class="span3 host-components pull-right">
  39. {{#each component in view.content.components}}
  40. {{#view view.ComponentButtonView contentBinding="component"}}
  41. <div {{bindAttr class=":btn-group view.positionButton:pull-right:pull-left"}}>
  42. <button {{bindAttr class=":component-operation-button :btn :btn-success :dropdown-toggle view.disabledClass"}} data-toggle="dropdown">
  43. <span {{bindAttr class=":components-health view.indicatorClass"}}></span>
  44. {{unbound view.content.componentName}}
  45. <span class="caret"></span>
  46. </button>
  47. <ul class="dropdown-menu">
  48. {{#if view.isDataNode}}
  49. <li {{bindAttr class="view.content.decommissioned:hidden:"}}>
  50. <a href="javascript:void(null)" data-toggle="modal" {{action "decommission" view.content target="controller"}}>
  51. Decommission
  52. </a>
  53. </li>
  54. <li {{bindAttr class="view.content.decommissioned::hidden"}}>
  55. <a href="javascript:void(null)" data-toggle="modal" {{action "recommission" view.content target="controller"}}>
  56. Recommission
  57. </a>
  58. </li>
  59. {{/if}}
  60. <li {{bindAttr class="view.componentCheckStatus::hidden"}}>
  61. <a href="javascript:void(null)" data-toggle="modal" {{action "stopComponent" view.content target="controller"}}>
  62. Stop
  63. </a>
  64. </li>
  65. <li {{bindAttr class="view.componentCheckStatus:hidden:"}}>
  66. <a href="javascript:void(null)" data-toggle="modal" {{action "startComponent" view.content target="controller"}}>
  67. Start
  68. </a>
  69. </li>
  70. </ul>
  71. </div>
  72. {{/view}}
  73. {{/each}}
  74. </div>
  75. {{/if}}
  76. </div>
  77. <div class="row-fluid">
  78. <div class="span12">
  79. <div class="box">
  80. <div class="box-header">
  81. <h4>Host Metrics</h4>
  82. </div>
  83. <div class="row-fluid">
  84. {{view App.MainHostMetricsView}}
  85. </div>
  86. </div>
  87. </div>
  88. </div>