sort branches and tags by date in default templates

This commit is contained in:
Trevor Bentley
2023-01-30 00:57:41 +01:00
parent 6e27354266
commit bdabfeb569
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -19,7 +19,7 @@
<th>Author</th>
<th>Date</th>
</tr>
{% for entry in branches -%}
{% for entry in branches | sort(attribute="ts_utc") | reverse -%}
<tr class="branch">
<td class="name"><a href="branch/{{entry.full_hash}}.html">{{entry.ref_name}}</a></td>
<td class="oid">{{entry.short_hash}}</td>
+1 -1
View File
@@ -19,7 +19,7 @@
<th>Author</th>
<th>Date</th>
</tr>
{% for entry in tags -%}
{% for entry in tags | sort(attribute="ts_utc") | reverse -%}
<tr class="tag">
<td class="name"><a href="tag/{{entry.full_hash}}.html">{{entry.ref_name}}</a></td>
<td class="oid">{{entry.short_hash}}</td>
+1 -1
View File
@@ -19,7 +19,7 @@
<th>Author</th>
<th>Date</th>
</tr>
{% for entry in branches -%}
{% for entry in branches | sort(attribute="ts_utc") | reverse -%}
<tr class="branch">
<td class="name"><a href="branch/{{entry.full_hash}}.html">{{entry.ref_name}}</a></td>
<td class="oid">{{entry.short_hash}}</td>
+1 -1
View File
@@ -19,7 +19,7 @@
<th>Author</th>
<th>Date</th>
</tr>
{% for entry in tags -%}
{% for entry in tags | sort(attribute="ts_utc") | reverse -%}
<tr class="tag">
<td class="name"><a href="tag/{{entry.full_hash}}.html">{{entry.ref_name}}</a></td>
<td class="oid">{{entry.short_hash}}</td>