12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- -->
- <div class="row">
- <div class="span5 host-configuration">
- <div class="box">
- <div class="box-header">
- <h4>Summary</h4>
- </div>
- <div class="host-summary-content">
- <dl class="dl-horizontal">
- <dt>IP:</dt><dd>{{view.content.ip}}</dd>
- <dt>CPU:</dt><dd>{{view.content.cpu}}</dd>
- <dt>OS:</dt><dd>type</dd>
- <dt>Disk Usage:</dt><dd>{{view.content.diskUsage}}</dd>
- <dt>Memory:</dt><dd>{{view.content.memory}}</dd>
- <dt>Load Avg:</dt><dd>{{view.content.loadAvg}}</dd>
- <dt>Agent:</dt><dd>running</dd>
- </dl>
- </div>
- </div>
- </div>
- {{#if view.content.components.length}}
- <div class="span3 host-components pull-right">
- {{#each component in view.content.components}}
- {{#view view.ComponentButtonView contentBinding="component"}}
- <div {{bindAttr class=":btn-group view.positionButton:pull-right:pull-left"}}>
- <button {{bindAttr class=":component-operation-button :btn :btn-success :dropdown-toggle view.disabledClass"}} data-toggle="dropdown">
- <span {{bindAttr class=":components-health view.indicatorClass"}}></span>
- {{unbound view.content.componentName}}
- <span class="caret"></span>
- </button>
- <ul class="dropdown-menu">
- {{#if view.isDataNode}}
- <li {{bindAttr class="view.content.decommissioned:hidden:"}}>
- <a href="javascript:void(null)" data-toggle="modal" {{action "decommission" view.content target="controller"}}>
- Decommission
- </a>
- </li>
- <li {{bindAttr class="view.content.decommissioned::hidden"}}>
- <a href="javascript:void(null)" data-toggle="modal" {{action "recommission" view.content target="controller"}}>
- Recommission
- </a>
- </li>
- {{/if}}
- <li {{bindAttr class="view.componentCheckStatus::hidden"}}>
- <a href="javascript:void(null)" data-toggle="modal" {{action "stopComponent" view.content target="controller"}}>
- Stop
- </a>
- </li>
- <li {{bindAttr class="view.componentCheckStatus:hidden:"}}>
- <a href="javascript:void(null)" data-toggle="modal" {{action "startComponent" view.content target="controller"}}>
- Start
- </a>
- </li>
- </ul>
- </div>
- {{/view}}
- {{/each}}
- </div>
- {{/if}}
- </div>
- <div class="row-fluid">
- <div class="span12">
- <div class="box">
- <div class="box-header">
- <h4>Host Metrics</h4>
- </div>
- <div class="row-fluid">
- {{view App.MainHostMetricsView}}
- </div>
- </div>
- </div>
- </div>
|