aboutsummaryrefslogtreecommitdiff
path: root/templates/commit.qtpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/commit.qtpl')
-rw-r--r--templates/commit.qtpl17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/commit.qtpl b/templates/commit.qtpl
new file mode 100644
index 0000000..3070172
--- /dev/null
+++ b/templates/commit.qtpl
@@ -0,0 +1,17 @@
+{% import "github.com/go-git/go-git/v5/plumbing/object" %}
+
+{% func Commit(name string, c *object.Commit) %}
+ <div class="row event">
+ <div class="row">
+ <div class="col-md">
+ <a title="{%s c.Hash.String() %}" href="/{%s name %}/commit/{%s c.Hash.String() %}">{%s c.Hash.String()[0:8] %}</a>
+ </div>
+ <div class="col-md text-md-end">
+ <a title="{%s c.Committer.Email %}" href="mailto:{%s c.Committer.Email %}">{%s c.Committer.Name %}</a>
+ </div>
+ </div>
+ <div class="code-view">
+ <pre>{%s c.Message %}</pre>
+ </div>
+ </div>
+{% endfunc %}