aboutsummaryrefslogtreecommitdiff
path: root/templates/gititemcommit.qtpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/gititemcommit.qtpl')
-rw-r--r--templates/gititemcommit.qtpl19
1 files changed, 19 insertions, 0 deletions
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) %}
+<div class="event-list">
+ {%= Commit(name, g.Commit) %}
+</div>
+
+<div class="alert alert-info text-center" role="alert">
+ This page is work in progress.
+</div>
+{% endfunc %}