🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

-rw-r--r-- templates/base/repo/foreach.commit.html


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