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

-rw-r--r-- templates/stagit/index.html


      1 {% extends "template.html.include" %}
      2 
      3 {%- block title -%}
      4 gitja - Index
      5 {%- endblock -%}
      6 
      7 {% block body %}
      8 <table id="head">
      9   <tr><td width="32px" rowspan="2"><a href="{{ host }}"><img src="{{ host }}/avatar.png" id="avatar"/></a></td>
     10     <td rowspan="2"><a href="{{ host }}">{{ host }}</a> / <a href="{{ host }}">code</a></td><td class="link"><a href="{{ host }}/posts.html">posts</a></td></tr><tr><td class="link"><a href="{{ host }}/about.html">about</a></td></tr>
     11 </table>
     12 
     13 <hr>
     14 
     15 <div id="content">
     16   <table id="index">
     17     <thead>
     18       <tr><td><b>Name</b></td><td><b>Description</b></td><td><b>Last commit</b></td></tr>
     19     </thead>
     20 
     21     <tbody>
     22       {% for repo in sort(repositories, by="updated", reverse=1) %}
     23       <tr><td><a href="{{ repo.name }}">{{ repo.name }}</a></td><td>{{ repo.description }}</td><td>{{ repo.updated[:16] }}</td></tr>
     24       {% endfor %}
     25     </tbody>
     26   </table>
     27 </div>
     28 {% endblock %}
     29