aboutsummaryrefslogtreecommitdiff
path: root/templates/gititemblob.qtpl.go
diff options
context:
space:
mode:
Diffstat (limited to 'templates/gititemblob.qtpl.go')
-rw-r--r--templates/gititemblob.qtpl.go98
1 files changed, 98 insertions, 0 deletions
diff --git a/templates/gititemblob.qtpl.go b/templates/gititemblob.qtpl.go
new file mode 100644
index 0000000..6b4e187
--- /dev/null
+++ b/templates/gititemblob.qtpl.go
@@ -0,0 +1,98 @@
+// Code generated by qtc from "gititemblob.qtpl". DO NOT EDIT.
+// See https://github.com/valyala/quicktemplate for details.
+
+//line gititemblob.qtpl:1
+package templates
+
+//line gititemblob.qtpl:1
+import (
+ qtio422016 "io"
+
+ qt422016 "github.com/valyala/quicktemplate"
+)
+
+//line gititemblob.qtpl:1
+var (
+ _ = qtio422016.Copy
+ _ = qt422016.AcquireByteBuffer
+)
+
+//line gititemblob.qtpl:2
+type GitItemBlobPage struct {
+ File string
+ Content []byte
+}
+
+//line gititemblob.qtpl:8
+func (g *GitItemBlobPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) {
+//line gititemblob.qtpl:8
+ StreamGitItemNav(qw422016, name, ref, Tree)
+//line gititemblob.qtpl:8
+}
+
+//line gititemblob.qtpl:8
+func (g *GitItemBlobPage) WriteNav(qq422016 qtio422016.Writer, name, ref string) {
+//line gititemblob.qtpl:8
+ qw422016 := qt422016.AcquireWriter(qq422016)
+//line gititemblob.qtpl:8
+ g.StreamNav(qw422016, name, ref)
+//line gititemblob.qtpl:8
+ qt422016.ReleaseWriter(qw422016)
+//line gititemblob.qtpl:8
+}
+
+//line gititemblob.qtpl:8
+func (g *GitItemBlobPage) Nav(name, ref string) string {
+//line gititemblob.qtpl:8
+ qb422016 := qt422016.AcquireByteBuffer()
+//line gititemblob.qtpl:8
+ g.WriteNav(qb422016, name, ref)
+//line gititemblob.qtpl:8
+ qs422016 := string(qb422016.B)
+//line gititemblob.qtpl:8
+ qt422016.ReleaseByteBuffer(qb422016)
+//line gititemblob.qtpl:8
+ return qs422016
+//line gititemblob.qtpl:8
+}
+
+//line gititemblob.qtpl:10
+func (g *GitItemBlobPage) StreamGitContent(qw422016 *qt422016.Writer) {
+//line gititemblob.qtpl:10
+ qw422016.N().S(`
+<div class="code-view">
+`)
+//line gititemblob.qtpl:12
+ qw422016.N().Z(g.Content)
+//line gititemblob.qtpl:12
+ qw422016.N().S(`
+</div>
+`)
+//line gititemblob.qtpl:14
+}
+
+//line gititemblob.qtpl:14
+func (g *GitItemBlobPage) WriteGitContent(qq422016 qtio422016.Writer) {
+//line gititemblob.qtpl:14
+ qw422016 := qt422016.AcquireWriter(qq422016)
+//line gititemblob.qtpl:14
+ g.StreamGitContent(qw422016)
+//line gititemblob.qtpl:14
+ qt422016.ReleaseWriter(qw422016)
+//line gititemblob.qtpl:14
+}
+
+//line gititemblob.qtpl:14
+func (g *GitItemBlobPage) GitContent() string {
+//line gititemblob.qtpl:14
+ qb422016 := qt422016.AcquireByteBuffer()
+//line gititemblob.qtpl:14
+ g.WriteGitContent(qb422016)
+//line gititemblob.qtpl:14
+ qs422016 := string(qb422016.B)
+//line gititemblob.qtpl:14
+ qt422016.ReleaseByteBuffer(qb422016)
+//line gititemblob.qtpl:14
+ return qs422016
+//line gititemblob.qtpl:14
+}