diff options
Diffstat (limited to 'templates/gititemlog.qtpl')
-rw-r--r-- | templates/gititemlog.qtpl | 5 |
1 files changed, 5 insertions, 0 deletions
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 %} + <a href="/{%s name %}/log/{%s ref %}/?from={%s g.Next.Hash.String() %}" class="btn btn-primary">Next</a> + {% endif %} + </div> {% endfunc %} |