Pi66

git.pi66.xyz
A web interface for the pi66.xyz Git server
git clone https://git.pi66.xyz/git.pi66.xyz

src/templates/Files.html

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{% set page_content %}
{% include "partials/repo-nav.html" %}

<table class="!w-full">
    <thead>
        <tr>
            <th class="w-px whitespace-nowrap">Mode</th>
            <th class="w-px whitespace-nowrap">Size</th>
            <th class="w-full">Path</th>
        </tr>
    </thead>
    <tbody>
    {% for file in files %}
        <tr>
            <td class="w-px whitespace-nowrap !text-gray-500 font-mono text-xs">
                {{file.mode}}
            </td>
            <td class="w-px whitespace-nowrap !text-gray-400 text-right">
                {{file.size}}
            </td>
            <td class="w-full">
                <a class="!text-green-400 hover:underline"
                   href="/{{repo_name|lower}}/files/{{file.path}}.html"
                >
                    {{file.path}}
                </a>
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>

{% endset %}
{% include "base.html" %}