1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-02 07:47:32 +00:00

[repo_history]modified td width;[group_info]changed op-link to icon

This commit is contained in:
llj 2012-05-30 20:23:28 +08:00
parent fb1b777921
commit ea5740b421
2 changed files with 22 additions and 9 deletions

View File

@ -42,9 +42,9 @@
<table>
<tr>
<th width="20%">名字</th>
<th width="45%">描述</th>
<th width="48%">描述</th>
<th width="20%">共享来源</th>
<th width="15%">操作</th>
<th width="12%">操作</th>
</tr>
{% for repo in repos %}
@ -53,9 +53,9 @@
<td>{{ repo.props.desc }}</td>
<td>{{ repo.share_from }}</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 %}
<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 %}
</td>
</tr>
@ -68,7 +68,20 @@
{% block extra_script %}
<script type="text/javascript">
addConfirmTo($('#quit-group'), '确定要退出?');
addConfirmTo($('.cancel-share'), '确定要取消共享该目录?');
addConfirmTo($('#quit-group'), '确定要退出?');
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>
{% endblock %}

View File

@ -12,10 +12,10 @@
<h2 id="repo-history-hd">{{repo.props.name}} 修改历史</h2>
<table>
<tr>
<th width="20%">修改时间</th>
<th width="14%">修改时间</th>
<th width="10%">修改者</th>
<th width="60%">描述</th>
<th width="10%">操作</th>
<th width="63%">描述</th>
<th width="13%">操作</th>
</tr>
{% for commit in commits %}
<tr>