-rw-r--r-- templates/stagit/repo/foreach.commit.html
1 {% extends "../template.html.include" %} 2 3 {%- block title -%} 4 {{ name }} - {{ commit.title }} 5 {%- endblock -%} 6 7 {% block body %} 8 {% include "repo-table-header.html.include" %} 9 10 <div id="content"> 11 <pre><b>Commit</b> <a href="{{ host }}/{{ name }}/commit/{{ commit.id }}.html">{{ commit.id }}</a> 12 <b>Parent:</b> <a href="{{ host }}/{{ name }}/commit/{{ commit.parent }}.html">{{ commit.parent }}</a> 13 <b>Author:</b> {{ commit.author }} <<a href="mailto:{{ commit.author_email }}">{{ commit.author_email }}</a>> 14 <b>Date:</b> {{ commit.authored }} 15 <b>Committer:</b> {{ commit.committer }} <<a href="mailto:{{ commit.committer_email }}">{{ commit.committer_email }}</a>> 16 <b>Committed:</b> {{ commit.committed }} 17 18 {{ commit.message }} 19 </pre> 20 21 {%- for diff in commit.diffs -%} 22 <div class="diff"> 23 <p> 24 <b>{{ diff.new_file }}</b> 25 <span class="status">{{ diff.status }}</span> 26 </p> 27 28 {% if diff.newfile != diff.oldfile %} 29 <p>Renamed from {{ diff.old_file }}</p> 30 {% endif %} 31 32 {%- for hunk in diff.hunks -%} 33 {{ hunk.header }} 34 35 <pre> 36 {%- for line in hunk.lines -%} 37 <span class="{{ line.class }}">{{ line.text }}</span> 38 {%- endfor -%} 39 </pre> 40 41 {%- endfor -%} 42 </div> 43 {%- endfor -%} 44 45 </div> 46 {% endblock %} 47