75 lines
2.6 KiB
HTML
75 lines
2.6 KiB
HTML
{% extends 'base_AdminLTE.html' %}
|
|
|
|
{% block title %}Docklet | Monitor{% endblock %}
|
|
|
|
{% block panel_title %}NodeInfo for {{ muser }}{% endblock %}
|
|
|
|
{% block panel_list %}
|
|
<ol class="breadcrumb">
|
|
<li>
|
|
<a href="/dashboard/"><i class="fa fa-dashboard"></i>Home</a>
|
|
</li>
|
|
<li>
|
|
<a href='/monitor/User/'>UsersInfo</a>
|
|
</li>
|
|
<li class='active'>
|
|
<strong>Clusters</strong>
|
|
</li>
|
|
</ol>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% for cluster in clusters %}
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="box box-info">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">Cluster Name: {{ cluster }}</h3>
|
|
|
|
<div class="box-tools pull-right">
|
|
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
|
|
</button>
|
|
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
|
|
</div>
|
|
</div>
|
|
<div class="box-body">
|
|
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Node ID</th>
|
|
<th>Node Name</th>
|
|
<th>IP Address</th>
|
|
<th>Status</th>
|
|
<th>Create Time</th>
|
|
<th>detail</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for container in containers[cluster]['containers'] %}
|
|
<tr>
|
|
<td>{{ loop.index }}</td>
|
|
<td>{{ container['containername'] }}</td>
|
|
<td>{{ container['ip'] }}</td>
|
|
|
|
{% if containers[cluster]['status'] == 'stopped' %}
|
|
<td><div class="label label-danger">Stopped</div></td>
|
|
{% else %}
|
|
<td><div class="label label-primary">Running</div></td>
|
|
{% endif %}
|
|
|
|
<td>xxxxx</td>
|
|
<td><a class="btn btn-info" href='/monitor/Node/{{ container['containername'] }}/detail/'>Detail</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endfor %}
|
|
{% endblock %}
|