diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-25 20:37:40 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-25 20:37:40 +0200 |
commit | 907c13566c775ac1210bc66de99f7273e7c8a507 (patch) | |
tree | b2c3f6a647441d452e8a5c119f7d00dd947b7dff /templates/gititemcommit.qtpl | |
parent | 75d3ee252e7d966055bb76258d3e0da28488d261 (diff) | |
download | cerrado-907c13566c775ac1210bc66de99f7273e7c8a507.tar.gz cerrado-907c13566c775ac1210bc66de99f7273e7c8a507.tar.bz2 cerrado-907c13566c775ac1210bc66de99f7273e7c8a507.zip |
feat: Add commit page
Diffstat (limited to 'templates/gititemcommit.qtpl')
-rw-r--r-- | templates/gititemcommit.qtpl | 19 |
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 %} |