From 907c13566c775ac1210bc66de99f7273e7c8a507 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Tue, 25 Jun 2024 20:37:40 +0200 Subject: feat: Add commit page --- templates/gititemcommit.qtpl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 templates/gititemcommit.qtpl (limited to 'templates/gititemcommit.qtpl') diff --git a/templates/gititemcommit.qtpl b/templates/gititemcommit.qtpl new file mode 100644 index 0000000..e685f23 --- /dev/null +++ b/templates/gititemcommit.qtpl @@ -0,0 +1,19 @@ +{% import "github.com/go-git/go-git/v5/plumbing/object" %} + +{% code +type GitItemCommitPage struct { + Commit *object.Commit +} +%} + +{% func (g *GitItemCommitPage) Nav(name, ref string) %}{%= GitItemNav(name, ref, Log) %}{% endfunc %} + +{% func (g *GitItemCommitPage) GitContent(name, ref string) %} +
+ {%= Commit(name, g.Commit) %} +
+ + +{% endfunc %} -- cgit v1.2.3