1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 06:34:40 +00:00
Files
seahub/templates/sys_seafadmin.html

61 lines
1.9 KiB
HTML
Raw Normal View History

2012-05-17 14:02:47 +08:00
{% extends "admin_base.html" %}
{% 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 %}
<table>
2011-08-16 21:05:42 +08:00
<tr>
<th width="4%"><!--icon--></th>
2012-05-19 20:28:04 +08:00
<th width="25%">名字</th>
<th width="28%">拥有者</th>
<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>
<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>
<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 %}
<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 %}
<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 %}
<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 %}
<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 %}
<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