1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00
Files
seahub/templates/myhome.html

64 lines
1.5 KiB
HTML
Raw Normal View History

{% extends "myhome_base.html" %}
2011-05-08 15:19:58 +08:00
2012-03-22 20:33:27 +08:00
{% block nav_home_class %}class="cur"{% endblock %}
{% block left_panel %}
<h3>已用空间</h3>
2012-03-22 20:33:27 +08:00
<p>{{ quota_usage|filesizeformat }} / 4 GB</p>
{% endblock %}
2011-05-08 15:19:58 +08:00
{% block right_panel %}
2011-10-13 00:17:48 +08:00
{% if not user.user_id %}
<div class="notification">
2012-03-22 20:33:27 +08:00
你还没有绑定 Ccnet/Seafile 公钥 ID。 现在<a href="{{ SITE_ROOT }}profile/edit/">绑定</a>
</div>
{% endif %}
<h3>我拥有的同步目录</h3>
2012-03-22 20:33:27 +08:00
{% if owned_repos %}
2011-10-13 00:17:48 +08:00
<table class="repo-list default">
<tr>
<th>名字</th>
<th>ID</th>
<th>描述</th>
<th>操作</th>
2011-10-13 00:17:48 +08:00
</tr>
{% for repo in owned_repos %}
<tr>
<td><a href="{{ SITE_ROOT }}repo/{{ repo.props.id }}">{{ repo.props.name }}</a></td>
2011-10-13 00:17:48 +08:00
<td>{{ repo.props.id }}</td>
<td>{{ repo.props.desc }}</td>
<td><a href="{{ SITE_ROOT }}repo/remove/{{ repo.props.id }}/">删除</a></td>
2011-10-13 00:17:48 +08:00
</tr>
{% endfor %}
</table>
2012-03-22 20:33:27 +08:00
{% else %}
<p>暂无</p>
{% endif %}
2011-10-13 00:17:48 +08:00
<h3>我获取的同步目录</h3>
2012-03-22 20:33:27 +08:00
{% if fetched_repos %}
2012-03-11 21:35:44 +08:00
<table class="repo-list default">
<tr>
<th>名字</th>
<th>ID</th>
<th>描述</th>
<th>操作</th>
</tr>
{% for repo in fetched_repos %}
<tr>
<td><a href="{{ SITE_ROOT }}repo/{{ repo.props.id }}">{{ repo.props.name }}</a></td>
<td>{{ repo.props.id }}</td>
<td>{{ repo.props.desc }}</td>
<td><a href="{{ SITE_ROOT }}repo/removefetched/{{ user.user_id }}/{{ repo.props.id }}/">删除</a></td>
2012-03-11 21:35:44 +08:00
</tr>
{% endfor %}
</table>
2012-03-22 20:33:27 +08:00
{% else %}
<p>暂无</p>
{% endif %}
2011-05-08 15:19:58 +08:00
{% endblock %}