From cb9036aab96895ddf03cab68f75d3356f5227968 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sun, 26 Jan 2025 14:53:14 +0100 Subject: feat: Add log pagination Now it is possible to navigate through all commit from a given repository. It implements a simple navigation which will plenty for now. --- templates/gititemlog.qtpl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'templates/gititemlog.qtpl') diff --git a/templates/gititemlog.qtpl b/templates/gititemlog.qtpl index e5bfc1b..b0c8cec 100644 --- a/templates/gititemlog.qtpl +++ b/templates/gititemlog.qtpl @@ -3,6 +3,7 @@ {% code type GitItemLogPage struct { Commits []*object.Commit + Next *object.Commit } %} @@ -13,5 +14,9 @@ type GitItemLogPage struct { {% for _, c := range g.Commits %} {%= Commit(name, c, false) %} {% endfor %} + {% if g.Next != nil %} + Next + {% endif %} + {% endfunc %} -- cgit v1.2.3