1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-16 16:21:48 +00:00
seahub/templates/snippets/my_owned_repos.html

34 lines
1.5 KiB
HTML
Raw Normal View History

2012-09-05 03:03:15 +00:00
{% load seahub_tags %}
2012-10-09 06:38:13 +00:00
<h3>我拥有的资料库</h3>
<button id="repo-create">新建资料库</button>
2012-09-05 03:03:15 +00:00
{% if owned_repos %}
<table>
<tr>
<th width="4%"><!--icon--></th>
<th width="24%">名字</th>
<th width="40%">描述</th>
2012-09-05 03:03:15 +00:00
<th width="20%">更新时间</th>
<th width="12%">操作</th>
</tr>
{% for repo in owned_repos %}
<tr>
<td><img src="{{MEDIA_URL}}img/sync-folder-20.png" title="可读写" alt="目录icon" /></td>
2012-09-05 03:03:15 +00:00
<td><a href="{{ SITE_ROOT }}repo/{{ repo.props.id }}/">{{ repo.props.name }}</a></td>
<td>{{ repo.props.desc }}</td>
{% if repo.latest_modify %}
<td>{{ repo.latest_modify|translate_commit_time }}</td>
{% else %}
<td>--</td>
{% endif %}
<td>
<img src="{{ MEDIA_URL }}img/download-20.png" data="{{ repo.props.id }}" class="download-btn op-icon vh" title="下载到本地" alt="下载" />
<img src="{{ MEDIA_URL }}img/share-20.png" data="{{ repo.props.id }}" class="repo-share-btn op-icon vh" title="共享" alt="共享" />
<img src="{{ MEDIA_URL }}img/delete-20.png" data="{{ SITE_ROOT }}repo/remove/{{ repo.props.id }}/?next={{ request.path }}" class="repo-delete-btn op-icon vh" title="删除" alt="删除" />
2012-09-05 03:03:15 +00:00
</td>
</tr>
{% endfor %}
</table>
{% else %}
<p>您可以新建一个资料库来组织您的文件资料,比如为每个项目创建一个资料库,每个资料库可以单独地同步和共享。</p>
2012-09-05 03:03:15 +00:00
{% endif %}