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


      1 {% extends "../template.html.include" %}
      2 
      3 {%- block title -%}
      4 {{ name }} - files
      5 {%- endblock -%}
      6 
      7 {% block body %}
      8 {% include "repo-table-header.html.include" %}
      9 
     10 <div id="content">
     11   <table id="files">
     12     <thead>
     13       <tr>
     14         <td><b>Mode</b></td>
     15         <td><b>Name</b></td>
     16       </tr>
     17     </thead>
     18 
     19     <tbody>
     20       {% for file in tree %}
     21       <tr>
     22         <td>{{ file.mode_symbolic }}</td>
     23         {% if file.is_directory %}
     24         <td><a href="{{ host }}/{{ name }}/tree/{{ file.href }}">{{ file.path }}</a></td>
     25         {% else %}
     26         <td><a href="{{ host }}/{{ name }}/blob/{{ file.href }}">{{ file.path }}</a></td>
     27         {% endif %}
     28       </tr>
     29       {% endfor %}
     30     </tbody>
     31   </table>
     32 </div>
     33 {% endblock %}
     34