https://dev.kronoz.win/r/rgit.git
1{% extends "repo/base.html" %}
2
3{% block tree_nav_class %}active{% endblock %}
4
5{% block content %}
6<div class="table-responsive">
7<table class="repositories">
8 <thead>
9 <tr>
10 <th style="width: 10rem;">Mode</th>
11 <th>Name</th>
12 <th>Size</th>
13 </tr>
14 </thead>
15
16 <tbody>
17 {% for item in items -%}
18 <tr>
19 {% match item -%}
20 {%- when crate::git::TreeItem::Tree with (tree) -%}
21 <td><pre>{{ tree.mode|file_perms }}</pre></td>
22 <td><pre><a class="nested-tree" href="/{{ repo.display() }}/tree/{{ tree.path.display() }}{{ query }}">{{ tree.name }}</a></pre></td>
23 <td></td>
24 <td></td>
25
26 {%- when crate::git::TreeItem::File with (file) -%}
27 <td><pre>{{ file.mode|file_perms }}</pre></td>
28 <td><pre><a href="/{{ repo.display() }}/tree/{{ file.path.display() }}{{ query }}">{{ file.name }}</a></pre></td>
29 <td><pre>{{ file.size }}</pre></td>
30 <td></td>
31 {%- endmatch %}
32 </tr>
33 {% endfor -%}
34 </tbody>
35</table>
36</div>
37{% endblock %}