From f08af3e67a1b8a55d01f4ce517363e497b2acd4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Thu, 27 Aug 2020 15:18:55 +0200 Subject: [PATCH] Don't strip the last commit from logged ones This essentially partially reverts commit 1bafc9b "Fix log page handling of initial commit", but the initial commit works anyway Ref: ~sircmpwn/git.sr.ht#317 --- gitsrht/templates/log.html | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/gitsrht/templates/log.html b/gitsrht/templates/log.html index b72427e..57aaf42 100644 --- a/gitsrht/templates/log.html +++ b/gitsrht/templates/log.html @@ -36,22 +36,15 @@
- {% if commits %} - {% if commits[-1].parents %} - {% set show_commits = commits[:-1] %} - {% else %} - {% set show_commits = commits %} - {% endif %} - {% for c in show_commits %} + {% for c in commits %}
{{ utils.commit_event(repo, c, True, refs) }}
- {% endfor %} {% else %}
No commits{% if path != [''] %} for this path{% endif %}.
- {% endif %} + {% endfor %}
{% if commits and commits[-1].parents %}