diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-25 12:48:20 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-25 12:55:22 +0200 |
commit | 75d3ee252e7d966055bb76258d3e0da28488d261 (patch) | |
tree | aae0af64a296f49d8e975b0822f82563e96b9f92 /templates/commit.qtpl | |
parent | 6bd7d92463867a62274867890f32f5832e798ba2 (diff) | |
download | cerrado-75d3ee252e7d966055bb76258d3e0da28488d261.tar.gz cerrado-75d3ee252e7d966055bb76258d3e0da28488d261.tar.bz2 cerrado-75d3ee252e7d966055bb76258d3e0da28488d261.zip |
ref: Redo commit cell
Diffstat (limited to 'templates/commit.qtpl')
-rw-r--r-- | templates/commit.qtpl | 17 |
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 %} |