diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-03-10 08:46:44 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-03-10 08:46:44 +0200 |
commit | 61df14f3ab42532a4c76790320ca453eeb8067d3 (patch) | |
tree | 297ff271f329239a1acd868e7ff4b01f51376054 /web | |
parent | web/maintainer: optimize spaces and clean logic (diff) | |
download | soko-61df14f3ab42532a4c76790320ca453eeb8067d3.tar.gz soko-61df14f3ab42532a4c76790320ca453eeb8067d3.tar.bz2 soko-61df14f3ab42532a4c76790320ca453eeb8067d3.zip |
app/maintainer: simplify changelog's commits slice
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/maintainer/components/changelog.tmpl | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/web/templates/maintainer/components/changelog.tmpl b/web/templates/maintainer/components/changelog.tmpl index d8fb281..0afacc0 100644 --- a/web/templates/maintainer/components/changelog.tmpl +++ b/web/templates/maintainer/components/changelog.tmpl @@ -1,15 +1,7 @@ {{- define "changelog" -}} <div class="row"> <div class="col-md-9"> - {{- $commits := (index .Packages 0).Commits -}} - {{- range $key, $value := .Packages -}} - {{if ne $key 0}} - {{$commits = appendCommits $commits $value.Commits}} - {{end}} - {{- end -}} - - {{- $commits = sortCommits $commits -}} - + {{- $commits := allCommits .Packages -}} {{- if $commits }} <div class="col-md-12"> <h3>Latest Commits</h3> |