From bdabfeb569ab7eb9a2bf27188b61544cb6460e41 Mon Sep 17 00:00:00 2001 From: Trevor Bentley Date: Mon, 30 Jan 2023 00:57:41 +0100 Subject: [PATCH] sort branches and tags by date in default templates --- templates/default_dark/branches.html | 2 +- templates/default_dark/tags.html | 2 +- templates/default_light/branches.html | 2 +- templates/default_light/tags.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/default_dark/branches.html b/templates/default_dark/branches.html index 1e4c620..6860399 100644 --- a/templates/default_dark/branches.html +++ b/templates/default_dark/branches.html @@ -19,7 +19,7 @@ Author Date - {% for entry in branches -%} + {% for entry in branches | sort(attribute="ts_utc") | reverse -%} {{entry.ref_name}} {{entry.short_hash}} diff --git a/templates/default_dark/tags.html b/templates/default_dark/tags.html index b959d1a..f779183 100644 --- a/templates/default_dark/tags.html +++ b/templates/default_dark/tags.html @@ -19,7 +19,7 @@ Author Date - {% for entry in tags -%} + {% for entry in tags | sort(attribute="ts_utc") | reverse -%} {{entry.ref_name}} {{entry.short_hash}} diff --git a/templates/default_light/branches.html b/templates/default_light/branches.html index 1e4c620..6860399 100644 --- a/templates/default_light/branches.html +++ b/templates/default_light/branches.html @@ -19,7 +19,7 @@ Author Date - {% for entry in branches -%} + {% for entry in branches | sort(attribute="ts_utc") | reverse -%} {{entry.ref_name}} {{entry.short_hash}} diff --git a/templates/default_light/tags.html b/templates/default_light/tags.html index b959d1a..f779183 100644 --- a/templates/default_light/tags.html +++ b/templates/default_light/tags.html @@ -19,7 +19,7 @@ Author Date - {% for entry in tags -%} + {% for entry in tags | sort(attribute="ts_utc") | reverse -%} {{entry.ref_name}} {{entry.short_hash}}