mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-01 23:38:37 +00:00
51 lines
1.6 KiB
HTML
51 lines
1.6 KiB
HTML
{% extends "myhome_base.html" %}
|
|
|
|
{% block nav_shareadmin_class %}class="cur"{% endblock %}
|
|
|
|
{% block right_panel %}
|
|
<h3>我共享的同步目录</h3>
|
|
{% if out_repos %}
|
|
<table class="repo-list">
|
|
<tr>
|
|
<th width="20%">名字</th>
|
|
<th width="25%">共享给</th>
|
|
<th width="47%">描述</th>
|
|
<th width="8%">操作</th>
|
|
</tr>
|
|
{% for repo in out_repos %}
|
|
<tr>
|
|
<td><a href="{{ SITE_ROOT }}repo/{{ repo.props.id }}">{{ repo.props.name }}</a></td>
|
|
<td>{{ repo.props.shared_email }}</td>
|
|
<td>{{ repo.props.desc }}</td>
|
|
<td>
|
|
{% if repo.gid %}
|
|
<img src="{{ MEDIA_URL }}img/delete-20.png" data="{{ SITE_ROOT }}shareadmin/removeshare/?repo_id={{ repo.props.id }}&from={{ request.user }}&gid={{ repo.gid }}" class="cancel-share vh" alt="取消共享" title="取消共享" />
|
|
{% else %}
|
|
<img src="{{ MEDIA_URL }}img/delete-20.png" data="{{ SITE_ROOT }}shareadmin/removeshare/?repo_id={{ repo.props.id }}&from={{ request.user }}&to={{ repo.props.shared_email }}" class="cancel-share vh" alt="取消共享" title="取消共享" />
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% else %}
|
|
<p>暂无</p>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block extra_script %}
|
|
<script type="text/javascript">
|
|
$('.cancel-share').click(function() {
|
|
location.href = $(this).attr('data');
|
|
});
|
|
|
|
$("table tr:gt(0)").hover(
|
|
function() {
|
|
$(this).find('img').css('cursor', 'pointer').removeClass('vh');
|
|
},
|
|
function() {
|
|
$(this).find('img').addClass('vh');
|
|
}
|
|
);
|
|
</script>
|
|
{% endblock %}
|