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[0] }} {{ file.size[1] }}</td> 23<td> 24{% if file.commit %} 25<a href="/{{ username }}/{{ repository }}/commit/{{ file.commit.sha }}" class="file-link"> 26<x-hbox style="align-items: baseline; gap: 0.5ch;"> 27<code>{{ file.commit.sha[:file.shaSize] }}</code> 28<span class="commit-message">{{ file.commit.message }}</span> 29</x-hbox> 30</a> 31{% else %} 32??? 33{% endif %} 34</td> 35</tr> 36{% endfor %} 37</tbody> 38</table> 39