1// Code generated by qtc from "gititemcommit.qtpl". DO NOT EDIT.
2// See https://github.com/valyala/quicktemplate for details.
3
4//line gititemcommit.qtpl:1
5package templates
6
7//line gititemcommit.qtpl:1
8import "github.com/go-git/go-git/v5/plumbing/object"
9
10//line gititemcommit.qtpl:3
11import (
12 qtio422016 "io"
13
14 qt422016 "github.com/valyala/quicktemplate"
15)
16
17//line gititemcommit.qtpl:3
18var (
19 _ = qtio422016.Copy
20 _ = qt422016.AcquireByteBuffer
21)
22
23//line gititemcommit.qtpl:4
24type GitItemCommitPage struct {
25 Commit *object.Commit
26}
27
28//line gititemcommit.qtpl:9
29func (g *GitItemCommitPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) {
30//line gititemcommit.qtpl:9
31 StreamGitItemNav(qw422016, name, ref, Log)
32//line gititemcommit.qtpl:9
33}
34
35//line gititemcommit.qtpl:9
36func (g *GitItemCommitPage) WriteNav(qq422016 qtio422016.Writer, name, ref string) {
37//line gititemcommit.qtpl:9
38 qw422016 := qt422016.AcquireWriter(qq422016)
39//line gititemcommit.qtpl:9
40 g.StreamNav(qw422016, name, ref)
41//line gititemcommit.qtpl:9
42 qt422016.ReleaseWriter(qw422016)
43//line gititemcommit.qtpl:9
44}
45
46//line gititemcommit.qtpl:9
47func (g *GitItemCommitPage) Nav(name, ref string) string {
48//line gititemcommit.qtpl:9
49 qb422016 := qt422016.AcquireByteBuffer()
50//line gititemcommit.qtpl:9
51 g.WriteNav(qb422016, name, ref)
52//line gititemcommit.qtpl:9
53 qs422016 := string(qb422016.B)
54//line gititemcommit.qtpl:9
55 qt422016.ReleaseByteBuffer(qb422016)
56//line gititemcommit.qtpl:9
57 return qs422016
58//line gititemcommit.qtpl:9
59}
60
61//line gititemcommit.qtpl:11
62func (g *GitItemCommitPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) {
63//line gititemcommit.qtpl:11
64 qw422016.N().S(`
65<div class="event-list">
66 `)
67//line gititemcommit.qtpl:13
68 StreamCommit(qw422016, name, g.Commit, true)
69//line gititemcommit.qtpl:13
70 qw422016.N().S(`
71</div>
72
73<div class="alert alert-info text-center" role="alert">
74 This page is work in progress.
75</div>
76`)
77//line gititemcommit.qtpl:19
78}
79
80//line gititemcommit.qtpl:19
81func (g *GitItemCommitPage) WriteGitContent(qq422016 qtio422016.Writer, name, ref string) {
82//line gititemcommit.qtpl:19
83 qw422016 := qt422016.AcquireWriter(qq422016)
84//line gititemcommit.qtpl:19
85 g.StreamGitContent(qw422016, name, ref)
86//line gititemcommit.qtpl:19
87 qt422016.ReleaseWriter(qw422016)
88//line gititemcommit.qtpl:19
89}
90
91//line gititemcommit.qtpl:19
92func (g *GitItemCommitPage) GitContent(name, ref string) string {
93//line gititemcommit.qtpl:19
94 qb422016 := qt422016.AcquireByteBuffer()
95//line gititemcommit.qtpl:19
96 g.WriteGitContent(qb422016, name, ref)
97//line gititemcommit.qtpl:19
98 qs422016 := string(qb422016.B)
99//line gititemcommit.qtpl:19
100 qt422016.ReleaseByteBuffer(qb422016)
101//line gititemcommit.qtpl:19
102 return qs422016
103//line gititemcommit.qtpl:19
104}