pull/6/head
halcyon 10 years ago
parent fef224459c
commit df2c2fc7d5

@ -60,7 +60,7 @@ def f_add_host(ip, port, idc, jtype, group, dept, active, comment, username='',
def add_host(request):
login_types = {'L': 'LDAP', 'M': 'MAP'}
header_title, path1, path2 = u'添加主机', u'资产管理', u'添加主机'
eidc = IDC.objects.all()
eidc = IDC.objects.exclude(name='ALL')
if is_super_user(request):
edept = DEPT.objects.all()
egroup = BisGroup.objects.exclude(name='ALL')

@ -7,7 +7,7 @@
<div class="col-lg-3">
<div class="ibox float-e-margins">
<div class="ibox-title">
<span class="label label-success pull-right">Monthly</span>
<span class="label label-success pull-right">Users</span>
<h5>用户总数</h5>
</div>
<div class="ibox-content">
@ -20,7 +20,7 @@
<div class="col-lg-3">
<div class="ibox float-e-margins">
<div class="ibox-title">
<span class="label label-info pull-right">Annual</span>
<span class="label label-info pull-right">Hosts</span>
<h5>主机总数</h5>
</div>
<div class="ibox-content">
@ -34,7 +34,7 @@
<div class="col-lg-3">
<div class="ibox float-e-margins">
<div class="ibox-title">
<span class="label label-primary pull-right">Today</span>
<span class="label label-primary pull-right">Online</span>
<h5>实时在线用户</h5>
</div>
<div class="ibox-content">
@ -48,13 +48,13 @@
<div class="col-lg-3">
<div class="ibox float-e-margins">
<div class="ibox-title">
<span class="label label-danger pull-right">Low value</span>
<span class="label label-danger pull-right">Connected</span>
<h5>已连接服务器</h5>
</div>
<div class="ibox-content">
<h1 class="no-margins"><a href="/jlog/log_list/online/"> <span id="online_hosts"></span></a></h1>
<div class="stat-percent font-bold text-danger">38% <i class="fa fa-level-down"></i></div>
<small>Connect host</small>
<small>Connected host</small>
</div>
</div>
</div>

@ -34,7 +34,7 @@
<td> {{ post.port }} </td>
<td> {{ login_types|get_item:post.login_type }} </td>
<td class="text-center"> {{ post.idc.name }} </td>
<td class="text-center">{% for group in post.bis_group.all|filter_private %} {{ group }} {% endfor %}</td>
<td class="text-center">{% for group in post.bis_group.all %} {{ group }} {% endfor %}</td>
<td class="text-center"> {{ post.date_added|date:"Y-m-d H:i:s" }} </td>
<td class="text-center"> {{ post.comment }} </td>
</tr>

Loading…
Cancel
Save