1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-20 16:05:37 +00:00
seahub/templates/userinfo.html

91 lines
2.0 KiB
HTML
Raw Normal View History

{% extends "admin_base.html" %}
2012-04-13 05:21:48 +00:00
{% block nav_useradmin_class %}class="cur"{% endblock %}
2012-04-13 05:21:48 +00:00
{% block left_panel %}
<!--
2012-04-13 05:21:48 +00:00
<ul>
<li><a href="{{ SITE_ROOT }}useradmin/add/">添加用户</a></li>
</ul>
-->
<h3>已用空间</h3>
<p>{{ quota_usage|filesizeformat }} / 2 GB</p>
2012-04-13 05:21:48 +00:00
{% endblock %}
2012-04-13 05:21:48 +00:00
{% block right_panel %}
<h3>{{ email }} 拥有的同步目录</h3>
{% if owned_repos %}
<table>
<tr>
<th width="30%">名字</th>
<th width="50%">描述</th>
<th width="20%">操作</th>
</tr>
{% for repo in owned_repos %}
<tr>
<td><a href="{{ SITE_ROOT }}repo/{{ repo.props.id }}/">{{ repo.props.name }}</a></td>
<td>{{ repo.props.desc }}</td>
<td>
2012-06-05 11:38:28 +00:00
<button data="{{ SITE_ROOT }}repo/remove/{{ repo.props.id }}/?next={{ request.path }}" class="repo-delete-btn">删除</button>
</td>
</tr>
{% endfor %}
</table>
{% else %}
<p>暂无</p>
{% endif %}
<h3>共享给 {{ email }} 的同步目录</h3>
{% if in_repos %}
<table class="repo-list">
<tr>
<th width="30%">名字</th>
<th width="30%">共享来源</th>
<th width="40%">描述</th>
</tr>
{% for repo in in_repos %}
<tr>
<td><a href="{{ SITE_ROOT }}repo/{{ repo.props.id }}">{{ repo.props.name }}</a></td>
<td>{{ repo.props.shared_email }}</td>
<td>{{ repo.props.desc }}</td>
<td>
</td>
</tr>
{% endfor %}
</table>
{% else %}
<p>暂无</p>
{% endif %}
2012-04-13 05:21:48 +00:00
<h3>{{ email }} 的计算机</h3>
2012-04-13 05:21:48 +00:00
<table class="user-list">
<tr>
<th width="60%">计算机名</th>
<th width="20%">角色</th>
<th width="20%">状态</th>
2012-04-13 05:21:48 +00:00
</tr>
2012-04-15 15:33:22 +00:00
{% for username, roles in user_dict.items %}
2012-04-13 05:21:48 +00:00
<tr>
2012-04-15 15:33:22 +00:00
{% if username %}
<td>{{ username }}</td>
{% else %}
<td>未知</td>
{% endif %}
2012-04-15 15:33:22 +00:00
{% if roles %}
<td>{{ roles }}</td>
2012-04-13 05:21:48 +00:00
<td>已验证</td>
{% else %}
2012-04-15 15:33:22 +00:00
<td></td>
2012-04-13 05:21:48 +00:00
<td>未验证</td>
{% endif %}
2012-04-15 15:33:22 +00:00
2012-04-13 05:21:48 +00:00
</tr>
{% endfor %}
</table>
{% endblock %}