2012-07-30 10:25:46 +08:00
|
|
|
{% extends base_template %}
|
2012-08-09 17:19:15 +08:00
|
|
|
{% load seahub_tags avatar_tags %}
|
2012-07-13 17:19:44 +08:00
|
|
|
|
|
|
|
{% 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>
|
2012-07-13 17:19:44 +08:00
|
|
|
<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 }}
|
2012-07-13 17:19:44 +08:00
|
|
|
{% if commit.is_current_version %}
|
|
|
|
(当前版本)
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
|
2012-08-09 17:19:15 +08:00
|
|
|
{% 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>
|
2012-08-09 17:19:15 +08:00
|
|
|
</td>
|
2012-07-13 17:19:44 +08:00
|
|
|
{% 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 %}
|
2012-07-13 17:19:44 +08:00
|
|
|
{% 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 %}
|