Child: [7d89a6] (diff)

Download this file

commit.html    48 lines (43 with data), 1.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{% extends g.theme.master %}
{% block title %}
{{c.project.name}} / {{c.app.config.options.mount_label}} / Commit {{commit.shorthand_id()}}
{% endblock %}
{% macro commit_link(commit) -%}
<a href={{commit.url()}}>{{commit.shorthand_id}}</a>
{%- endmacro %}
{% block header %}Commit {{commit_link(commit)}}{% endblock %}
{% block content %}
{{c.revision_widget.display(value=commit, prev=prev, next=next)}}
<table>
<tbody>
{% for diff in commit.diffs.added %}
<tr>
<td>add</td>
<td><a href="./tree{{h.really_unicode(diff)}}">{{h.really_unicode(diff)}}</a></td>
</tr>
{% endfor %}{% for diff in commit.diffs.removed %}
<tr>
<td>remove</td>
<td><a href="{{prev[0].url()}}tree{{h.really_unicode(diff)}}">{{h.really_unicode(diff)}}</a></td>
</tr>
{% endfor %}{% for diff in commit.diffs.changed %}
<tr>
<td>change</td>
<td>
<a href="./tree/{{h.really_unicode(diff)}}">{{h.really_unicode(diff)}}</a>
<a href="./tree/{{h.really_unicode(diff)}}?diff={{prev[0].object_id}}">(diff)</a>
</td>
</tr>
{% endfor %}{% for diff in commit.diffs.copied %}
<tr>
<td>copy</td>
<td>
<a href="{{prev[0].url()}}tree{{h.really_unicode(diff.old)}}">{{h.really_unicode(diff.old)}}</a>
<br/>to<br/>
<a href="./tree{{h.really_unicode(diff)}}">{{h.really_unicode(diff)}}</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}