aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-09-08 13:51:08 +0200
committerMax Magorsch <arzano@gentoo.org>2020-09-08 13:51:08 +0200
commit091f65b4785ab6dfef0d548ba7cc2e6a88d33776 (patch)
tree189909f1bee4ab8a53e78c1f13f288bad4c2c306 /web
parentFix empty restricts slices (diff)
downloadsoko-091f65b4785ab6dfef0d548ba7cc2e6a88d33776.tar.gz
soko-091f65b4785ab6dfef0d548ba7cc2e6a88d33776.tar.bz2
soko-091f65b4785ab6dfef0d548ba7cc2e6a88d33776.zip
Sort commits in the maintainers changelog
Thanks to sbraz for pointing this out Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r--web/templates/maintainer/components/changelog.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/templates/maintainer/components/changelog.tmpl b/web/templates/maintainer/components/changelog.tmpl
index 3a364eb..675cbf1 100644
--- a/web/templates/maintainer/components/changelog.tmpl
+++ b/web/templates/maintainer/components/changelog.tmpl
@@ -8,13 +8,15 @@
{{end}}
{{end}}
+ {{$commits = sortCommits $commits}}
+
{{ if $commits }}
<div class="col-md-12">
<h3>Latest Commits</h3>
<ul class="timeline">
<li>
- <span class="text-muted">Commits on Jul 2, 2020</span>
+ <span class="text-muted">Commits on {{((index $commits 0).CommitterDate).Format "Jan 02, 2006"}}</span>
<ul class="list-group">
{{$last_date := (index $commits 0).CommitterDate}}
{{range $commits}}