tree-view.html
HTML document, ASCII text
1
<table style="width: 100%; table-layout: fixed;" id="repo-table">
2
<thead>
3
<tr>
4
<th style="text-align: left;">{% trans %}File name{% endtrans %}</th>
5
<th style="text-align: left;">{% trans %}Media type{% endtrans %}</th>
6
<th style="width: 12ch; text-align: right;">{% trans %}Size{% endtrans %}</th>
7
<th style="width: 33.33333%; text-align: left;">{% trans %}Last commit{% endtrans %}</th>
8
</tr>
9
</thead>
10
<tbody>
11
{% for file in files %}
12
<tr>
13
<td>
14
<a href="{{ file.link }}" class="file-link" title="{{ file.name }}">
15
<x-hbox style="align-items: center; gap: 0.5ch;">
16
<iconify-icon icon="{{ file.icon }}" class="file-icon"></iconify-icon>
17
<span class="file-name">{{ file.name }}</span>
18
</x-hbox>
19
</a>
20
</td>
21
<td>{{ file.mimetype }}</td>
22
<td style="text-align: right;">{{ file.size }}</td>
23
<td>
24
<a href="/{{ username }}/{{ repository }}/commit/{{ file.commit.sha }}" class="file-link">
25
<x-hbox style="align-items: baseline; gap: 0.5ch;">
26
<code>{{ file.commit.sha[:file.shaSize] }}</code>
27
<span class="commit-message">{{ file.commit.message }}</span>
28
</x-hbox>
29
</a>
30
</td>
31
</tr>
32
{% endfor %}
33
</tbody>
34
</table>
35