Commit

Author:

Hash:

Timestamp:

+91 -71 +/-8 browse

Kevin Schoon [me@kevinschoon.com]

2f72744b7b56bf08d2cb7bbbe24750eac6bab38f

Sat, 17 May 2025 12:42:50 +0000 (6 months ago)

apply formatter
1diff --git a/ayllu/templates/collection.html b/ayllu/templates/collection.html
2index bfd6941..51769ba 100644
3--- a/ayllu/templates/collection.html
4+++ b/ayllu/templates/collection.html
5 @@ -7,33 +7,33 @@
6 {%- if is_hidden %} <span class="negative">[hidden]</span> {%- endif -%}
7 </section>
8 <section>
9- {% if let Some(description) = collection.description %}{{ description }}{% endif %}
10+ {% if let Some(description) = collection.description %}{{ description }}{% endif %}
11 </section>
12 </section>
13 <section class="lower-half">
14- <table id="{{collection.name}}" class="data-table">
15- <thead>
16- <tr>
17- <th>Name</th>
18- <th>Description</th>
19- <th>Updated</th>
20- </tr>
21- </thead>
22- <tbody>
23- {% for repo in collection.repositories %}
24+ <table id="{{ collection.name }}" class="data-table">
25+ <thead>
26 <tr>
27- <td>
28- <div class="name">
29- <a href="/{{ collection.name }}/{{ repo.name }}">{{ repo.name }}</a>
30- {%- if repo.is_mirror %} <span class="tiny-highlight">[mirror]</span> {%- endif -%}
31- </div>
32- </td>
33- <td>{{ repo.description }}</td>
34- <td>{{ repo.age }}</td>
35+ <th>Name</th>
36+ <th>Description</th>
37+ <th>Updated</th>
38 </tr>
39- {% endfor %}
40- </tbody>
41- </table>
42+ </thead>
43+ <tbody>
44+ {% for repo in collection.repositories %}
45+ <tr>
46+ <td>
47+ <div class="name">
48+ <a href="/{{ collection.name }}/{{ repo.name }}">{{ repo.name }}</a>
49+ {%- if repo.is_mirror %} <span class="tiny-highlight">[mirror]</span> {%- endif -%}
50+ </div>
51+ </td>
52+ <td>{{ repo.description }}</td>
53+ <td>{{ repo.age }}</td>
54+ </tr>
55+ {% endfor %}
56+ </tbody>
57+ </table>
58 </section>
59 </section>
60 {% endblock %}
61 diff --git a/ayllu/templates/commit.html b/ayllu/templates/commit.html
62index 07ff4ac..84e1fac 100644
63--- a/ayllu/templates/commit.html
64+++ b/ayllu/templates/commit.html
65 @@ -3,7 +3,9 @@
66 {% block content %}
67 <section id="commit" class="raised">
68 <section class="info-bar">
69- <section class="title">Commit</section>
70+ <section class="title">
71+ Commit
72+ </section>
73 </section>
74 <section class="lower-half">
75 <section id="commit-details" class="raised flex-group dense">
76 diff --git a/ayllu/templates/config.html b/ayllu/templates/config.html
77index 6700130..26cd10e 100644
78--- a/ayllu/templates/config.html
79+++ b/ayllu/templates/config.html
80 @@ -2,8 +2,12 @@
81 {% block content %}
82 <section id="config-panel" class="raised">
83 <section class="info-bar">
84- <section class="title">Configuration</section>
85- <section> Site Configuration </section>
86+ <section class="title">
87+ Configuration
88+ </section>
89+ <section>
90+ Site Configuration
91+ </section>
92 </section>
93 <section class="lower-half">
94 <form action="/config" method="post">
95 diff --git a/ayllu/templates/index.html b/ayllu/templates/index.html
96index e391d3e..02383d7 100644
97--- a/ayllu/templates/index.html
98+++ b/ayllu/templates/index.html
99 @@ -14,7 +14,7 @@
100 {% for collection in collections %}
101 <section class="info-bar flex-group">
102 <section class="title">
103- <a href="/{{collection.name}}">{{ collection.name }}</a>
104+ <a href="/{{ collection.name }}">{{ collection.name }}</a>
105 </section>
106 {%- if let Some(description) = collection.description -%}
107 <section>
108 @@ -24,13 +24,13 @@
109 </section>
110 <section class="collection lower-half">
111 <table id="{{ collection.name }}" class="data-table">
112- <thead>
113- <tr>
114- <th>Name</th>
115- <th>Description</th>
116- <th>Updated</th>
117- </tr>
118- </thead>
119+ <thead>
120+ <tr>
121+ <th>Name</th>
122+ <th>Description</th>
123+ <th>Updated</th>
124+ </tr>
125+ </thead>
126 <tbody>
127 {% for repo in collection.repositories %}
128 <tr>
129 diff --git a/ayllu/templates/log.html b/ayllu/templates/log.html
130index 46462c3..fb9aab4 100644
131--- a/ayllu/templates/log.html
132+++ b/ayllu/templates/log.html
133 @@ -6,7 +6,9 @@
134 {% call macros::navigation(items=subnav_elements, title="Log") %}
135 {% endif %}
136 <section class="info-bar">
137- <section class="title"> Log </section>
138+ <section class="title">
139+ Log
140+ </section>
141 </section>
142 <section class="lower-half">
143 <table class="data-table">
144 diff --git a/ayllu/templates/refs.html b/ayllu/templates/refs.html
145index 3eed5b5..226e2c3 100644
146--- a/ayllu/templates/refs.html
147+++ b/ayllu/templates/refs.html
148 @@ -4,7 +4,9 @@
149 <section id="refs-page">
150 <section id="refs" class="scrollable raised">
151 <section class="info-bar">
152- <section class="title"> Tags </section>
153+ <section class="title">
154+ Tags
155+ </section>
156 </section>
157 <section id="tags" class="lower-half">
158 <table class="data-table">
159 @@ -36,7 +38,9 @@
160 </section>
161 <section id="branches" class="scrollable raised">
162 <section class="info-bar">
163- <section class="title"> Branches </section>
164+ <section class="title">
165+ Branches
166+ </section>
167 </section>
168 <section id="branches" class="lower-half">
169 <table class="data-table">
170 @@ -67,7 +71,9 @@
171 </section>
172 <section id="notes" class="scrollable raised">
173 <section class="info-bar">
174- <section class="title"> Notes </section>
175+ <section class="title">
176+ Notes
177+ </section>
178 </section>
179 <section id="notes" class="lower-half">
180 <table class="data-table">
181 diff --git a/ayllu/templates/repo.html b/ayllu/templates/repo.html
182index cde065c..caeeb3c 100644
183--- a/ayllu/templates/repo.html
184+++ b/ayllu/templates/repo.html
185 @@ -3,7 +3,9 @@
186 {% block content %}
187 <section>
188 <section class="info-bar">
189- <section class="title"> Project </section>
190+ <section class="title">
191+ Project
192+ </section>
193 </section>
194 <section id="repo-action-panel" class="raised flex-group lower-half">
195 <section id="project-details" class="dense">
196 @@ -59,39 +61,39 @@
197 {% call macros::selectable_text("ref", refname) %}
198 </section>
199 <section class="scrollable lower-half">
200- <table class="data-table">
201- <thead>
202- <tr>
203- <th scope="col">File</th>
204- <th scope="col">Commit</th>
205- <th scope="col">Size</th>
206- <th scope="col">Mode</th>
207- <th scope="col">Time</th>
208- </tr>
209- </thead>
210- <tbody>
211- {% for item in tree %}
212+ <table class="data-table">
213+ <thead>
214 <tr>
215- <td>
216- <a href="{{ item.0.name | make_object_url(item.0.kind, collection, name, refname, file_path) }}">
217- {{ item.0.name }}
218- {% if item.0.kind == "submodule" %}<span class="tiny">ref</span>{% endif %}
219- {% if item.0.kind == "pointer" %}<span class="tiny">ptr</span>{% endif %}
220- </a>
221- </td>
222- <td>
223- <a href="/{{ collection }}/{{ name }}/commit/{{ item.1.id }}">{{ item.1.summary | truncate(length=60) }}</a>
224- </td>
225- <td>{{ item.0.size | human_bytes_i64 }}</td>
226- <td>{{ item.0.mode | file_mode }}</td>
227- <td>
228- <a href="/{{ collection }}/{{ name }}/commit/{{ item.1.id }}">{{ item.1.epoch | friendly_time }}</a>
229- </td>
230+ <th scope="col">File</th>
231+ <th scope="col">Commit</th>
232+ <th scope="col">Size</th>
233+ <th scope="col">Mode</th>
234+ <th scope="col">Time</th>
235 </tr>
236- {% endfor %}
237- </tbody>
238- </table>
239- </section>
240+ </thead>
241+ <tbody>
242+ {% for item in tree %}
243+ <tr>
244+ <td>
245+ <a href="{{ item.0.name | make_object_url(item.0.kind, collection, name, refname, file_path) }}">
246+ {{ item.0.name }}
247+ {% if item.0.kind == "submodule" %}<span class="tiny">ref</span>{% endif %}
248+ {% if item.0.kind == "pointer" %}<span class="tiny">ptr</span>{% endif %}
249+ </a>
250+ </td>
251+ <td>
252+ <a href="/{{ collection }}/{{ name }}/commit/{{ item.1.id }}">{{ item.1.summary | truncate(length=60) }}</a>
253+ </td>
254+ <td>{{ item.0.size | human_bytes_i64 }}</td>
255+ <td>{{ item.0.mode | file_mode }}</td>
256+ <td>
257+ <a href="/{{ collection }}/{{ name }}/commit/{{ item.1.id }}">{{ item.1.epoch | friendly_time }}</a>
258+ </td>
259+ </tr>
260+ {% endfor %}
261+ </tbody>
262+ </table>
263+ </section>
264 </section>
265 {% if let Some(readme) = readme %}
266 <section class="raised">
267 diff --git a/ayllu/templates/tag.html b/ayllu/templates/tag.html
268index 17c417d..23f1bc7 100644
269--- a/ayllu/templates/tag.html
270+++ b/ayllu/templates/tag.html
271 @@ -4,7 +4,9 @@
272 <section class="raised">
273 <section id="ref" class="scrollable raised">
274 <section class="info-bar">
275- <section class="title">Tag: {{ tag.name }}</section>
276+ <section class="title">
277+ Tag: {{ tag.name }}
278+ </section>
279 </section>
280 <section class="lower-half">
281 <section id="commit-details" class="flex-group dense">
282 @@ -27,7 +29,9 @@
283 <a href="/{{ collection }}/{{ name }}/log?username={{ tag.commit.author_name | urlencode }}&email={{ tag.commit.author_email | urlencode }}">{{ tag.commit.author_name }}</a>
284 [<a href="mailto://{{ tag.commit.author_email }}">{{ tag.commit.author_email }}</a>]
285 </p>
286- <p class="{% if let Some(is_verified) = tag.commit.is_verified -%} positive {%- else -%} negative {%- endif -%}">{{ tag.commit.id }}</p>
287+ <p class="{% if let Some(is_verified) = tag.commit.is_verified -%} positive {%- else -%} negative {%- endif -%}">
288+ {{ tag.commit.id }}
289+ </p>
290 <p>{{ tag.commit.author_epoch | format_epoch }} ({{ tag.commit.epoch | friendly_time }})</p>
291 <p>
292 <a href="/{{ collection }}/{{ name }}/refs/archive/{{ tag.name }}.tar.gz"