2012-05-17 14:02:47 +08:00
|
|
|
{% extends "admin_base.html" %}
|
2012-05-17 20:39:37 +08:00
|
|
|
{% block nav_seafadmin_class %}class="cur"{% endblock %}
|
2011-08-16 21:05:42 +08:00
|
|
|
|
|
|
|
{% block right_panel %}
|
2012-10-09 14:38:13 +08:00
|
|
|
<h3>所有资料库</h3>
|
2012-03-23 14:50:19 +08:00
|
|
|
{% if repos %}
|
2012-05-17 20:39:37 +08:00
|
|
|
<table>
|
2011-08-16 21:05:42 +08:00
|
|
|
<tr>
|
2012-09-27 16:32:17 +08:00
|
|
|
<th width="4%"><!--icon--></th>
|
2012-05-19 20:28:04 +08:00
|
|
|
<th width="25%">名字</th>
|
|
|
|
<th width="28%">拥有者</th>
|
2012-09-27 16:32:17 +08:00
|
|
|
<th width="36%">描述</th>
|
2012-05-19 20:28:04 +08:00
|
|
|
<th width="7%">操作</th>
|
2011-08-16 21:05:42 +08:00
|
|
|
</tr>
|
|
|
|
{% for repo in repos %}
|
|
|
|
<tr>
|
2012-09-27 19:15:55 +08:00
|
|
|
<td><img src="{{MEDIA_URL}}img/sync-folder-20.png" title="可读写" alt="目录icon" /></td>
|
2011-08-16 21:05:42 +08:00
|
|
|
<td><a href="{{ SITE_ROOT }}repo/{{ repo.props.id }}/">{{ repo.props.name }}</a></td>
|
2012-05-03 10:52:43 +08:00
|
|
|
<td><a href="{{ SITE_ROOT }}useradmin/info/{{ repo.owner }}/">{{ repo.owner}}</a></td>
|
2011-08-16 21:05:42 +08:00
|
|
|
<td>{{ repo.props.desc }}</td>
|
2012-09-04 17:15:19 +08:00
|
|
|
<td><a href="#" data="{{ SITE_ROOT }}repo/remove/{{ repo.props.id }}/?next={{ request.path }}" class="repo-delete-btn op">删除</a></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 %}
|
2012-07-09 10:37:42 +08:00
|
|
|
<a href="{{ SITE_ROOT }}sys/seafadmin/?page={{ prev_page }}&per_page={{ per_page }}">上一页</a>
|
2012-03-20 11:35:56 +08:00
|
|
|
{% endif %}
|
|
|
|
{% if page_next %}
|
2012-07-09 10:37:42 +08:00
|
|
|
<a href="{{ SITE_ROOT }}sys/seafadmin/?page={{ next_page }}&per_page={{ per_page }}">下一页</a>
|
2012-03-20 11:35:56 +08:00
|
|
|
{% endif %}
|
|
|
|
<span>每页:</span>
|
|
|
|
{% if per_page == 25 %}
|
|
|
|
<span> 25 </span>
|
|
|
|
{% else %}
|
2012-07-09 10:37:42 +08:00
|
|
|
<a href="{{ SITE_ROOT }}sys/seafadmin/?per_page=25" class="per-page">25</a>
|
2012-03-20 11:35:56 +08:00
|
|
|
{% endif %}
|
|
|
|
{% if per_page == 50 %}
|
|
|
|
<span> 50 </span>
|
|
|
|
{% else %}
|
2012-07-09 10:37:42 +08:00
|
|
|
<a href="{{ SITE_ROOT }}sys/seafadmin/?per_page=50" class="per-page">50</a>
|
2012-03-20 11:35:56 +08:00
|
|
|
{% endif %}
|
|
|
|
{% if per_page == 100 %}
|
|
|
|
<span> 100 </span>
|
|
|
|
{% else %}
|
2012-07-09 10:37:42 +08:00
|
|
|
<a href="{{ SITE_ROOT }}sys/seafadmin/?per_page=100" class="per-page">100</a>
|
2012-03-20 11:35:56 +08:00
|
|
|
{% 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
|
|
|
|