2015-04-20 02:12:11 +00:00
|
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
{% load mytags %}
|
|
|
|
|
{% block content %}
|
|
|
|
|
{% include 'nav_cat_bar.html' %}
|
|
|
|
|
|
|
|
|
|
<div class="wrapper wrapper-content" xmlns="http://www.w3.org/1999/html">
|
|
|
|
|
<div class="row">
|
2015-12-01 05:21:42 +00:00
|
|
|
|
<div class="col-sm-8">
|
2015-12-03 10:37:18 +00:00
|
|
|
|
<div class="col-sm-12">
|
2015-12-01 05:21:42 +00:00
|
|
|
|
<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>
|
|
|
|
|
<a class="close-link">
|
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
2015-04-20 02:12:11 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
2015-12-01 05:21:42 +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密钥文件,然后导入到工具或者ssh命令指定密钥文件(确保密钥文件权限600),输入收到的密钥密码,登录跳板机。
|
|
|
|
|
登录后根据提示进行操作。跳板机web界面支持修改密码、个人信息和上传下载文件等功能,可以向管理员申请权限。
|
2015-04-20 02:12:11 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2015-12-01 05:21:42 +00:00
|
|
|
|
</div>
|
2015-12-03 10:37:18 +00:00
|
|
|
|
<div class="col-sm-12">
|
2015-12-01 05:21:42 +00:00
|
|
|
|
<div class="ibox float-e-margins">
|
|
|
|
|
<div class="ibox-title">
|
|
|
|
|
<h5>登录记录</h5>
|
|
|
|
|
<div class="ibox-tools">
|
|
|
|
|
<span class="label label-warning-light">最近登录</span>
|
|
|
|
|
</div>
|
2015-11-22 05:04:11 +00:00
|
|
|
|
</div>
|
2015-12-01 05:21:42 +00:00
|
|
|
|
<div class="ibox-content">
|
|
|
|
|
<div id="last">
|
|
|
|
|
<div class="feed-activity-list" >
|
|
|
|
|
{% for log in logs_last %}
|
|
|
|
|
<div class="feed-element">
|
|
|
|
|
<a href="profile.html" class="pull-left">
|
|
|
|
|
<img alt="image" class="img-circle" src="/static/img/{{ session_role_id | to_avatar }}.png">
|
|
|
|
|
</a>
|
|
|
|
|
<div class="media-body ">
|
|
|
|
|
{# <small class="pull-right">{{ log.start_time|time_delta }}</small>#}
|
|
|
|
|
<small class="pull-right">{{ log.start_time }}</small>
|
|
|
|
|
<strong>{{ log.user }}</strong> 登录了 <span class="text-navy">{{ log.host }}. </span><br>
|
|
|
|
|
<small class="text-muted">{{ log.start_time|date:"Y-m-d H:i:s" }}</small>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2015-11-22 05:04:11 +00:00
|
|
|
|
{% endfor %}
|
2015-12-01 05:21:42 +00:00
|
|
|
|
{% if not logs_last %}
|
|
|
|
|
(暂无)
|
|
|
|
|
{% endif %}
|
2015-11-22 05:04:11 +00:00
|
|
|
|
</div>
|
2015-12-01 05:21:42 +00:00
|
|
|
|
{% if logs_num > 10 %}
|
|
|
|
|
<button id="show" class="btn btn-primary btn-block m-t"><i class="fa fa-arrow-down"></i> Show All</button>
|
|
|
|
|
{% endif %}
|
2015-11-22 05:04:11 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
2015-12-01 05:21:42 +00:00
|
|
|
|
<div id="all" style="display: none">
|
|
|
|
|
<div class="feed-activity-list" >
|
|
|
|
|
{% for log in logs_all %}
|
|
|
|
|
<div class="feed-element">
|
|
|
|
|
<a href="profile.html" class="pull-left">
|
|
|
|
|
<img alt="image" class="img-circle" src="/static/img/{{ session_role_id | to_avatar }}.png">
|
|
|
|
|
</a>
|
|
|
|
|
<div class="media-body ">
|
|
|
|
|
<small class="pull-right">{{ log.start_time }}</small>
|
|
|
|
|
{# <small class="pull-right">{{ log.start_time|time_delta }}</small>#}
|
|
|
|
|
<strong>{{ log.user }}</strong> 登录了 <span class="text-navy">{{ log.host }}. </span><br>
|
|
|
|
|
<small class="text-muted">{{ log.start_time|date:"Y-m-d H:i:s" }}</small>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
2015-11-22 05:04:11 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2015-12-01 05:21:42 +00:00
|
|
|
|
</div>
|
2015-04-20 02:12:11 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2015-12-03 10:37:18 +00:00
|
|
|
|
<div class="col-sm-4">
|
2015-04-20 02:12:11 +00:00
|
|
|
|
<div class="ibox float-e-margins">
|
|
|
|
|
<div class="ibox-title">
|
2015-09-15 15:38:06 +00:00
|
|
|
|
<span class="label label-primary"><b>{{ user.username }}</b></span>
|
2015-04-20 02:12:11 +00:00
|
|
|
|
<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>
|
2015-09-15 15:38:06 +00:00
|
|
|
|
<td>{{ user.role }}</td>
|
2015-04-20 02:12:11 +00:00
|
|
|
|
</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>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|