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