1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-18 17:22:05 +00:00
seahub/templates/snippets/shared_in_repos.html

35 lines
1.3 KiB
HTML
Raw Normal View History

2012-09-05 02:22:30 +00:00
{% load seahub_tags %}
2012-09-05 03:03:15 +00:00
<h3>共享给我的同步目录</h3>
2012-09-05 02:22:30 +00:00
{% if in_repos %}
<table>
<tr>
<th width="5%"><!--icon--></th>
2012-09-06 02:18:29 +00:00
<th width="20%">名字</th>
<th width="35%">描述</th>
2012-09-05 02:22:30 +00:00
<th width="15%">更新时间</th>
<th width="15%">共享来源</th>
<th width="10%">操作</th>
</tr>
{% for repo in in_repos %}
<tr>
<td><img src="{{MEDIA_URL}}img/sync-folder-20.png" alt="目录icon" /></td>
2012-09-05 02:22:30 +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>{{ repo.props.shared_email|email2nickname }}</td>
<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/delete-20.png" data="{{ SITE_ROOT }}shareadmin/removeshare/?repo_id={{ repo.id }}&from={{ repo.shared_email }}&to={{ request.user }}" class="unshare-btn op-icon vh" title="取消共享" alt="取消共享" />
2012-09-05 02:22:30 +00:00
</td>
</tr>
{% endfor %}
</table>
{% else %}
<p>暂无</p>
{% endif %}