// Code generated by qtc from "commit.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.

//line templates/commit.qtpl:1
package templates

//line templates/commit.qtpl:1
import "github.com/go-git/go-git/v5/plumbing/object"

//line templates/commit.qtpl:3
import (
	qtio422016 "io"

	qt422016 "github.com/valyala/quicktemplate"
)

//line templates/commit.qtpl:3
var (
	_ = qtio422016.Copy
	_ = qt422016.AcquireByteBuffer
)

//line templates/commit.qtpl:3
func StreamCommit(qw422016 *qt422016.Writer, name string, c *object.Commit, showTar bool) {
//line templates/commit.qtpl:3
	qw422016.N().S(`
  <div class="row event">
    <div class="row">
      <div class="col-md">
       <a title="`)
//line templates/commit.qtpl:7
	qw422016.E().S(c.Hash.String())
//line templates/commit.qtpl:7
	qw422016.N().S(`" href="/`)
//line templates/commit.qtpl:7
	qw422016.E().S(name)
//line templates/commit.qtpl:7
	qw422016.N().S(`/commit/`)
//line templates/commit.qtpl:7
	qw422016.E().S(c.Hash.String())
//line templates/commit.qtpl:7
	qw422016.N().S(`">`)
//line templates/commit.qtpl:7
	qw422016.E().S(c.Hash.String()[0:8])
//line templates/commit.qtpl:7
	qw422016.N().S(`</a>
      </div>
      `)
//line templates/commit.qtpl:9
	if showTar {
//line templates/commit.qtpl:9
		qw422016.N().S(`
      <div class="col-md text-md-center">
       <a title="tar.gz for `)
//line templates/commit.qtpl:11
		qw422016.E().S(c.Hash.String())
//line templates/commit.qtpl:11
		qw422016.N().S(`" href="/`)
//line templates/commit.qtpl:11
		qw422016.E().S(name)
//line templates/commit.qtpl:11
		qw422016.N().S(`/archive/`)
//line templates/commit.qtpl:11
		qw422016.E().S(c.Hash.String())
//line templates/commit.qtpl:11
		qw422016.N().S(`.tar.gz">tar.gz</a>
      </div>
      `)
//line templates/commit.qtpl:13
	}
//line templates/commit.qtpl:13
	qw422016.N().S(`
      <div class="col-md text-md-end">
       <a title="`)
//line templates/commit.qtpl:15
	qw422016.E().S(c.Committer.Email)
//line templates/commit.qtpl:15
	qw422016.N().S(`" href="mailto:`)
//line templates/commit.qtpl:15
	qw422016.E().S(c.Author.Email)
//line templates/commit.qtpl:15
	qw422016.N().S(`">`)
//line templates/commit.qtpl:15
	qw422016.E().S(c.Author.Name)
//line templates/commit.qtpl:15
	qw422016.N().S(`</a>
      </div>
    </div>
    <div class="code-view">
     <pre>`)
//line templates/commit.qtpl:19
	qw422016.E().S(c.Message)
//line templates/commit.qtpl:19
	qw422016.N().S(`</pre>
    </div>
  </div>
`)
//line templates/commit.qtpl:22
}

//line templates/commit.qtpl:22
func WriteCommit(qq422016 qtio422016.Writer, name string, c *object.Commit, showTar bool) {
//line templates/commit.qtpl:22
	qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/commit.qtpl:22
	StreamCommit(qw422016, name, c, showTar)
//line templates/commit.qtpl:22
	qt422016.ReleaseWriter(qw422016)
//line templates/commit.qtpl:22
}

//line templates/commit.qtpl:22
func Commit(name string, c *object.Commit, showTar bool) string {
//line templates/commit.qtpl:22
	qb422016 := qt422016.AcquireByteBuffer()
//line templates/commit.qtpl:22
	WriteCommit(qb422016, name, c, showTar)
//line templates/commit.qtpl:22
	qs422016 := string(qb422016.B)
//line templates/commit.qtpl:22
	qt422016.ReleaseByteBuffer(qb422016)
//line templates/commit.qtpl:22
	return qs422016
//line templates/commit.qtpl:22
}