1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00
Files
seahub/templates/file_revisions.html

62 lines
2.1 KiB
HTML
Raw Normal View History

2012-07-30 10:25:46 +08:00
{% extends base_template %}
{% load seahub_tags avatar_tags %}
{% block info_bar_message %}
{% if request.user.is_authenticated %}
{{ block.super }}
{% else %}
<div id="info-bar">
<span class="info">当前链接会在短期内失效,欢迎您 <a href="http://seafile.com/" target="_blank">加入Seafile </a>体验更多功能。</span>
</div>
{% endif %}
{% endblock %}
2012-08-11 17:26:39 +08:00
{% block main_panel %}
<h3><a href="{{ SITE_ROOT }}repo/{{ repo.props.id}}/files/?p={{ path }}">{{ repo.props.name }} {{path}}</a> 修改历史</h3>
<table>
<tr>
<th width="30%">修改时间</th>
<th width="20%">修改者</th>
<th width="20%">大小</th>
<th width="30%">操作</th>
</tr>
{% for commit in commits %}
<tr>
<td>
2012-08-11 15:38:00 +08:00
{{ commit.props.ctime|translate_commit_time }}
{% if commit.is_current_version %}
(当前版本)
{% endif %}
</td>
{% if commit.creator_name %}
<td>
2012-08-11 15:38:00 +08:00
<a href="{{ SITE_ROOT }}profile/{{ commit.creator_name }}/">{% avatar commit.creator_name 16 %}</a>
<a href="{{ SITE_ROOT }}profile/{{ commit.creator_name }}/">{{ commit.creator_name|email2nickname }}</a>
</td>
{% else %}
<td>未知</td>
{% endif %}
<td>{{ commit.revision_file_size|filesizeformat }} </td>
<td>
2012-07-14 14:16:39 +08:00
{% if not commit.is_current_version %}
{% if is_owner %}
<a href="{{ SITE_ROOT }}repo/file_revisions/{{ repo.id }}/?commit={{ commit.id }}&p={{path|urlencode}}&op=revert" class="file-revert op">还原</a>
{% endif %}
{% endif %}
<a href="{{ SITE_ROOT }}repo/file_revisions/{{ repo.id }}/?commit={{ commit.id }}&p={{path|urlencode}}&op=download" class="file-download op">下载</a>
<a href="{{ SITE_ROOT }}repo/file_revisions/{{ repo.id }}/?commit={{ commit.id }}&p={{path|urlencode}}&op=view" class="file-download op">查看</a>
</td>
</tr>
{% endfor %}
</table>
{% endblock %}
{% block extra_script %}
<script type="text/javascript">
</script>
{% endblock %}