🐙 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/refs.html


      1 {% extends "../template.html.include" %}
      2 
      3 {%- block title %}{{ name }} - Refs{% endblock -%}
      4 
      5 {% block content %}
      6 <h2>Branches</h2>
      7 <table>
      8   <thead>
      9     <tr>
     10       <td><b>Name</b></td>
     11       <td colspan="2"><b>Last commit</b></td>
     12       <td><b>Author</b></td>
     13     </tr>
     14   </thead>
     15   <tbody>
     16     {% for branch in branches %}
     17     <tr>
     18       <td>{{ branch.name }}</td>
     19       <td>{{ branch.authored[:16] }}</td>
     20       <td>{{ branch.title }}</td>
     21       <td>{{ branch.author }}</td>
     22     </tr>
     23     {% endfor %}
     24   </tbody>
     25 </table>
     26 
     27 <br>
     28 
     29 <h2>Tags</h2>
     30 <table id="tags">
     31   <thead>
     32     <tr>
     33       <td><b>Name</b></td>
     34       <td colspan="2"><b>Last commit</b></td>
     35       <td><b>Author</b></td>
     36     </tr>
     37   </thead>
     38   <tbody>
     39     {% for tag in tags %}
     40     <tr>
     41       <td>{{ tag.name }}</td>
     42       <td>{{ tag.authored[:16] }}</td>
     43       <td>{{ tag.title }}</td>
     44       <td>{{ tag.author }}</td>
     45     </tr>
     46     {% endfor %}
     47   </tbody>
     48 </table>
     49 {% endblock %}
     50