1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00
Files
seahub/templates/text_diff.html

35 lines
1.2 KiB
HTML
Raw Normal View History

2012-10-16 14:47:36 +08:00
{% extends base_template %}
{% load seahub_tags avatar_tags%}
{% load url from future %}
{% block main_panel %}
2012-10-24 15:40:25 +08:00
<h2 class="file-modification-hd"><span class="op-target">{{ u_filename }}</span> 修改详情 <a href="{% url 'user_profile' current_commit.creator_name %}">{% avatar current_commit.creator_name 16 %}</a><span class="modifier">{{ current_commit.creator_name|email2nickname }}</span><span class="time">{{ current_commit.ctime|translate_commit_time }}</span></h2>
2012-10-16 14:47:36 +08:00
<p class="path">
2012-10-24 15:40:25 +08:00
当前路径:
2012-10-16 14:47:36 +08:00
{% 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>
{% if is_new_file %}
2012-10-24 15:40:25 +08:00
<div id="text-diff-output">
<p class="blank-file">该文件为新建空白文件。</p>
2012-10-16 14:47:36 +08:00
</div>
{% else %}
<div id="text-diff-output">
2012-10-24 15:40:25 +08:00
<table class="diff-con">
2012-10-20 11:48:19 +08:00
<tr>
2012-10-16 14:47:36 +08:00
<th width="3%"></th>
2012-10-24 15:40:25 +08:00
<th width="47%">修改前</th>
2012-10-16 14:47:36 +08:00
<th width="3%"></th>
2012-10-24 15:40:25 +08:00
<th width="47%">修改后</th>
2012-10-20 11:48:19 +08:00
</tr>
{{ diff_result_table|safe }}
2012-10-16 14:47:36 +08:00
</table>
</div>
{% endif %}
{% endblock %}