2012-01-29 13:05:35 +08:00
|
|
|
{% extends "myhome_base.html" %}
|
2012-03-23 14:50:19 +08:00
|
|
|
{% block nav_seafadmin_class %}class="cur"{% endblock %}
|
2011-08-16 21:05:42 +08:00
|
|
|
|
|
|
|
{% block right_panel %}
|
2012-03-10 19:26:19 +08:00
|
|
|
<h2>所有同步目录</h2>
|
2012-03-23 14:50:19 +08:00
|
|
|
{% if repos %}
|
|
|
|
<table class="repo-list">
|
2011-08-16 21:05:42 +08:00
|
|
|
<tr>
|
2012-04-01 14:25:25 +08:00
|
|
|
<th width="12%">名字</th>
|
|
|
|
<th width="20%">拥有者</th>
|
|
|
|
<th width="33%">ID</th>
|
|
|
|
<th width="27%">描述</th>
|
|
|
|
<th width="8%">操作</th>
|
2011-08-16 21:05:42 +08:00
|
|
|
</tr>
|
|
|
|
{% for repo in repos %}
|
|
|
|
<tr>
|
|
|
|
<td><a href="{{ SITE_ROOT }}repo/{{ repo.props.id }}/">{{ repo.props.name }}</a></td>
|
2012-04-02 23:56:41 +08:00
|
|
|
<td><a href="{{ SITE_ROOT }}home/owner/{{ repo.owner }}/">{{ repo.owner}}</a></td>
|
2011-08-16 21:05:42 +08:00
|
|
|
<td>{{ repo.props.id }}</td>
|
|
|
|
<td>{{ repo.props.desc }}</td>
|
2012-03-23 14:50:19 +08:00
|
|
|
<td><button data="{{ SITE_ROOT }}repo/remove/{{ repo.props.id }}/" class="repo-delete-btn">删除</button></td>
|
2011-08-16 21:05:42 +08:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
2012-03-20 11:35:56 +08:00
|
|
|
<div id="paginator">
|
|
|
|
{% if current_page != 1 %}
|
|
|
|
<a href="{{ SITE_ROOT }}seafadmin/?page={{ prev_page }}&per_page={{ per_page }}">上一页</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if page_next %}
|
|
|
|
<a href="{{ SITE_ROOT }}seafadmin/?page={{ next_page }}&per_page={{ per_page }}">下一页</a>
|
|
|
|
{% endif %}
|
|
|
|
<span>每页:</span>
|
|
|
|
{% if per_page == 25 %}
|
|
|
|
<span> 25 </span>
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ SITE_ROOT }}seafadmin/?per_page=25" class="per-page">25</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if per_page == 50 %}
|
|
|
|
<span> 50 </span>
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ SITE_ROOT }}seafadmin/?per_page=50" class="per-page">50</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if per_page == 100 %}
|
|
|
|
<span> 100 </span>
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ SITE_ROOT }}seafadmin/?per_page=100" class="per-page">100</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2012-03-23 14:50:19 +08:00
|
|
|
{% else %}
|
|
|
|
<p>暂无</p>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block extra_script %}
|
|
|
|
<script type="text/javascript">
|
2012-03-27 17:42:08 +08:00
|
|
|
addConfirmTo($('.repo-delete-btn'));
|
2012-03-23 14:50:19 +08:00
|
|
|
</script>
|
2011-08-16 21:05:42 +08:00
|
|
|
{% endblock %}
|
2012-03-23 14:50:19 +08:00
|
|
|
|