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

-rw-r--r-- templates/docs/repo/foreach.tree.html


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