cerrado @ v0.0.8

  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) {
 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      <div class="col-md text-md-end">
 49       <a title="`)
 50//line commit.qtpl:10
 51	qw422016.E().S(c.Committer.Email)
 52//line commit.qtpl:10
 53	qw422016.N().S(`" href="mailto:`)
 54//line commit.qtpl:10
 55	qw422016.E().S(c.Committer.Email)
 56//line commit.qtpl:10
 57	qw422016.N().S(`">`)
 58//line commit.qtpl:10
 59	qw422016.E().S(c.Committer.Name)
 60//line commit.qtpl:10
 61	qw422016.N().S(`</a>
 62      </div>
 63    </div>
 64    <div class="code-view">
 65     <pre>`)
 66//line commit.qtpl:14
 67	qw422016.E().S(c.Message)
 68//line commit.qtpl:14
 69	qw422016.N().S(`</pre>
 70    </div>
 71  </div>
 72`)
 73//line commit.qtpl:17
 74}
 75
 76//line commit.qtpl:17
 77func WriteCommit(qq422016 qtio422016.Writer, name string, c *object.Commit) {
 78//line commit.qtpl:17
 79	qw422016 := qt422016.AcquireWriter(qq422016)
 80//line commit.qtpl:17
 81	StreamCommit(qw422016, name, c)
 82//line commit.qtpl:17
 83	qt422016.ReleaseWriter(qw422016)
 84//line commit.qtpl:17
 85}
 86
 87//line commit.qtpl:17
 88func Commit(name string, c *object.Commit) string {
 89//line commit.qtpl:17
 90	qb422016 := qt422016.AcquireByteBuffer()
 91//line commit.qtpl:17
 92	WriteCommit(qb422016, name, c)
 93//line commit.qtpl:17
 94	qs422016 := string(qb422016.B)
 95//line commit.qtpl:17
 96	qt422016.ReleaseByteBuffer(qb422016)
 97//line commit.qtpl:17
 98	return qs422016
 99//line commit.qtpl:17
100}