mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-12 04:12:16 +00:00
[repo_history]modified td width;[group_info]changed op-link to icon
This commit is contained in:
parent
fb1b777921
commit
ea5740b421
@ -42,9 +42,9 @@
|
|||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="20%">名字</th>
|
<th width="20%">名字</th>
|
||||||
<th width="45%">描述</th>
|
<th width="48%">描述</th>
|
||||||
<th width="20%">共享来源</th>
|
<th width="20%">共享来源</th>
|
||||||
<th width="15%">操作</th>
|
<th width="12%">操作</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{% for repo in repos %}
|
{% for repo in repos %}
|
||||||
@ -53,9 +53,9 @@
|
|||||||
<td>{{ repo.props.desc }}</td>
|
<td>{{ repo.props.desc }}</td>
|
||||||
<td>{{ repo.share_from }}</td>
|
<td>{{ repo.share_from }}</td>
|
||||||
<td>
|
<td>
|
||||||
<a class="op" href="{{ SITE_ROOT }}seafile_access_check/?repo_id={{ repo.props.id }}" target="_blank">下载</a>
|
<img src="{{ MEDIA_URL }}img/download-20.png" class="download vh" data="{{ SITE_ROOT }}seafile_access_check/?repo_id={{ repo.props.id }}" alt="下载" title="下载" />
|
||||||
{% if is_staff or repo.share_from_me %}
|
{% if is_staff or repo.share_from_me %}
|
||||||
<a href="#" class="cancel-share op" data="{{ SITE_ROOT }}shareadmin/removeshare/?repo_id={{ repo.props.id }}&from={{ repo.share_from }}&gid={{ group.id }}">取消共享</a>
|
<img src="{{ MEDIA_URL }}img/delete-20.png" class="cancel-share vh" data="{{ SITE_ROOT }}shareadmin/removeshare/?repo_id={{ repo.props.id }}&from={{ repo.share_from }}&gid={{ group.id }}" title="取消共享" alt="取消共享" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -68,7 +68,20 @@
|
|||||||
|
|
||||||
{% block extra_script %}
|
{% block extra_script %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
addConfirmTo($('#quit-group'), '确定要退出?');
|
addConfirmTo($('#quit-group'), '确定要退出?');
|
||||||
addConfirmTo($('.cancel-share'), '确定要取消共享该目录?');
|
addConfirmTo($('.cancel-share'), '确定要取消共享该目录?');
|
||||||
|
|
||||||
|
$("table tr:gt(0)").hover(
|
||||||
|
function() {
|
||||||
|
$(this).find('img').css('cursor', 'pointer').removeClass('vh');
|
||||||
|
},
|
||||||
|
function() {
|
||||||
|
$(this).find('img').addClass('vh');
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
$('.download').click(function() {
|
||||||
|
window.open($(this).attr('data'));
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -12,10 +12,10 @@
|
|||||||
<h2 id="repo-history-hd">{{repo.props.name}} 修改历史</h2>
|
<h2 id="repo-history-hd">{{repo.props.name}} 修改历史</h2>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="20%">修改时间</th>
|
<th width="14%">修改时间</th>
|
||||||
<th width="10%">修改者</th>
|
<th width="10%">修改者</th>
|
||||||
<th width="60%">描述</th>
|
<th width="63%">描述</th>
|
||||||
<th width="10%">操作</th>
|
<th width="13%">操作</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for commit in commits %}
|
{% for commit in commits %}
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user