Commit

Author:

Hash:

Timestamp:

+42 -26 +/-2 browse

Kevin Schoon [me@kevinschoon.com]

3e84627881fa5ef15540f5e61d3be53726d97ba3

Tue, 13 May 2025 17:13:02 +0000 (6 months ago)

fixup tag template
1diff --git a/ayllu/templates/log.html b/ayllu/templates/log.html
2index 82c97ce..2026b28 100644
3--- a/ayllu/templates/log.html
4+++ b/ayllu/templates/log.html
5 @@ -28,7 +28,9 @@
6 </span>
7 </td>
8 <td>
9- {% if let Some(has_note) = commit.has_note %}{% if has_note %}<div data-tooltip="Note">[N]</div>{% endif %}{% endif %}
10+ {% if let Some(has_note) = commit.has_note %}
11+ {% if has_note %}<div data-tooltip="Note">[N]</div>{% endif %}
12+ {% endif %}
13 {% if commit.is_extended %}<div data-tooltip="Extended Commit">[E]</div>{% endif %}
14 </td>
15 <td>{{ commit.epoch | friendly_time }}</td>
16 diff --git a/ayllu/templates/tag.html b/ayllu/templates/tag.html
17index b97f91d..442a885 100644
18--- a/ayllu/templates/tag.html
19+++ b/ayllu/templates/tag.html
20 @@ -2,32 +2,46 @@
21 {% extends "base.html" %}
22 {% block content %}
23 <section class="raised">
24- <h1>{{ tag.name }}</h1>
25- <section>
26- <span><b>Author:</b></span>
27- <span class="right">
28- <a href="/{{ collection }}/{{ name }}/log?username={{ tag.commit.author_name | urlencode }}&email={{ tag.commit.author_email | urlencode }}">{{ tag.commit.author_name }}</a>
29- [<a href="mailto://{{ tag.commit.author_email }}">{{ tag.commit.author_email }}</a>]
30- </span>
31- </section>
32- <section>
33- <span><b>Hash:</b></span>
34- <span class="right {% if let Some(is_verified) = tag.commit.is_verified -%} positive {%- else -%} negative {%- endif -%}">{{ tag.commit.id }}</span>
35- </section>
36- <section>
37- <span><b>Timestamp:</b></span>
38- <span class="right">{{ tag.commit.author_epoch | format_epoch }} ({{ tag.commit.epoch | friendly_time }})</span>
39- </section>
40- <section>
41- <span><b>Archive:</b></span>
42- <span class="right">
43- <a href="/{{ collection }}/{{ name }}/refs/archive/{{ tag.name }}.tar.gz"
44- role="button">{{ tag.name }}.tar.gz</a>
45- </span>
46- </section>
47- <h4>Summary</h4>
48- <pre>
49+ <section id="ref" class="scrollable raised">
50+ <section class="info-bar">
51+ <h1>Tag: {{ tag.name }}</h1>
52+ </section>
53+ <section class="lower-half">
54+ <section id="commit-details" class="flex-group dense">
55+ <section>
56+ <p>
57+ <b> Author: </b>
58+ </p>
59+ <p>
60+ <b> Hash: </b>
61+ </p>
62+ <p>
63+ <b> Timestamp: </b>
64+ </p>
65+ <p>
66+ <b> Archive: </b>
67+ </p>
68+ </section>
69+ <section>
70+ <p>
71+ <a href="/{{ collection }}/{{ name }}/log?username={{ tag.commit.author_name | urlencode }}&email={{ tag.commit.author_email | urlencode }}">{{ tag.commit.author_name }}</a>
72+ [<a href="mailto://{{ tag.commit.author_email }}">{{ tag.commit.author_email }}</a>]
73+ </p>
74+ <p class="{% if let Some(is_verified) = tag.commit.is_verified -%} positive {%- else -%} negative {%- endif -%}">{{ tag.commit.id }}</p>
75+ <p>{{ tag.commit.author_epoch | format_epoch }} ({{ tag.commit.epoch | friendly_time }})</p>
76+ <p>
77+ <a href="/{{ collection }}/{{ name }}/refs/archive/{{ tag.name }}.tar.gz"
78+ role="button">{{ tag.name }}.tar.gz</a>
79+ </p>
80+ </section>
81+ </section>
82+ <section id="commit-details" class="raised">
83+ <h4>Summary</h4>
84+ <pre>
85 {{tag.summary}}
86 </pre>
87+ </section>
88+ </section>
89+ </section>
90 </section>
91 {% endblock %}