2015-04-06 15:04:31 +00:00
|
|
|
|
{% extends 'base.html' %}
|
2015-04-08 09:32:56 +00:00
|
|
|
|
{% load mytags %}
|
2015-04-06 15:04:31 +00:00
|
|
|
|
{% block content %}
|
|
|
|
|
{% include 'nav_cat_bar.html' %}
|
|
|
|
|
|
2015-04-08 09:32:56 +00:00
|
|
|
|
<div class="wrapper wrapper-content" xmlns="http://www.w3.org/1999/html">
|
2015-04-06 15:04:31 +00:00
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-lg-8">
|
|
|
|
|
<div class="ibox float-e-margins">
|
|
|
|
|
<div class="ibox-title">
|
|
|
|
|
<h5> 浣跨敤璇存槑 </h5>
|
|
|
|
|
<div class="ibox-tools">
|
|
|
|
|
<a class="collapse-link">
|
|
|
|
|
<i class="fa fa-chevron-up"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
|
|
|
|
<i class="fa fa-wrench"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<ul class="dropdown-menu dropdown-user">
|
|
|
|
|
<li><a href="#">鏈惎鐢 1</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li><a href="#">鏈惎鐢 2</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<a class="close-link">
|
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2015-04-08 09:32:56 +00:00
|
|
|
|
<div class="ibox-content" style="line-height: 26px">
|
|
|
|
|
<span style="font-size: large">娆</span>杩庝娇鐢<span class="text-navy"><b>Jumpserver</b></span>璺虫澘鏈虹郴缁燂紝
|
|
|
|
|
棣栧厛闇瑕 <b><a href="/juser/down_key/?id={{ user.id }}">涓嬭浇</a></b> 鐧诲綍璺虫澘鏈虹殑SSH瀵嗛挜鏂囦欢锛鐒跺悗瀵煎叆鍒板伐鍏锋垨鑰卻sh鍛戒护鎸囧畾瀵嗛挜鏂囦欢(纭繚瀵嗛挜鏂囦欢鏉冮檺600)锛岃緭鍏ユ敹鍒扮殑瀵嗛挜瀵嗙爜锛岀櫥褰曡烦鏉挎満銆
|
|
|
|
|
鐧诲綍鍚庢牴鎹彁绀鸿繘琛屾搷浣溿傝烦鏉挎満web鐣岄潰鏀寔淇敼瀵嗙爜銆佷釜浜轰俊鎭拰涓婁紶涓嬭浇鏂囦欢绛夊姛鑳锛鍙互鍚戠鐞嗗憳鐢宠鏉冮檺銆
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="ibox float-e-margins">
|
|
|
|
|
<div class="ibox-title">
|
|
|
|
|
<h5> 宸叉巿鏉冧富鏈 </h5>
|
|
|
|
|
<div class="ibox-tools">
|
|
|
|
|
<div class="label label-primary float-left"><b>鎬诲叡锛歿{ host_count }}</b></div>
|
|
|
|
|
<a class="collapse-link">
|
|
|
|
|
<i class="fa fa-chevron-up"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
|
|
|
|
<i class="fa fa-wrench"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<ul class="dropdown-menu dropdown-user">
|
|
|
|
|
<li><a href="#">鏈惎鐢 1</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li><a href="#">鏈惎鐢 2</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<a class="close-link">
|
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2015-04-06 15:04:31 +00:00
|
|
|
|
<div class="ibox-content">
|
2015-04-08 09:32:56 +00:00
|
|
|
|
<table class="table table-striped">
|
|
|
|
|
{% for host_five in new_posts %}
|
|
|
|
|
<tr>
|
|
|
|
|
{% for host in host_five %}
|
|
|
|
|
<td>{{ host.ip }}</td>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</table>
|
|
|
|
|
{% ifequal host_count 0 %}
|
|
|
|
|
(绌)
|
|
|
|
|
{% endifequal %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-lg-4">
|
|
|
|
|
<div class="ibox float-e-margins">
|
|
|
|
|
<div class="ibox-title">
|
|
|
|
|
<span class="label label-primary"><b>{{ user.name }}</b></span>
|
|
|
|
|
<div class="ibox-tools">
|
|
|
|
|
<a class="collapse-link">
|
|
|
|
|
<i class="fa fa-chevron-up"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
|
|
|
|
<i class="fa fa-wrench"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<ul class="dropdown-menu dropdown-user">
|
|
|
|
|
<li><a href="#"></a>
|
|
|
|
|
</li>
|
|
|
|
|
<li><a href="#"></a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<a class="close-link">
|
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="ibox-content">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="text-left">
|
|
|
|
|
<table class="table">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-navy">ID</td>
|
|
|
|
|
<td>{{ user.id }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-navy">鐢ㄦ埛鍚</td>
|
|
|
|
|
<td>{{ user.username }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-navy">濮撳悕</td>
|
|
|
|
|
<td>{{ user.name }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-navy">瑙掕壊</td>
|
|
|
|
|
<td>{{ user.id | get_role }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-navy">閮ㄩ棬</td>
|
|
|
|
|
<td>{{ user.dept.name }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-navy">Email</td>
|
|
|
|
|
<td>{{ user.email }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-navy">婵娲</td>
|
|
|
|
|
<td>{{ user.is_active|bool2str }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-navy">娣诲姞鏃ユ湡</td>
|
|
|
|
|
<td>{{ user.date_joined|date:"Y-m-d H:i:s" }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-navy">鏈鍚庣櫥褰</td>
|
|
|
|
|
<td>{{ user.last_login|date:"Y-m-d H:i:s" }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-navy">鎵鍦ㄧ敤鎴风粍</td>
|
|
|
|
|
<td>
|
|
|
|
|
<table class="table">
|
|
|
|
|
{% for group in user.group.all %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{{ group.name }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2015-04-06 15:04:31 +00:00
|
|
|
|
</div>
|
2015-04-08 09:32:56 +00:00
|
|
|
|
</div>
|
2015-04-06 15:04:31 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|