Pi66

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

src/templates/Log-commit.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
35
36
37
38
39
40
41
42
{% set page_content %}
{% include "partials/repo-nav.html" %}

<p><a href="/{{repo_name}}/log.html">← back to log</a></p>
<h1>{{commit_message}}</h1>


<blockquote class="flex justify-between py-5">
    <p>
        <strong>author:</strong> {{commit_author}} <br>
        <strong>date:</strong>   {{commit_date}}   <br>
        <strong>hash:</strong>   {{commit_hash}}   <br>
    </p>

</blockquote>

<strong class="!pb-3 text-[80%] md:text-base"> Diffstat: </strong>


<table class="diffstat ![direction:ltr] !w-full !border-0 px-6">
    <tbody>
{% for b in bars %}
        <tr>
            <td class="!text-gray-400 w-full">
                <div class="flex items-center gap-2.5">
                    <p class="flex gap-2.5"><strong>{{b.file.status}}</strong></p>
                    <span>{{b.file.name}}</span>
                </div>
            </td>
            <td class="!text-right !text-gray-400 w-px whitespace-nowrap">{{b.total}}</td>
            <td class="w-px whitespace-nowrap">
                <span class="!text-green-500">{{ "+" * b.add_width }}</span><span class="!text-red-500">{{ "-" * b.del_width }}</span>
            </td>
        </tr>
{% endfor %}
    </tbody>
</table>

{{ diff_content  }}

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