2011-04-30 13:18:32 +08:00
|
|
|
{% 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 %}
|
2011-11-01 22:21:01 +08:00
|
|
|
{% block left_panel %}
|
|
|
|
<h3>已用空间</h3>
|
2012-03-22 20:33:27 +08:00
|
|
|
<p>{{ quota_usage|filesizeformat }} / 4 GB</p>
|
2011-11-01 22:21:01 +08:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
2011-05-08 15:19:58 +08:00
|
|
|
{% block right_panel %}
|
2011-10-13 00:17:48 +08:00
|
|
|
|
2012-02-24 15:38:04 +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>
|
2012-02-24 15:38:04 +08:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2012-03-26 13:59:44 +08:00
|
|
|
<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>
|
2011-11-01 22:21:01 +08:00
|
|
|
<th>操作</th>
|
2011-10-13 00:17:48 +08:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
{% for repo in owned_repos %}
|
|
|
|
<tr>
|
2011-10-18 16:00:38 +08:00
|
|
|
<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>
|
2011-11-01 22:21:01 +08:00
|
|
|
<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
|
|
|
|
2012-03-26 13:59:44 +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>
|
2012-03-26 13:59:44 +08:00
|
|
|
<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 %}
|