-rw-r--r-- templates/base/index.html
1 {% extends "template.html.include" %} 2 3 {%- block title %}My git repositories{% endblock %} 4 5 {%- block head %} 6 <h1>My git repositories</h1> 7 8 <p> 9 This is the base template for <code>gitja</code>. 10 </p> 11 12 <p> 13 The full documentation for <code>gitja</code>, including how templates need 14 to be organised and what variables are available within them, see <a 15 href="https://gitja.mcol.xyz">https://gitja.mcol.xyz</a>. 16 </p> 17 {% endblock %} 18 19 {%- block content %} 20 <table> 21 <thead> 22 <tr> 23 <td><b>Name</b></td> 24 <td><b>Description</b></td> 25 <td colspan="2"><b>Last commit</b></td> 26 </tr> 27 </thead> 28 29 <tbody> 30 {% for repo in sort(repositories, by="updated", reverse=1) %} 31 <tr> 32 <td><a href="{{ host }}/{{ repo.name }}">{{ repo.name }}</a></td> 33 <td>{{ repo.description }}</td> 34 <td>{{ repo.updated[:16] }}</td> 35 <td>{{ repo.head.title }}</td> 36 </tr> 37 {% endfor %} 38 </tbody> 39 </table> 40 {% endblock %} 41