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