From 1bafc9b86308b5bc72386aedbea99809c044b3ad Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 11 Oct 2018 20:07:05 -0400 Subject: [PATCH] Fix log page handling of initial commit --- gitsrht/templates/log.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gitsrht/templates/log.html b/gitsrht/templates/log.html index f874a26..fa273da 100644 --- a/gitsrht/templates/log.html +++ b/gitsrht/templates/log.html @@ -8,12 +8,18 @@
- {% for c in commits[:-1] %} + {% if commits[-1].parents %} + {% set show_commits = commits[:-1] %} + {% else %} + {% set show_commits = commits %} + {% endif %} + {% for c in show_commits %}
{{ utils.commit_event(repo, c, True, refs) }}
{% endfor %}
+ {% if commits[-1].parents %} Next {{icon("caret-right")}} + {% endif %}
{% endblock %} -- 2.38.4