1// Code generated by qtc from "gititemlog.qtpl". DO NOT EDIT.
2// See https://github.com/valyala/quicktemplate for details.
3
4//line templates/gititemlog.qtpl:1
5package templates
6
7//line templates/gititemlog.qtpl:1
8import "github.com/go-git/go-git/v5/plumbing/object"
9
10//line templates/gititemlog.qtpl:3
11import (
12 qtio422016 "io"
13
14 qt422016 "github.com/valyala/quicktemplate"
15)
16
17//line templates/gititemlog.qtpl:3
18var (
19 _ = qtio422016.Copy
20 _ = qt422016.AcquireByteBuffer
21)
22
23//line templates/gititemlog.qtpl:4
24type GitItemLogPage struct {
25 Commits []*object.Commit
26 Next *object.Commit
27}
28
29//line templates/gititemlog.qtpl:10
30func (g *GitItemLogPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) {
31//line templates/gititemlog.qtpl:10
32 StreamGitItemNav(qw422016, name, ref, Log)
33//line templates/gititemlog.qtpl:10
34}
35
36//line templates/gititemlog.qtpl:10
37func (g *GitItemLogPage) WriteNav(qq422016 qtio422016.Writer, name, ref string) {
38//line templates/gititemlog.qtpl:10
39 qw422016 := qt422016.AcquireWriter(qq422016)
40//line templates/gititemlog.qtpl:10
41 g.StreamNav(qw422016, name, ref)
42//line templates/gititemlog.qtpl:10
43 qt422016.ReleaseWriter(qw422016)
44//line templates/gititemlog.qtpl:10
45}
46
47//line templates/gititemlog.qtpl:10
48func (g *GitItemLogPage) Nav(name, ref string) string {
49//line templates/gititemlog.qtpl:10
50 qb422016 := qt422016.AcquireByteBuffer()
51//line templates/gititemlog.qtpl:10
52 g.WriteNav(qb422016, name, ref)
53//line templates/gititemlog.qtpl:10
54 qs422016 := string(qb422016.B)
55//line templates/gititemlog.qtpl:10
56 qt422016.ReleaseByteBuffer(qb422016)
57//line templates/gititemlog.qtpl:10
58 return qs422016
59//line templates/gititemlog.qtpl:10
60}
61
62//line templates/gititemlog.qtpl:12
63func (g *GitItemLogPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) {
64//line templates/gititemlog.qtpl:12
65 qw422016.N().S(`
66<div class="event-list">
67 `)
68//line templates/gititemlog.qtpl:14
69 for _, c := range g.Commits {
70//line templates/gititemlog.qtpl:14
71 qw422016.N().S(`
72 `)
73//line templates/gititemlog.qtpl:15
74 StreamCommit(qw422016, name, c, false)
75//line templates/gititemlog.qtpl:15
76 qw422016.N().S(`
77 `)
78//line templates/gititemlog.qtpl:16
79 }
80//line templates/gititemlog.qtpl:16
81 qw422016.N().S(`
82 `)
83//line templates/gititemlog.qtpl:17
84 if g.Next != nil {
85//line templates/gititemlog.qtpl:17
86 qw422016.N().S(`
87 <a href="/`)
88//line templates/gititemlog.qtpl:18
89 qw422016.E().S(name)
90//line templates/gititemlog.qtpl:18
91 qw422016.N().S(`/log/`)
92//line templates/gititemlog.qtpl:18
93 qw422016.E().S(ref)
94//line templates/gititemlog.qtpl:18
95 qw422016.N().S(`/?from=`)
96//line templates/gititemlog.qtpl:18
97 qw422016.E().S(g.Next.Hash.String())
98//line templates/gititemlog.qtpl:18
99 qw422016.N().S(`" class="btn btn-primary">Next</a>
100 `)
101//line templates/gititemlog.qtpl:19
102 }
103//line templates/gititemlog.qtpl:19
104 qw422016.N().S(`
105
106</div>
107`)
108//line templates/gititemlog.qtpl:22
109}
110
111//line templates/gititemlog.qtpl:22
112func (g *GitItemLogPage) WriteGitContent(qq422016 qtio422016.Writer, name, ref string) {
113//line templates/gititemlog.qtpl:22
114 qw422016 := qt422016.AcquireWriter(qq422016)
115//line templates/gititemlog.qtpl:22
116 g.StreamGitContent(qw422016, name, ref)
117//line templates/gititemlog.qtpl:22
118 qt422016.ReleaseWriter(qw422016)
119//line templates/gititemlog.qtpl:22
120}
121
122//line templates/gititemlog.qtpl:22
123func (g *GitItemLogPage) GitContent(name, ref string) string {
124//line templates/gititemlog.qtpl:22
125 qb422016 := qt422016.AcquireByteBuffer()
126//line templates/gititemlog.qtpl:22
127 g.WriteGitContent(qb422016, name, ref)
128//line templates/gititemlog.qtpl:22
129 qs422016 := string(qb422016.B)
130//line templates/gititemlog.qtpl:22
131 qt422016.ReleaseByteBuffer(qb422016)
132//line templates/gititemlog.qtpl:22
133 return qs422016
134//line templates/gititemlog.qtpl:22
135}