cerrado @ 60004cfb97fe0eb64d1c8310e7c9caae96b8adbe

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