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.go | |
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.go')
-rw-r--r-- | templates/commit.qtpl.go | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/templates/commit.qtpl.go b/templates/commit.qtpl.go new file mode 100644 index 0000000..7f46499 --- /dev/null +++ b/templates/commit.qtpl.go @@ -0,0 +1,100 @@ +// Code generated by qtc from "commit.qtpl". DO NOT EDIT. +// See https://github.com/valyala/quicktemplate for details. + +//line commit.qtpl:1 +package templates + +//line commit.qtpl:1 +import "github.com/go-git/go-git/v5/plumbing/object" + +//line commit.qtpl:3 +import ( + qtio422016 "io" + + qt422016 "github.com/valyala/quicktemplate" +) + +//line commit.qtpl:3 +var ( + _ = qtio422016.Copy + _ = qt422016.AcquireByteBuffer +) + +//line commit.qtpl:3 +func StreamCommit(qw422016 *qt422016.Writer, name string, c *object.Commit) { +//line commit.qtpl:3 + qw422016.N().S(` + <div class="row event"> + <div class="row"> + <div class="col-md"> + <a title="`) +//line commit.qtpl:7 + qw422016.E().S(c.Hash.String()) +//line commit.qtpl:7 + qw422016.N().S(`" href="/`) +//line commit.qtpl:7 + qw422016.E().S(name) +//line commit.qtpl:7 + qw422016.N().S(`/commit/`) +//line commit.qtpl:7 + qw422016.E().S(c.Hash.String()) +//line commit.qtpl:7 + qw422016.N().S(`">`) +//line commit.qtpl:7 + qw422016.E().S(c.Hash.String()[0:8]) +//line commit.qtpl:7 + qw422016.N().S(`</a> + </div> + <div class="col-md text-md-end"> + <a title="`) +//line commit.qtpl:10 + qw422016.E().S(c.Committer.Email) +//line commit.qtpl:10 + qw422016.N().S(`" href="mailto:`) +//line commit.qtpl:10 + qw422016.E().S(c.Committer.Email) +//line commit.qtpl:10 + qw422016.N().S(`">`) +//line commit.qtpl:10 + qw422016.E().S(c.Committer.Name) +//line commit.qtpl:10 + qw422016.N().S(`</a> + </div> + </div> + <div class="code-view"> + <pre>`) +//line commit.qtpl:14 + qw422016.E().S(c.Message) +//line commit.qtpl:14 + qw422016.N().S(`</pre> + </div> + </div> +`) +//line commit.qtpl:17 +} + +//line commit.qtpl:17 +func WriteCommit(qq422016 qtio422016.Writer, name string, c *object.Commit) { +//line commit.qtpl:17 + qw422016 := qt422016.AcquireWriter(qq422016) +//line commit.qtpl:17 + StreamCommit(qw422016, name, c) +//line commit.qtpl:17 + qt422016.ReleaseWriter(qw422016) +//line commit.qtpl:17 +} + +//line commit.qtpl:17 +func Commit(name string, c *object.Commit) string { +//line commit.qtpl:17 + qb422016 := qt422016.AcquireByteBuffer() +//line commit.qtpl:17 + WriteCommit(qb422016, name, c) +//line commit.qtpl:17 + qs422016 := string(qb422016.B) +//line commit.qtpl:17 + qt422016.ReleaseByteBuffer(qb422016) +//line commit.qtpl:17 + return qs422016 +//line commit.qtpl:17 +} |