1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-27 19:20:53 +00:00
seahub/templates/text_diff.html

38 lines
1.1 KiB
HTML
Raw Normal View History

2012-10-16 06:47:36 +00:00
{% extends base_template %}
{% load seahub_tags avatar_tags%}
{% load url from future %}
{% block main_panel %}
2012-10-20 03:48:19 +00:00
<h3>文件修改详情</h3>
2012-10-16 06:47:36 +00:00
<div class="diff-desc">
<p class="path">
文件路径:
{% for name, link in zipped %}
{% if not forloop.last %}
<a href="{% url 'repo' repo.id %}?p={{ link|urlencode }}">{{ name }}</a> /
{% else %}
<a href="{% url 'repo_view_file' repo.id %}?p={{ link|urlencode }}">{{ name }}</a>
{% endif %}
{% endfor %}
</p>
<p class="">{% avatar current_commit.creator_name 20 %} {{ current_commit.creator_name|email2nickname }} 修改于 {{ current_commit.ctime|translate_commit_time }}</p>
</div>
{% if is_new_file %}
<div class="text-panel">
<p>文件 {{repo.name}} {{ path }} 是一个新建的空白文件</p>
</div>
{% else %}
<div id="text-diff-output">
2012-10-20 03:48:19 +00:00
<table>
<tr>
2012-10-16 06:47:36 +00:00
<th width="3%"></th>
<th width="47%"> 修改前 </th>
<th width="3%"></th>
<th width="47%"> 修改后 </th>
2012-10-20 03:48:19 +00:00
</tr>
{{ diff_result_table|safe }}
2012-10-16 06:47:36 +00:00
</table>
</div>
{% endif %}
{% endblock %}