1// Code generated by qtc from "commit.qtpl". DO NOT EDIT.
2// See https://github.com/valyala/quicktemplate for details.
3
4//line templates/commit.qtpl:1
5package templates
6
7//line templates/commit.qtpl:1
8import "github.com/go-git/go-git/v5/plumbing/object"
9
10//line templates/commit.qtpl:3
11import (
12 qtio422016 "io"
13
14 qt422016 "github.com/valyala/quicktemplate"
15)
16
17//line templates/commit.qtpl:3
18var (
19 _ = qtio422016.Copy
20 _ = qt422016.AcquireByteBuffer
21)
22
23//line templates/commit.qtpl:3
24func StreamCommit(qw422016 *qt422016.Writer, name string, c *object.Commit, showTar bool) {
25//line templates/commit.qtpl:3
26 qw422016.N().S(`
27 <div class="row event">
28 <div class="row">
29 <div class="col-md">
30 <a title="`)
31//line templates/commit.qtpl:7
32 qw422016.E().S(c.Hash.String())
33//line templates/commit.qtpl:7
34 qw422016.N().S(`" href="/`)
35//line templates/commit.qtpl:7
36 qw422016.E().S(name)
37//line templates/commit.qtpl:7
38 qw422016.N().S(`/commit/`)
39//line templates/commit.qtpl:7
40 qw422016.E().S(c.Hash.String())
41//line templates/commit.qtpl:7
42 qw422016.N().S(`">`)
43//line templates/commit.qtpl:7
44 qw422016.E().S(c.Hash.String()[0:8])
45//line templates/commit.qtpl:7
46 qw422016.N().S(`</a>
47 </div>
48 `)
49//line templates/commit.qtpl:9
50 if showTar {
51//line templates/commit.qtpl:9
52 qw422016.N().S(`
53 <div class="col-md text-md-center">
54 <a title="tar.gz for `)
55//line templates/commit.qtpl:11
56 qw422016.E().S(c.Hash.String())
57//line templates/commit.qtpl:11
58 qw422016.N().S(`" href="/`)
59//line templates/commit.qtpl:11
60 qw422016.E().S(name)
61//line templates/commit.qtpl:11
62 qw422016.N().S(`/archive/`)
63//line templates/commit.qtpl:11
64 qw422016.E().S(c.Hash.String())
65//line templates/commit.qtpl:11
66 qw422016.N().S(`.tar.gz">tar.gz</a>
67 </div>
68 `)
69//line templates/commit.qtpl:13
70 }
71//line templates/commit.qtpl:13
72 qw422016.N().S(`
73 <div class="col-md text-md-end">
74 <a title="`)
75//line templates/commit.qtpl:15
76 qw422016.E().S(c.Committer.Email)
77//line templates/commit.qtpl:15
78 qw422016.N().S(`" href="mailto:`)
79//line templates/commit.qtpl:15
80 qw422016.E().S(c.Committer.Email)
81//line templates/commit.qtpl:15
82 qw422016.N().S(`">`)
83//line templates/commit.qtpl:15
84 qw422016.E().S(c.Committer.Name)
85//line templates/commit.qtpl:15
86 qw422016.N().S(`</a>
87 </div>
88 </div>
89 <div class="code-view">
90 <pre>`)
91//line templates/commit.qtpl:19
92 qw422016.E().S(c.Message)
93//line templates/commit.qtpl:19
94 qw422016.N().S(`</pre>
95 </div>
96 </div>
97`)
98//line templates/commit.qtpl:22
99}
100
101//line templates/commit.qtpl:22
102func WriteCommit(qq422016 qtio422016.Writer, name string, c *object.Commit, showTar bool) {
103//line templates/commit.qtpl:22
104 qw422016 := qt422016.AcquireWriter(qq422016)
105//line templates/commit.qtpl:22
106 StreamCommit(qw422016, name, c, showTar)
107//line templates/commit.qtpl:22
108 qt422016.ReleaseWriter(qw422016)
109//line templates/commit.qtpl:22
110}
111
112//line templates/commit.qtpl:22
113func Commit(name string, c *object.Commit, showTar bool) string {
114//line templates/commit.qtpl:22
115 qb422016 := qt422016.AcquireByteBuffer()
116//line templates/commit.qtpl:22
117 WriteCommit(qb422016, name, c, showTar)
118//line templates/commit.qtpl:22
119 qs422016 := string(qb422016.B)
120//line templates/commit.qtpl:22
121 qt422016.ReleaseByteBuffer(qb422016)
122//line templates/commit.qtpl:22
123 return qs422016
124//line templates/commit.qtpl:22
125}