diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-10-05 15:03:54 +0200 |
---|---|---|
committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-10-05 15:03:54 +0200 |
commit | 2fb43cc1271572d26298da70f823814cae87a3a0 (patch) | |
tree | 2147c691adc23b6833ab5a68670a31474a27135a | |
parent | a47effe083d70cae7f039ff207087447a7a82ee0 (diff) | |
download | cerrado-2fb43cc1271572d26298da70f823814cae87a3a0.tar.gz cerrado-2fb43cc1271572d26298da70f823814cae87a3a0.tar.bz2 cerrado-2fb43cc1271572d26298da70f823814cae87a3a0.zip |
chore: Regenerate go templates
Now they should have correct path for the source template file.
-rw-r--r-- | templates/about.qtpl.go | 132 | ||||
-rw-r--r-- | templates/base.qtpl.go | 96 | ||||
-rw-r--r-- | templates/commit.qtpl.go | 90 | ||||
-rw-r--r-- | templates/config.qtpl.go | 132 | ||||
-rw-r--r-- | templates/error.qtpl.go | 132 | ||||
-rw-r--r-- | templates/gititem.qtpl.go | 154 | ||||
-rw-r--r-- | templates/gititemabout.qtpl.go | 72 | ||||
-rw-r--r-- | templates/gititemblob.qtpl.go | 110 | ||||
-rw-r--r-- | templates/gititemcommit.qtpl.go | 78 | ||||
-rw-r--r-- | templates/gititemlog.qtpl.go | 82 | ||||
-rw-r--r-- | templates/gititemrefs.qtpl.go | 112 | ||||
-rw-r--r-- | templates/gititemsummary.qtpl.go | 126 | ||||
-rw-r--r-- | templates/gititemtree.qtpl.go | 178 | ||||
-rw-r--r-- | templates/gitlist.qtpl.go | 174 | ||||
-rw-r--r-- | templates/navbar.qtpl.go | 178 | ||||
-rw-r--r-- | templates/tags.qtpl.go | 110 |
16 files changed, 978 insertions, 978 deletions
diff --git a/templates/about.qtpl.go b/templates/about.qtpl.go index aaa2514..2c07ceb 100644 --- a/templates/about.qtpl.go +++ b/templates/about.qtpl.go @@ -1,162 +1,162 @@ // Code generated by qtc from "about.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -//line about.qtpl:1 +//line templates/about.qtpl:1 package templates -//line about.qtpl:1 +//line templates/about.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line about.qtpl:1 +//line templates/about.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line about.qtpl:2 +//line templates/about.qtpl:2 type AboutPage struct { Body []byte } -//line about.qtpl:7 +//line templates/about.qtpl:7 func (p *AboutPage) StreamTitle(qw422016 *qt422016.Writer) { -//line about.qtpl:7 +//line templates/about.qtpl:7 qw422016.N().S(`Hello`) -//line about.qtpl:7 +//line templates/about.qtpl:7 } -//line about.qtpl:7 +//line templates/about.qtpl:7 func (p *AboutPage) WriteTitle(qq422016 qtio422016.Writer) { -//line about.qtpl:7 +//line templates/about.qtpl:7 qw422016 := qt422016.AcquireWriter(qq422016) -//line about.qtpl:7 +//line templates/about.qtpl:7 p.StreamTitle(qw422016) -//line about.qtpl:7 +//line templates/about.qtpl:7 qt422016.ReleaseWriter(qw422016) -//line about.qtpl:7 +//line templates/about.qtpl:7 } -//line about.qtpl:7 +//line templates/about.qtpl:7 func (p *AboutPage) Title() string { -//line about.qtpl:7 +//line templates/about.qtpl:7 qb422016 := qt422016.AcquireByteBuffer() -//line about.qtpl:7 +//line templates/about.qtpl:7 p.WriteTitle(qb422016) -//line about.qtpl:7 +//line templates/about.qtpl:7 qs422016 := string(qb422016.B) -//line about.qtpl:7 +//line templates/about.qtpl:7 qt422016.ReleaseByteBuffer(qb422016) -//line about.qtpl:7 +//line templates/about.qtpl:7 return qs422016 -//line about.qtpl:7 +//line templates/about.qtpl:7 } -//line about.qtpl:9 +//line templates/about.qtpl:9 func (p *AboutPage) StreamNavbar(qw422016 *qt422016.Writer) { -//line about.qtpl:9 +//line templates/about.qtpl:9 StreamNavbar(qw422016, About) -//line about.qtpl:9 +//line templates/about.qtpl:9 } -//line about.qtpl:9 +//line templates/about.qtpl:9 func (p *AboutPage) WriteNavbar(qq422016 qtio422016.Writer) { -//line about.qtpl:9 +//line templates/about.qtpl:9 qw422016 := qt422016.AcquireWriter(qq422016) -//line about.qtpl:9 +//line templates/about.qtpl:9 p.StreamNavbar(qw422016) -//line about.qtpl:9 +//line templates/about.qtpl:9 qt422016.ReleaseWriter(qw422016) -//line about.qtpl:9 +//line templates/about.qtpl:9 } -//line about.qtpl:9 +//line templates/about.qtpl:9 func (p *AboutPage) Navbar() string { -//line about.qtpl:9 +//line templates/about.qtpl:9 qb422016 := qt422016.AcquireByteBuffer() -//line about.qtpl:9 +//line templates/about.qtpl:9 p.WriteNavbar(qb422016) -//line about.qtpl:9 +//line templates/about.qtpl:9 qs422016 := string(qb422016.B) -//line about.qtpl:9 +//line templates/about.qtpl:9 qt422016.ReleaseByteBuffer(qb422016) -//line about.qtpl:9 +//line templates/about.qtpl:9 return qs422016 -//line about.qtpl:9 +//line templates/about.qtpl:9 } -//line about.qtpl:11 +//line templates/about.qtpl:11 func (p *AboutPage) StreamContent(qw422016 *qt422016.Writer) { -//line about.qtpl:11 +//line templates/about.qtpl:11 qw422016.N().S(` `) -//line about.qtpl:12 +//line templates/about.qtpl:12 qw422016.N().Z(p.Body) -//line about.qtpl:12 +//line templates/about.qtpl:12 qw422016.N().S(` `) -//line about.qtpl:13 +//line templates/about.qtpl:13 } -//line about.qtpl:13 +//line templates/about.qtpl:13 func (p *AboutPage) WriteContent(qq422016 qtio422016.Writer) { -//line about.qtpl:13 +//line templates/about.qtpl:13 qw422016 := qt422016.AcquireWriter(qq422016) -//line about.qtpl:13 +//line templates/about.qtpl:13 p.StreamContent(qw422016) -//line about.qtpl:13 +//line templates/about.qtpl:13 qt422016.ReleaseWriter(qw422016) -//line about.qtpl:13 +//line templates/about.qtpl:13 } -//line about.qtpl:13 +//line templates/about.qtpl:13 func (p *AboutPage) Content() string { -//line about.qtpl:13 +//line templates/about.qtpl:13 qb422016 := qt422016.AcquireByteBuffer() -//line about.qtpl:13 +//line templates/about.qtpl:13 p.WriteContent(qb422016) -//line about.qtpl:13 +//line templates/about.qtpl:13 qs422016 := string(qb422016.B) -//line about.qtpl:13 +//line templates/about.qtpl:13 qt422016.ReleaseByteBuffer(qb422016) -//line about.qtpl:13 +//line templates/about.qtpl:13 return qs422016 -//line about.qtpl:13 +//line templates/about.qtpl:13 } -//line about.qtpl:15 +//line templates/about.qtpl:15 func (p *AboutPage) StreamScript(qw422016 *qt422016.Writer) { -//line about.qtpl:15 +//line templates/about.qtpl:15 qw422016.N().S(` `) -//line about.qtpl:16 +//line templates/about.qtpl:16 } -//line about.qtpl:16 +//line templates/about.qtpl:16 func (p *AboutPage) WriteScript(qq422016 qtio422016.Writer) { -//line about.qtpl:16 +//line templates/about.qtpl:16 qw422016 := qt422016.AcquireWriter(qq422016) -//line about.qtpl:16 +//line templates/about.qtpl:16 p.StreamScript(qw422016) -//line about.qtpl:16 +//line templates/about.qtpl:16 qt422016.ReleaseWriter(qw422016) -//line about.qtpl:16 +//line templates/about.qtpl:16 } -//line about.qtpl:16 +//line templates/about.qtpl:16 func (p *AboutPage) Script() string { -//line about.qtpl:16 +//line templates/about.qtpl:16 qb422016 := qt422016.AcquireByteBuffer() -//line about.qtpl:16 +//line templates/about.qtpl:16 p.WriteScript(qb422016) -//line about.qtpl:16 +//line templates/about.qtpl:16 qs422016 := string(qb422016.B) -//line about.qtpl:16 +//line templates/about.qtpl:16 qt422016.ReleaseByteBuffer(qb422016) -//line about.qtpl:16 +//line templates/about.qtpl:16 return qs422016 -//line about.qtpl:16 +//line templates/about.qtpl:16 } diff --git a/templates/base.qtpl.go b/templates/base.qtpl.go index b2356fe..51b2b8b 100644 --- a/templates/base.qtpl.go +++ b/templates/base.qtpl.go @@ -4,61 +4,61 @@ // This is a base page template. All the other template pages implement this interface. // -//line base.qtpl:3 +//line templates/base.qtpl:3 package templates -//line base.qtpl:3 +//line templates/base.qtpl:3 import "strconv" -//line base.qtpl:4 +//line templates/base.qtpl:4 import "time" -//line base.qtpl:6 +//line templates/base.qtpl:6 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line base.qtpl:6 +//line templates/base.qtpl:6 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line base.qtpl:7 +//line templates/base.qtpl:7 var Slug = "" -//line base.qtpl:11 +//line templates/base.qtpl:11 type Page interface { -//line base.qtpl:11 +//line templates/base.qtpl:11 Title() string -//line base.qtpl:11 +//line templates/base.qtpl:11 StreamTitle(qw422016 *qt422016.Writer) -//line base.qtpl:11 +//line templates/base.qtpl:11 WriteTitle(qq422016 qtio422016.Writer) -//line base.qtpl:11 +//line templates/base.qtpl:11 Content() string -//line base.qtpl:11 +//line templates/base.qtpl:11 StreamContent(qw422016 *qt422016.Writer) -//line base.qtpl:11 +//line templates/base.qtpl:11 WriteContent(qq422016 qtio422016.Writer) -//line base.qtpl:11 +//line templates/base.qtpl:11 Script() string -//line base.qtpl:11 +//line templates/base.qtpl:11 StreamScript(qw422016 *qt422016.Writer) -//line base.qtpl:11 +//line templates/base.qtpl:11 WriteScript(qq422016 qtio422016.Writer) -//line base.qtpl:11 +//line templates/base.qtpl:11 Navbar() string -//line base.qtpl:11 +//line templates/base.qtpl:11 StreamNavbar(qw422016 *qt422016.Writer) -//line base.qtpl:11 +//line templates/base.qtpl:11 WriteNavbar(qq422016 qtio422016.Writer) -//line base.qtpl:11 +//line templates/base.qtpl:11 } -//line base.qtpl:20 +//line templates/base.qtpl:20 func FromUInttoString(u *uint) string { if u != nil { return strconv.FormatUint(uint64(*u), 10) @@ -66,21 +66,21 @@ func FromUInttoString(u *uint) string { return "" } -//line base.qtpl:28 +//line templates/base.qtpl:28 func TimeFormat(t time.Time) string { return t.Format("02.01.2006") } -//line base.qtpl:33 +//line templates/base.qtpl:33 func Ignore[T any](v T, _ error) T { return v } // Page prints a page implementing Page interface. -//line base.qtpl:39 +//line templates/base.qtpl:39 func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) { -//line base.qtpl:39 +//line templates/base.qtpl:39 qw422016.N().S(` <!DOCTYPE html> <html lang="en"> @@ -88,14 +88,14 @@ func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) { <meta charset="utf-8"> <link rel="icon" href="data:,"> <title>`) -//line base.qtpl:45 +//line templates/base.qtpl:45 p.StreamTitle(qw422016) -//line base.qtpl:45 +//line templates/base.qtpl:45 qw422016.N().S(`</title> <link rel="stylesheet" href="/static/main`) -//line base.qtpl:46 +//line templates/base.qtpl:46 qw422016.E().S(Slug) -//line base.qtpl:46 +//line templates/base.qtpl:46 qw422016.N().S(`.css"> <meta content="text/html;charset=utf-8" http-equiv="Content-Type"> <meta name="viewport" content="width=device-width, initial-scale=1" /> @@ -105,50 +105,50 @@ func StreamPageTemplate(qw422016 *qt422016.Writer, p Page) { This project is under development, things may be broken or incomplete. </div> `) -//line base.qtpl:54 +//line templates/base.qtpl:54 p.StreamNavbar(qw422016) -//line base.qtpl:54 +//line templates/base.qtpl:54 qw422016.N().S(` <div class="container"> `) -//line base.qtpl:56 +//line templates/base.qtpl:56 p.StreamContent(qw422016) -//line base.qtpl:56 +//line templates/base.qtpl:56 qw422016.N().S(` </div> </body> `) -//line base.qtpl:59 +//line templates/base.qtpl:59 p.StreamScript(qw422016) -//line base.qtpl:59 +//line templates/base.qtpl:59 qw422016.N().S(` </html> `) -//line base.qtpl:61 +//line templates/base.qtpl:61 } -//line base.qtpl:61 +//line templates/base.qtpl:61 func WritePageTemplate(qq422016 qtio422016.Writer, p Page) { -//line base.qtpl:61 +//line templates/base.qtpl:61 qw422016 := qt422016.AcquireWriter(qq422016) -//line base.qtpl:61 +//line templates/base.qtpl:61 StreamPageTemplate(qw422016, p) -//line base.qtpl:61 +//line templates/base.qtpl:61 qt422016.ReleaseWriter(qw422016) -//line base.qtpl:61 +//line templates/base.qtpl:61 } -//line base.qtpl:61 +//line templates/base.qtpl:61 func PageTemplate(p Page) string { -//line base.qtpl:61 +//line templates/base.qtpl:61 qb422016 := qt422016.AcquireByteBuffer() -//line base.qtpl:61 +//line templates/base.qtpl:61 WritePageTemplate(qb422016, p) -//line base.qtpl:61 +//line templates/base.qtpl:61 qs422016 := string(qb422016.B) -//line base.qtpl:61 +//line templates/base.qtpl:61 qt422016.ReleaseByteBuffer(qb422016) -//line base.qtpl:61 +//line templates/base.qtpl:61 return qs422016 -//line base.qtpl:61 +//line templates/base.qtpl:61 } diff --git a/templates/commit.qtpl.go b/templates/commit.qtpl.go index 04d1c9c..9a25741 100644 --- a/templates/commit.qtpl.go +++ b/templates/commit.qtpl.go @@ -1,125 +1,125 @@ // Code generated by qtc from "commit.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -//line commit.qtpl:1 +//line templates/commit.qtpl:1 package templates -//line commit.qtpl:1 +//line templates/commit.qtpl:1 import "github.com/go-git/go-git/v5/plumbing/object" -//line commit.qtpl:3 +//line templates/commit.qtpl:3 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line commit.qtpl:3 +//line templates/commit.qtpl:3 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line commit.qtpl:3 +//line templates/commit.qtpl:3 func StreamCommit(qw422016 *qt422016.Writer, name string, c *object.Commit, showTar bool) { -//line commit.qtpl:3 +//line templates/commit.qtpl:3 qw422016.N().S(` <div class="row event"> <div class="row"> <div class="col-md"> <a title="`) -//line commit.qtpl:7 +//line templates/commit.qtpl:7 qw422016.E().S(c.Hash.String()) -//line commit.qtpl:7 +//line templates/commit.qtpl:7 qw422016.N().S(`" href="/`) -//line commit.qtpl:7 +//line templates/commit.qtpl:7 qw422016.E().S(name) -//line commit.qtpl:7 +//line templates/commit.qtpl:7 qw422016.N().S(`/commit/`) -//line commit.qtpl:7 +//line templates/commit.qtpl:7 qw422016.E().S(c.Hash.String()) -//line commit.qtpl:7 +//line templates/commit.qtpl:7 qw422016.N().S(`">`) -//line commit.qtpl:7 +//line templates/commit.qtpl:7 qw422016.E().S(c.Hash.String()[0:8]) -//line commit.qtpl:7 +//line templates/commit.qtpl:7 qw422016.N().S(`</a> </div> `) -//line commit.qtpl:9 +//line templates/commit.qtpl:9 if showTar { -//line commit.qtpl:9 +//line templates/commit.qtpl:9 qw422016.N().S(` <div class="col-md text-md-center"> <a title="tar.gz for `) -//line commit.qtpl:11 +//line templates/commit.qtpl:11 qw422016.E().S(c.Hash.String()) -//line commit.qtpl:11 +//line templates/commit.qtpl:11 qw422016.N().S(`" href="/`) -//line commit.qtpl:11 +//line templates/commit.qtpl:11 qw422016.E().S(name) -//line commit.qtpl:11 +//line templates/commit.qtpl:11 qw422016.N().S(`/archive/`) -//line commit.qtpl:11 +//line templates/commit.qtpl:11 qw422016.E().S(c.Hash.String()) -//line commit.qtpl:11 +//line templates/commit.qtpl:11 qw422016.N().S(`.tar.gz">tar.gz</a> </div> `) -//line commit.qtpl:13 +//line templates/commit.qtpl:13 } -//line commit.qtpl:13 +//line templates/commit.qtpl:13 qw422016.N().S(` <div class="col-md text-md-end"> <a title="`) -//line commit.qtpl:15 +//line templates/commit.qtpl:15 qw422016.E().S(c.Committer.Email) -//line commit.qtpl:15 +//line templates/commit.qtpl:15 qw422016.N().S(`" href="mailto:`) -//line commit.qtpl:15 +//line templates/commit.qtpl:15 qw422016.E().S(c.Committer.Email) -//line commit.qtpl:15 +//line templates/commit.qtpl:15 qw422016.N().S(`">`) -//line commit.qtpl:15 +//line templates/commit.qtpl:15 qw422016.E().S(c.Committer.Name) -//line commit.qtpl:15 +//line templates/commit.qtpl:15 qw422016.N().S(`</a> </div> </div> <div class="code-view"> <pre>`) -//line commit.qtpl:19 +//line templates/commit.qtpl:19 qw422016.E().S(c.Message) -//line commit.qtpl:19 +//line templates/commit.qtpl:19 qw422016.N().S(`</pre> </div> </div> `) -//line commit.qtpl:22 +//line templates/commit.qtpl:22 } -//line commit.qtpl:22 +//line templates/commit.qtpl:22 func WriteCommit(qq422016 qtio422016.Writer, name string, c *object.Commit, showTar bool) { -//line commit.qtpl:22 +//line templates/commit.qtpl:22 qw422016 := qt422016.AcquireWriter(qq422016) -//line commit.qtpl:22 +//line templates/commit.qtpl:22 StreamCommit(qw422016, name, c, showTar) -//line commit.qtpl:22 +//line templates/commit.qtpl:22 qt422016.ReleaseWriter(qw422016) -//line commit.qtpl:22 +//line templates/commit.qtpl:22 } -//line commit.qtpl:22 +//line templates/commit.qtpl:22 func Commit(name string, c *object.Commit, showTar bool) string { -//line commit.qtpl:22 +//line templates/commit.qtpl:22 qb422016 := qt422016.AcquireByteBuffer() -//line commit.qtpl:22 +//line templates/commit.qtpl:22 WriteCommit(qb422016, name, c, showTar) -//line commit.qtpl:22 +//line templates/commit.qtpl:22 qs422016 := string(qb422016.B) -//line commit.qtpl:22 +//line templates/commit.qtpl:22 qt422016.ReleaseByteBuffer(qb422016) -//line commit.qtpl:22 +//line templates/commit.qtpl:22 return qs422016 -//line commit.qtpl:22 +//line templates/commit.qtpl:22 } diff --git a/templates/config.qtpl.go b/templates/config.qtpl.go index 58b3881..975fea3 100644 --- a/templates/config.qtpl.go +++ b/templates/config.qtpl.go @@ -1,165 +1,165 @@ // Code generated by qtc from "config.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -//line config.qtpl:1 +//line templates/config.qtpl:1 package templates -//line config.qtpl:1 +//line templates/config.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line config.qtpl:1 +//line templates/config.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line config.qtpl:2 +//line templates/config.qtpl:2 type ConfigPage struct { Body []byte } -//line config.qtpl:7 +//line templates/config.qtpl:7 func (p *ConfigPage) StreamTitle(qw422016 *qt422016.Writer) { -//line config.qtpl:7 +//line templates/config.qtpl:7 qw422016.N().S(`Hello`) -//line config.qtpl:7 +//line templates/config.qtpl:7 } -//line config.qtpl:7 +//line templates/config.qtpl:7 func (p *ConfigPage) WriteTitle(qq422016 qtio422016.Writer) { -//line config.qtpl:7 +//line templates/config.qtpl:7 qw422016 := qt422016.AcquireWriter(qq422016) -//line config.qtpl:7 +//line templates/config.qtpl:7 p.StreamTitle(qw422016) -//line config.qtpl:7 +//line templates/config.qtpl:7 qt422016.ReleaseWriter(qw422016) -//line config.qtpl:7 +//line templates/config.qtpl:7 } -//line config.qtpl:7 +//line templates/config.qtpl:7 func (p *ConfigPage) Title() string { -//line config.qtpl:7 +//line templates/config.qtpl:7 qb422016 := qt422016.AcquireByteBuffer() -//line config.qtpl:7 +//line templates/config.qtpl:7 p.WriteTitle(qb422016) -//line config.qtpl:7 +//line templates/config.qtpl:7 qs422016 := string(qb422016.B) -//line config.qtpl:7 +//line templates/config.qtpl:7 qt422016.ReleaseByteBuffer(qb422016) -//line config.qtpl:7 +//line templates/config.qtpl:7 return qs422016 -//line config.qtpl:7 +//line templates/config.qtpl:7 } -//line config.qtpl:9 +//line templates/config.qtpl:9 func (p *ConfigPage) StreamNavbar(qw422016 *qt422016.Writer) { -//line config.qtpl:9 +//line templates/config.qtpl:9 StreamNavbar(qw422016, Config) -//line config.qtpl:9 +//line templates/config.qtpl:9 } -//line config.qtpl:9 +//line templates/config.qtpl:9 func (p *ConfigPage) WriteNavbar(qq422016 qtio422016.Writer) { -//line config.qtpl:9 +//line templates/config.qtpl:9 qw422016 := qt422016.AcquireWriter(qq422016) -//line config.qtpl:9 +//line templates/config.qtpl:9 p.StreamNavbar(qw422016) -//line config.qtpl:9 +//line templates/config.qtpl:9 qt422016.ReleaseWriter(qw422016) -//line config.qtpl:9 +//line templates/config.qtpl:9 } -//line config.qtpl:9 +//line templates/config.qtpl:9 func (p *ConfigPage) Navbar() string { -//line config.qtpl:9 +//line templates/config.qtpl:9 qb422016 := qt422016.AcquireByteBuffer() -//line config.qtpl:9 +//line templates/config.qtpl:9 p.WriteNavbar(qb422016) -//line config.qtpl:9 +//line templates/config.qtpl:9 qs422016 := string(qb422016.B) -//line config.qtpl:9 +//line templates/config.qtpl:9 qt422016.ReleaseByteBuffer(qb422016) -//line config.qtpl:9 +//line templates/config.qtpl:9 return qs422016 -//line config.qtpl:9 +//line templates/config.qtpl:9 } -//line config.qtpl:11 +//line templates/config.qtpl:11 func (p *ConfigPage) StreamContent(qw422016 *qt422016.Writer) { -//line config.qtpl:11 +//line templates/config.qtpl:11 qw422016.N().S(` <p>This is the configuration that is currently loaded</p> <div class="code-view"> `) -//line config.qtpl:14 +//line templates/config.qtpl:14 qw422016.N().Z(p.Body) -//line config.qtpl:14 +//line templates/config.qtpl:14 qw422016.N().S(` </div> `) -//line config.qtpl:16 +//line templates/config.qtpl:16 } -//line config.qtpl:16 +//line templates/config.qtpl:16 func (p *ConfigPage) WriteContent(qq422016 qtio422016.Writer) { -//line config.qtpl:16 +//line templates/config.qtpl:16 qw422016 := qt422016.AcquireWriter(qq422016) -//line config.qtpl:16 +//line templates/config.qtpl:16 p.StreamContent(qw422016) -//line config.qtpl:16 +//line templates/config.qtpl:16 qt422016.ReleaseWriter(qw422016) -//line config.qtpl:16 +//line templates/config.qtpl:16 } -//line config.qtpl:16 +//line templates/config.qtpl:16 func (p *ConfigPage) Content() string { -//line config.qtpl:16 +//line templates/config.qtpl:16 qb422016 := qt422016.AcquireByteBuffer() -//line config.qtpl:16 +//line templates/config.qtpl:16 p.WriteContent(qb422016) -//line config.qtpl:16 +//line templates/config.qtpl:16 qs422016 := string(qb422016.B) -//line config.qtpl:16 +//line templates/config.qtpl:16 qt422016.ReleaseByteBuffer(qb422016) -//line config.qtpl:16 +//line templates/config.qtpl:16 return qs422016 -//line config.qtpl:16 +//line templates/config.qtpl:16 } -//line config.qtpl:18 +//line templates/config.qtpl:18 func (p *ConfigPage) StreamScript(qw422016 *qt422016.Writer) { -//line config.qtpl:18 +//line templates/config.qtpl:18 qw422016.N().S(` `) -//line config.qtpl:19 +//line templates/config.qtpl:19 } -//line config.qtpl:19 +//line templates/config.qtpl:19 func (p *ConfigPage) WriteScript(qq422016 qtio422016.Writer) { -//line config.qtpl:19 +//line templates/config.qtpl:19 qw422016 := qt422016.AcquireWriter(qq422016) -//line config.qtpl:19 +//line templates/config.qtpl:19 p.StreamScript(qw422016) -//line config.qtpl:19 +//line templates/config.qtpl:19 qt422016.ReleaseWriter(qw422016) -//line config.qtpl:19 +//line templates/config.qtpl:19 } -//line config.qtpl:19 +//line templates/config.qtpl:19 func (p *ConfigPage) Script() string { -//line config.qtpl:19 +//line templates/config.qtpl:19 qb422016 := qt422016.AcquireByteBuffer() -//line config.qtpl:19 +//line templates/config.qtpl:19 p.WriteScript(qb422016) -//line config.qtpl:19 +//line templates/config.qtpl:19 qs422016 := string(qb422016.B) -//line config.qtpl:19 +//line templates/config.qtpl:19 qt422016.ReleaseByteBuffer(qb422016) -//line config.qtpl:19 +//line templates/config.qtpl:19 return qs422016 -//line config.qtpl:19 +//line templates/config.qtpl:19 } diff --git a/templates/error.qtpl.go b/templates/error.qtpl.go index 099395f..f415968 100644 --- a/templates/error.qtpl.go +++ b/templates/error.qtpl.go @@ -1,162 +1,162 @@ // Code generated by qtc from "error.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -//line error.qtpl:1 +//line templates/error.qtpl:1 package templates -//line error.qtpl:1 +//line templates/error.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line error.qtpl:1 +//line templates/error.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line error.qtpl:2 +//line templates/error.qtpl:2 type ErrorPage struct { Message string } -//line error.qtpl:7 +//line templates/error.qtpl:7 func (p *ErrorPage) StreamTitle(qw422016 *qt422016.Writer) { -//line error.qtpl:7 +//line templates/error.qtpl:7 qw422016.N().S(`Error`) -//line error.qtpl:7 +//line templates/error.qtpl:7 } -//line error.qtpl:7 +//line templates/error.qtpl:7 func (p *ErrorPage) WriteTitle(qq422016 qtio422016.Writer) { -//line error.qtpl:7 +//line templates/error.qtpl:7 qw422016 := qt422016.AcquireWriter(qq422016) -//line error.qtpl:7 +//line templates/error.qtpl:7 p.StreamTitle(qw422016) -//line error.qtpl:7 +//line templates/error.qtpl:7 qt422016.ReleaseWriter(qw422016) -//line error.qtpl:7 +//line templates/error.qtpl:7 } -//line error.qtpl:7 +//line templates/error.qtpl:7 func (p *ErrorPage) Title() string { -//line error.qtpl:7 +//line templates/error.qtpl:7 qb422016 := qt422016.AcquireByteBuffer() -//line error.qtpl:7 +//line templates/error.qtpl:7 p.WriteTitle(qb422016) -//line error.qtpl:7 +//line templates/error.qtpl:7 qs422016 := string(qb422016.B) -//line error.qtpl:7 +//line templates/error.qtpl:7 qt422016.ReleaseByteBuffer(qb422016) -//line error.qtpl:7 +//line templates/error.qtpl:7 return qs422016 -//line error.qtpl:7 +//line templates/error.qtpl:7 } -//line error.qtpl:9 +//line templates/error.qtpl:9 func (p *ErrorPage) StreamNavbar(qw422016 *qt422016.Writer) { -//line error.qtpl:9 +//line templates/error.qtpl:9 StreamNavbar(qw422016, Git) -//line error.qtpl:9 +//line templates/error.qtpl:9 } -//line error.qtpl:9 +//line templates/error.qtpl:9 func (p *ErrorPage) WriteNavbar(qq422016 qtio422016.Writer) { -//line error.qtpl:9 +//line templates/error.qtpl:9 qw422016 := qt422016.AcquireWriter(qq422016) -//line error.qtpl:9 +//line templates/error.qtpl:9 p.StreamNavbar(qw422016) -//line error.qtpl:9 +//line templates/error.qtpl:9 qt422016.ReleaseWriter(qw422016) -//line error.qtpl:9 +//line templates/error.qtpl:9 } -//line error.qtpl:9 +//line templates/error.qtpl:9 func (p *ErrorPage) Navbar() string { -//line error.qtpl:9 +//line templates/error.qtpl:9 qb422016 := qt422016.AcquireByteBuffer() -//line error.qtpl:9 +//line templates/error.qtpl:9 p.WriteNavbar(qb422016) -//line error.qtpl:9 +//line templates/error.qtpl:9 qs422016 := string(qb422016.B) -//line error.qtpl:9 +//line templates/error.qtpl:9 qt422016.ReleaseByteBuffer(qb422016) -//line error.qtpl:9 +//line templates/error.qtpl:9 return qs422016 -//line error.qtpl:9 +//line templates/error.qtpl:9 } -//line error.qtpl:11 +//line templates/error.qtpl:11 func (p *ErrorPage) StreamContent(qw422016 *qt422016.Writer) { -//line error.qtpl:11 +//line templates/error.qtpl:11 qw422016.N().S(` `) -//line error.qtpl:12 +//line templates/error.qtpl:12 qw422016.E().S(p.Message) -//line error.qtpl:12 +//line templates/error.qtpl:12 qw422016.N().S(` `) -//line error.qtpl:13 +//line templates/error.qtpl:13 } -//line error.qtpl:13 +//line templates/error.qtpl:13 func (p *ErrorPage) WriteContent(qq422016 qtio422016.Writer) { -//line error.qtpl:13 +//line templates/error.qtpl:13 qw422016 := qt422016.AcquireWriter(qq422016) -//line error.qtpl:13 +//line templates/error.qtpl:13 p.StreamContent(qw422016) -//line error.qtpl:13 +//line templates/error.qtpl:13 qt422016.ReleaseWriter(qw422016) -//line error.qtpl:13 +//line templates/error.qtpl:13 } -//line error.qtpl:13 +//line templates/error.qtpl:13 func (p *ErrorPage) Content() string { -//line error.qtpl:13 +//line templates/error.qtpl:13 qb422016 := qt422016.AcquireByteBuffer() -//line error.qtpl:13 +//line templates/error.qtpl:13 p.WriteContent(qb422016) -//line error.qtpl:13 +//line templates/error.qtpl:13 qs422016 := string(qb422016.B) -//line error.qtpl:13 +//line templates/error.qtpl:13 qt422016.ReleaseByteBuffer(qb422016) -//line error.qtpl:13 +//line templates/error.qtpl:13 return qs422016 -//line error.qtpl:13 +//line templates/error.qtpl:13 } -//line error.qtpl:15 +//line templates/error.qtpl:15 func (p *ErrorPage) StreamScript(qw422016 *qt422016.Writer) { -//line error.qtpl:15 +//line templates/error.qtpl:15 qw422016.N().S(` `) -//line error.qtpl:16 +//line templates/error.qtpl:16 } -//line error.qtpl:16 +//line templates/error.qtpl:16 func (p *ErrorPage) WriteScript(qq422016 qtio422016.Writer) { -//line error.qtpl:16 +//line templates/error.qtpl:16 qw422016 := qt422016.AcquireWriter(qq422016) -//line error.qtpl:16 +//line templates/error.qtpl:16 p.StreamScript(qw422016) -//line error.qtpl:16 +//line templates/error.qtpl:16 qt422016.ReleaseWriter(qw422016) -//line error.qtpl:16 +//line templates/error.qtpl:16 } -//line error.qtpl:16 +//line templates/error.qtpl:16 func (p *ErrorPage) Script() string { -//line error.qtpl:16 +//line templates/error.qtpl:16 qb422016 := qt422016.AcquireByteBuffer() -//line error.qtpl:16 +//line templates/error.qtpl:16 p.WriteScript(qb422016) -//line error.qtpl:16 +//line templates/error.qtpl:16 qs422016 := string(qb422016.B) -//line error.qtpl:16 +//line templates/error.qtpl:16 qt422016.ReleaseByteBuffer(qb422016) -//line error.qtpl:16 +//line templates/error.qtpl:16 return qs422016 -//line error.qtpl:16 +//line templates/error.qtpl:16 } diff --git a/templates/gititem.qtpl.go b/templates/gititem.qtpl.go index 7cfeeb4..c9a00b2 100644 --- a/templates/gititem.qtpl.go +++ b/templates/gititem.qtpl.go @@ -1,190 +1,190 @@ // Code generated by qtc from "gititem.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -//line gititem.qtpl:1 +//line templates/gititem.qtpl:1 package templates -//line gititem.qtpl:1 +//line templates/gititem.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line gititem.qtpl:1 +//line templates/gititem.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line gititem.qtpl:2 +//line templates/gititem.qtpl:2 type GitItemBase interface { -//line gititem.qtpl:2 +//line templates/gititem.qtpl:2 Nav(name, ref string) string -//line gititem.qtpl:2 +//line templates/gititem.qtpl:2 StreamNav(qw422016 *qt422016.Writer, name, ref string) -//line gititem.qtpl:2 +//line templates/gititem.qtpl:2 WriteNav(qq422016 qtio422016.Writer, name, ref string) -//line gititem.qtpl:2 +//line templates/gititem.qtpl:2 GitContent(name, ref string) string -//line gititem.qtpl:2 +//line templates/gititem.qtpl:2 StreamGitContent(qw422016 *qt422016.Writer, name, ref string) -//line gititem.qtpl:2 +//line templates/gititem.qtpl:2 WriteGitContent(qq422016 qtio422016.Writer, name, ref string) -//line gititem.qtpl:2 +//line templates/gititem.qtpl:2 } -//line gititem.qtpl:9 +//line templates/gititem.qtpl:9 type GitItemPage struct { Name string Ref string GitItemBase } -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 func (p *GitItemPage) StreamTitle(qw422016 *qt422016.Writer) { -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 qw422016.N().S(`Git | `) -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 qw422016.E().S(p.Name) -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 } -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 func (p *GitItemPage) WriteTitle(qq422016 qtio422016.Writer) { -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 p.StreamTitle(qw422016) -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 qt422016.ReleaseWriter(qw422016) -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 } -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 func (p *GitItemPage) Title() string { -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 qb422016 := qt422016.AcquireByteBuffer() -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 p.WriteTitle(qb422016) -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 qs422016 := string(qb422016.B) -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 qt422016.ReleaseByteBuffer(qb422016) -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 return qs422016 -//line gititem.qtpl:16 +//line templates/gititem.qtpl:16 } -//line gititem.qtpl:18 +//line templates/gititem.qtpl:18 func (p *GitItemPage) StreamNavbar(qw422016 *qt422016.Writer) { -//line gititem.qtpl:18 +//line templates/gititem.qtpl:18 StreamNavbar(qw422016, Git) -//line gititem.qtpl:18 +//line templates/gititem.qtpl:18 } -//line gititem.qtpl:18 +//line templates/gititem.qtpl:18 func (p *GitItemPage) WriteNavbar(qq422016 qtio422016.Writer) { -//line gititem.qtpl:18 +//line templates/gititem.qtpl:18 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititem.qtpl:18 +//line templates/gititem.qtpl:18 p.StreamNavbar(qw422016) -//line gititem.qtpl:18 +//line templates/gititem.qtpl:18 qt422016.ReleaseWriter(qw422016) -//line gititem.qtpl:18 +//line templates/gititem.qtpl:18 } -//line gititem.qtpl:18 +//line templates/gititem.qtpl:18 func (p *GitItemPage) Navbar() string { -//line gititem.qtpl:18 +//line templates/gititem.qtpl:18 qb422016 := qt422016.AcquireByteBuffer() -//line gititem.qtpl:18 +//line templates/gititem.qtpl:18 p.WriteNavbar(qb422016) -//line gititem.qtpl:18 +//line templates/gititem.qtpl:18 qs422016 := string(qb422016.B) -//line gititem.qtpl:18 +//line templates/gititem.qtpl:18 qt422016.ReleaseByteBuffer(qb422016) -//line gititem.qtpl:18 +//line templates/gititem.qtpl:18 return qs422016 -//line gititem.qtpl:18 +//line templates/gititem.qtpl:18 } -//line gititem.qtpl:20 +//line templates/gititem.qtpl:20 func (p *GitItemPage) StreamContent(qw422016 *qt422016.Writer) { -//line gititem.qtpl:20 +//line templates/gititem.qtpl:20 qw422016.N().S(` `) -//line gititem.qtpl:21 +//line templates/gititem.qtpl:21 p.StreamNav(qw422016, p.Name, p.Ref) -//line gititem.qtpl:21 +//line templates/gititem.qtpl:21 qw422016.N().S(` <div class="container"> `) -//line gititem.qtpl:23 +//line templates/gititem.qtpl:23 p.StreamGitContent(qw422016, p.Name, p.Ref) -//line gititem.qtpl:23 +//line templates/gititem.qtpl:23 qw422016.N().S(` </div> `) -//line gititem.qtpl:25 +//line templates/gititem.qtpl:25 } -//line gititem.qtpl:25 +//line templates/gititem.qtpl:25 func (p *GitItemPage) WriteContent(qq422016 qtio422016.Writer) { -//line gititem.qtpl:25 +//line templates/gititem.qtpl:25 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititem.qtpl:25 +//line templates/gititem.qtpl:25 p.StreamContent(qw422016) -//line gititem.qtpl:25 +//line templates/gititem.qtpl:25 qt422016.ReleaseWriter(qw422016) -//line gititem.qtpl:25 +//line templates/gititem.qtpl:25 } -//line gititem.qtpl:25 +//line templates/gititem.qtpl:25 func (p *GitItemPage) Content() string { -//line gititem.qtpl:25 +//line templates/gititem.qtpl:25 qb422016 := qt422016.AcquireByteBuffer() -//line gititem.qtpl:25 +//line templates/gititem.qtpl:25 p.WriteContent(qb422016) -//line gititem.qtpl:25 +//line templates/gititem.qtpl:25 qs422016 := string(qb422016.B) -//line gititem.qtpl:25 +//line templates/gititem.qtpl:25 qt422016.ReleaseByteBuffer(qb422016) -//line gititem.qtpl:25 +//line templates/gititem.qtpl:25 return qs422016 -//line gititem.qtpl:25 +//line templates/gititem.qtpl:25 } -//line gititem.qtpl:27 +//line templates/gititem.qtpl:27 func (p *GitItemPage) StreamScript(qw422016 *qt422016.Writer) { -//line gititem.qtpl:27 +//line templates/gititem.qtpl:27 qw422016.N().S(` `) -//line gititem.qtpl:28 +//line templates/gititem.qtpl:28 } -//line gititem.qtpl:28 +//line templates/gititem.qtpl:28 func (p *GitItemPage) WriteScript(qq422016 qtio422016.Writer) { -//line gititem.qtpl:28 +//line templates/gititem.qtpl:28 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititem.qtpl:28 +//line templates/gititem.qtpl:28 p.StreamScript(qw422016) -//line gititem.qtpl:28 +//line templates/gititem.qtpl:28 qt422016.ReleaseWriter(qw422016) -//line gititem.qtpl:28 +//line templates/gititem.qtpl:28 } -//line gititem.qtpl:28 +//line templates/gititem.qtpl:28 func (p *GitItemPage) Script() string { -//line gititem.qtpl:28 +//line templates/gititem.qtpl:28 qb422016 := qt422016.AcquireByteBuffer() -//line gititem.qtpl:28 +//line templates/gititem.qtpl:28 p.WriteScript(qb422016) -//line gititem.qtpl:28 +//line templates/gititem.qtpl:28 qs422016 := string(qb422016.B) -//line gititem.qtpl:28 +//line templates/gititem.qtpl:28 qt422016.ReleaseByteBuffer(qb422016) -//line gititem.qtpl:28 +//line templates/gititem.qtpl:28 return qs422016 -//line gititem.qtpl:28 +//line templates/gititem.qtpl:28 } diff --git a/templates/gititemabout.qtpl.go b/templates/gititemabout.qtpl.go index e1c1db4..12b4be9 100644 --- a/templates/gititemabout.qtpl.go +++ b/templates/gititemabout.qtpl.go @@ -1,97 +1,97 @@ // Code generated by qtc from "gititemabout.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -//line gititemabout.qtpl:1 +//line templates/gititemabout.qtpl:1 package templates -//line gititemabout.qtpl:1 +//line templates/gititemabout.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line gititemabout.qtpl:1 +//line templates/gititemabout.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line gititemabout.qtpl:2 +//line templates/gititemabout.qtpl:2 type GitItemAboutPage struct { About []byte } -//line gititemabout.qtpl:7 +//line templates/gititemabout.qtpl:7 func (g *GitItemAboutPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) { -//line gititemabout.qtpl:7 +//line templates/gititemabout.qtpl:7 StreamGitItemNav(qw422016, name, ref, Readme) -//line gititemabout.qtpl:7 +//line templates/gititemabout.qtpl:7 } -//line gititemabout.qtpl:7 +//line templates/gititemabout.qtpl:7 func (g *GitItemAboutPage) WriteNav(qq422016 qtio422016.Writer, name, ref string) { -//line gititemabout.qtpl:7 +//line templates/gititemabout.qtpl:7 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititemabout.qtpl:7 +//line templates/gititemabout.qtpl:7 g.StreamNav(qw422016, name, ref) -//line gititemabout.qtpl:7 +//line templates/gititemabout.qtpl:7 qt422016.ReleaseWriter(qw422016) -//line gititemabout.qtpl:7 +//line templates/gititemabout.qtpl:7 } -//line gititemabout.qtpl:7 +//line templates/gititemabout.qtpl:7 func (g *GitItemAboutPage) Nav(name, ref string) string { -//line gititemabout.qtpl:7 +//line templates/gititemabout.qtpl:7 qb422016 := qt422016.AcquireByteBuffer() -//line gititemabout.qtpl:7 +//line templates/gititemabout.qtpl:7 g.WriteNav(qb422016, name, ref) -//line gititemabout.qtpl:7 +//line templates/gititemabout.qtpl:7 qs422016 := string(qb422016.B) -//line gititemabout.qtpl:7 +//line templates/gititemabout.qtpl:7 qt422016.ReleaseByteBuffer(qb422016) -//line gititemabout.qtpl:7 +//line templates/gititemabout.qtpl:7 return qs422016 -//line gititemabout.qtpl:7 +//line templates/gititemabout.qtpl:7 } -//line gititemabout.qtpl:9 +//line templates/gititemabout.qtpl:9 func (g *GitItemAboutPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) { -//line gititemabout.qtpl:9 +//line templates/gititemabout.qtpl:9 qw422016.N().S(` <div class="m-2"> `) -//line gititemabout.qtpl:11 +//line templates/gititemabout.qtpl:11 qw422016.N().Z(g.About) -//line gititemabout.qtpl:11 +//line templates/gititemabout.qtpl:11 qw422016.N().S(` </div> `) -//line gititemabout.qtpl:13 +//line templates/gititemabout.qtpl:13 } -//line gititemabout.qtpl:13 +//line templates/gititemabout.qtpl:13 func (g *GitItemAboutPage) WriteGitContent(qq422016 qtio422016.Writer, name, ref string) { -//line gititemabout.qtpl:13 +//line templates/gititemabout.qtpl:13 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititemabout.qtpl:13 +//line templates/gititemabout.qtpl:13 g.StreamGitContent(qw422016, name, ref) -//line gititemabout.qtpl:13 +//line templates/gititemabout.qtpl:13 qt422016.ReleaseWriter(qw422016) -//line gititemabout.qtpl:13 +//line templates/gititemabout.qtpl:13 } -//line gititemabout.qtpl:13 +//line templates/gititemabout.qtpl:13 func (g *GitItemAboutPage) GitContent(name, ref string) string { -//line gititemabout.qtpl:13 +//line templates/gititemabout.qtpl:13 qb422016 := qt422016.AcquireByteBuffer() -//line gititemabout.qtpl:13 +//line templates/gititemabout.qtpl:13 g.WriteGitContent(qb422016, name, ref) -//line gititemabout.qtpl:13 +//line templates/gititemabout.qtpl:13 qs422016 := string(qb422016.B) -//line gititemabout.qtpl:13 +//line templates/gititemabout.qtpl:13 qt422016.ReleaseByteBuffer(qb422016) -//line gititemabout.qtpl:13 +//line templates/gititemabout.qtpl:13 return qs422016 -//line gititemabout.qtpl:13 +//line templates/gititemabout.qtpl:13 } diff --git a/templates/gititemblob.qtpl.go b/templates/gititemblob.qtpl.go index 5d986b4..73742f6 100644 --- a/templates/gititemblob.qtpl.go +++ b/templates/gititemblob.qtpl.go @@ -1,140 +1,140 @@ // Code generated by qtc from "gititemblob.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -//line gititemblob.qtpl:1 +//line templates/gititemblob.qtpl:1 package templates -//line gititemblob.qtpl:1 +//line templates/gititemblob.qtpl:1 import "git.gabrielgio.me/cerrado/pkg/u" -//line gititemblob.qtpl:3 +//line templates/gititemblob.qtpl:3 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line gititemblob.qtpl:3 +//line templates/gititemblob.qtpl:3 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line gititemblob.qtpl:4 +//line templates/gititemblob.qtpl:4 type GitItemBlobPage struct { Path []string Content []byte } -//line gititemblob.qtpl:10 +//line templates/gititemblob.qtpl:10 func (g *GitItemBlobPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) { -//line gititemblob.qtpl:10 +//line templates/gititemblob.qtpl:10 StreamGitItemNav(qw422016, name, ref, Tree) -//line gititemblob.qtpl:10 +//line templates/gititemblob.qtpl:10 } -//line gititemblob.qtpl:10 +//line templates/gititemblob.qtpl:10 func (g *GitItemBlobPage) WriteNav(qq422016 qtio422016.Writer, name, ref string) { -//line gititemblob.qtpl:10 +//line templates/gititemblob.qtpl:10 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititemblob.qtpl:10 +//line templates/gititemblob.qtpl:10 g.StreamNav(qw422016, name, ref) -//line gititemblob.qtpl:10 +//line templates/gititemblob.qtpl:10 qt422016.ReleaseWriter(qw422016) -//line gititemblob.qtpl:10 +//line templates/gititemblob.qtpl:10 } -//line gititemblob.qtpl:10 +//line templates/gititemblob.qtpl:10 func (g *GitItemBlobPage) Nav(name, ref string) string { -//line gititemblob.qtpl:10 +//line templates/gititemblob.qtpl:10 qb422016 := qt422016.AcquireByteBuffer() -//line gititemblob.qtpl:10 +//line templates/gititemblob.qtpl:10 g.WriteNav(qb422016, name, ref) -//line gititemblob.qtpl:10 +//line templates/gititemblob.qtpl:10 qs422016 := string(qb422016.B) -//line gititemblob.qtpl:10 +//line templates/gititemblob.qtpl:10 qt422016.ReleaseByteBuffer(qb422016) -//line gititemblob.qtpl:10 +//line templates/gititemblob.qtpl:10 return qs422016 -//line gititemblob.qtpl:10 +//line templates/gititemblob.qtpl:10 } -//line gititemblob.qtpl:12 +//line templates/gititemblob.qtpl:12 func (g *GitItemBlobPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) { -//line gititemblob.qtpl:12 +//line templates/gititemblob.qtpl:12 qw422016.N().S(` <div class="pathing"> `) -//line gititemblob.qtpl:15 +//line templates/gititemblob.qtpl:15 if len(g.Path) != 0 { -//line gititemblob.qtpl:15 +//line templates/gititemblob.qtpl:15 qw422016.N().S(`<a href="`) -//line gititemblob.qtpl:16 +//line templates/gititemblob.qtpl:16 qw422016.E().S(url(name, Folder, ref, Root, []string{})) -//line gititemblob.qtpl:16 +//line templates/gititemblob.qtpl:16 qw422016.N().S(`">root/</a>`) -//line gititemblob.qtpl:17 +//line templates/gititemblob.qtpl:17 for i, e := range g.Path[:len(g.Path)-1] { -//line gititemblob.qtpl:17 +//line templates/gititemblob.qtpl:17 qw422016.N().S(`<a href="`) -//line gititemblob.qtpl:18 +//line templates/gititemblob.qtpl:18 qw422016.E().S(url(name, Folder, ref, Root, g.Path[:1+i])) -//line gititemblob.qtpl:18 +//line templates/gititemblob.qtpl:18 qw422016.N().S(`">`) -//line gititemblob.qtpl:18 +//line templates/gititemblob.qtpl:18 qw422016.E().S(e) -//line gititemblob.qtpl:18 +//line templates/gititemblob.qtpl:18 qw422016.N().S(`/</a>`) -//line gititemblob.qtpl:19 +//line templates/gititemblob.qtpl:19 } -//line gititemblob.qtpl:19 +//line templates/gititemblob.qtpl:19 qw422016.N().S(`<a>`) -//line gititemblob.qtpl:20 +//line templates/gititemblob.qtpl:20 qw422016.E().S(u.LastOrZero(g.Path)) -//line gititemblob.qtpl:20 +//line templates/gititemblob.qtpl:20 qw422016.N().S(`</a>`) -//line gititemblob.qtpl:21 +//line templates/gititemblob.qtpl:21 } else { -//line gititemblob.qtpl:21 +//line templates/gititemblob.qtpl:21 qw422016.N().S(`<a>root/</a>`) -//line gititemblob.qtpl:23 +//line templates/gititemblob.qtpl:23 } -//line gititemblob.qtpl:24 +//line templates/gititemblob.qtpl:24 qw422016.N().S(` </div> <div class="code-view"> `) -//line gititemblob.qtpl:27 +//line templates/gititemblob.qtpl:27 qw422016.N().Z(g.Content) -//line gititemblob.qtpl:27 +//line templates/gititemblob.qtpl:27 qw422016.N().S(` </div> `) -//line gititemblob.qtpl:29 +//line templates/gititemblob.qtpl:29 } -//line gititemblob.qtpl:29 +//line templates/gititemblob.qtpl:29 func (g *GitItemBlobPage) WriteGitContent(qq422016 qtio422016.Writer, name, ref string) { -//line gititemblob.qtpl:29 +//line templates/gititemblob.qtpl:29 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititemblob.qtpl:29 +//line templates/gititemblob.qtpl:29 g.StreamGitContent(qw422016, name, ref) -//line gititemblob.qtpl:29 +//line templates/gititemblob.qtpl:29 qt422016.ReleaseWriter(qw422016) -//line gititemblob.qtpl:29 +//line templates/gititemblob.qtpl:29 } -//line gititemblob.qtpl:29 +//line templates/gititemblob.qtpl:29 func (g *GitItemBlobPage) GitContent(name, ref string) string { -//line gititemblob.qtpl:29 +//line templates/gititemblob.qtpl:29 qb422016 := qt422016.AcquireByteBuffer() -//line gititemblob.qtpl:29 +//line templates/gititemblob.qtpl:29 g.WriteGitContent(qb422016, name, ref) -//line gititemblob.qtpl:29 +//line templates/gititemblob.qtpl:29 qs422016 := string(qb422016.B) -//line gititemblob.qtpl:29 +//line templates/gititemblob.qtpl:29 qt422016.ReleaseByteBuffer(qb422016) -//line gititemblob.qtpl:29 +//line templates/gititemblob.qtpl:29 return qs422016 -//line gititemblob.qtpl:29 +//line templates/gititemblob.qtpl:29 } diff --git a/templates/gititemcommit.qtpl.go b/templates/gititemcommit.qtpl.go index 39348ee..8048e58 100644 --- a/templates/gititemcommit.qtpl.go +++ b/templates/gititemcommit.qtpl.go @@ -1,108 +1,108 @@ // Code generated by qtc from "gititemcommit.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -//line gititemcommit.qtpl:1 +//line templates/gititemcommit.qtpl:1 package templates -//line gititemcommit.qtpl:1 +//line templates/gititemcommit.qtpl:1 import "github.com/go-git/go-git/v5/plumbing/object" -//line gititemcommit.qtpl:3 +//line templates/gititemcommit.qtpl:3 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line gititemcommit.qtpl:3 +//line templates/gititemcommit.qtpl:3 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line gititemcommit.qtpl:4 +//line templates/gititemcommit.qtpl:4 type GitItemCommitPage struct { Commit *object.Commit Diff string } -//line gititemcommit.qtpl:10 +//line templates/gititemcommit.qtpl:10 func (g *GitItemCommitPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) { -//line gititemcommit.qtpl:10 +//line templates/gititemcommit.qtpl:10 StreamGitItemNav(qw422016, name, ref, Log) -//line gititemcommit.qtpl:10 +//line templates/gititemcommit.qtpl:10 } -//line gititemcommit.qtpl:10 +//line templates/gititemcommit.qtpl:10 func (g *GitItemCommitPage) WriteNav(qq422016 qtio422016.Writer, name, ref string) { -//line gititemcommit.qtpl:10 +//line templates/gititemcommit.qtpl:10 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititemcommit.qtpl:10 +//line templates/gititemcommit.qtpl:10 g.StreamNav(qw422016, name, ref) -//line gititemcommit.qtpl:10 +//line templates/gititemcommit.qtpl:10 qt422016.ReleaseWriter(qw422016) -//line gititemcommit.qtpl:10 +//line templates/gititemcommit.qtpl:10 } -//line gititemcommit.qtpl:10 +//line templates/gititemcommit.qtpl:10 func (g *GitItemCommitPage) Nav(name, ref string) string { -//line gititemcommit.qtpl:10 +//line templates/gititemcommit.qtpl:10 qb422016 := qt422016.AcquireByteBuffer() -//line gititemcommit.qtpl:10 +//line templates/gititemcommit.qtpl:10 g.WriteNav(qb422016, name, ref) -//line gititemcommit.qtpl:10 +//line templates/gititemcommit.qtpl:10 qs422016 := string(qb422016.B) -//line gititemcommit.qtpl:10 +//line templates/gititemcommit.qtpl:10 qt422016.ReleaseByteBuffer(qb422016) -//line gititemcommit.qtpl:10 +//line templates/gititemcommit.qtpl:10 return qs422016 -//line gititemcommit.qtpl:10 +//line templates/gititemcommit.qtpl:10 } -//line gititemcommit.qtpl:12 +//line templates/gititemcommit.qtpl:12 func (g *GitItemCommitPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) { -//line gititemcommit.qtpl:12 +//line templates/gititemcommit.qtpl:12 qw422016.N().S(` <div class="event-list"> `) -//line gititemcommit.qtpl:14 +//line templates/gititemcommit.qtpl:14 StreamCommit(qw422016, name, g.Commit, true) -//line gititemcommit.qtpl:14 +//line templates/gititemcommit.qtpl:14 qw422016.N().S(` </div> <div class="code-view"> <pre>`) -//line gititemcommit.qtpl:17 +//line templates/gititemcommit.qtpl:17 qw422016.E().S(g.Diff) -//line gititemcommit.qtpl:17 +//line templates/gititemcommit.qtpl:17 qw422016.N().S(`</pre> </div> `) -//line gititemcommit.qtpl:19 +//line templates/gititemcommit.qtpl:19 } -//line gititemcommit.qtpl:19 +//line templates/gititemcommit.qtpl:19 func (g *GitItemCommitPage) WriteGitContent(qq422016 qtio422016.Writer, name, ref string) { -//line gititemcommit.qtpl:19 +//line templates/gititemcommit.qtpl:19 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititemcommit.qtpl:19 +//line templates/gititemcommit.qtpl:19 g.StreamGitContent(qw422016, name, ref) -//line gititemcommit.qtpl:19 +//line templates/gititemcommit.qtpl:19 qt422016.ReleaseWriter(qw422016) -//line gititemcommit.qtpl:19 +//line templates/gititemcommit.qtpl:19 } -//line gititemcommit.qtpl:19 +//line templates/gititemcommit.qtpl:19 func (g *GitItemCommitPage) GitContent(name, ref string) string { -//line gititemcommit.qtpl:19 +//line templates/gititemcommit.qtpl:19 qb422016 := qt422016.AcquireByteBuffer() -//line gititemcommit.qtpl:19 +//line templates/gititemcommit.qtpl:19 g.WriteGitContent(qb422016, name, ref) -//line gititemcommit.qtpl:19 +//line templates/gititemcommit.qtpl:19 qs422016 := string(qb422016.B) -//line gititemcommit.qtpl:19 +//line templates/gititemcommit.qtpl:19 qt422016.ReleaseByteBuffer(qb422016) -//line gititemcommit.qtpl:19 +//line templates/gititemcommit.qtpl:19 return qs422016 -//line gititemcommit.qtpl:19 +//line templates/gititemcommit.qtpl:19 } diff --git a/templates/gititemlog.qtpl.go b/templates/gititemlog.qtpl.go index bb37a08..20fc1f5 100644 --- a/templates/gititemlog.qtpl.go +++ b/templates/gititemlog.qtpl.go @@ -1,110 +1,110 @@ // Code generated by qtc from "gititemlog.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -//line gititemlog.qtpl:1 +//line templates/gititemlog.qtpl:1 package templates -//line gititemlog.qtpl:1 +//line templates/gititemlog.qtpl:1 import "github.com/go-git/go-git/v5/plumbing/object" -//line gititemlog.qtpl:3 +//line templates/gititemlog.qtpl:3 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line gititemlog.qtpl:3 +//line templates/gititemlog.qtpl:3 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line gititemlog.qtpl:4 +//line templates/gititemlog.qtpl:4 type GitItemLogPage struct { Commits []*object.Commit } -//line gititemlog.qtpl:9 +//line templates/gititemlog.qtpl:9 func (g *GitItemLogPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) { -//line gititemlog.qtpl:9 +//line templates/gititemlog.qtpl:9 StreamGitItemNav(qw422016, name, ref, Log) -//line gititemlog.qtpl:9 +//line templates/gititemlog.qtpl:9 } -//line gititemlog.qtpl:9 +//line templates/gititemlog.qtpl:9 func (g *GitItemLogPage) WriteNav(qq422016 qtio422016.Writer, name, ref string) { -//line gititemlog.qtpl:9 +//line templates/gititemlog.qtpl:9 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititemlog.qtpl:9 +//line templates/gititemlog.qtpl:9 g.StreamNav(qw422016, name, ref) -//line gititemlog.qtpl:9 +//line templates/gititemlog.qtpl:9 qt422016.ReleaseWriter(qw422016) -//line gititemlog.qtpl:9 +//line templates/gititemlog.qtpl:9 } -//line gititemlog.qtpl:9 +//line templates/gititemlog.qtpl:9 func (g *GitItemLogPage) Nav(name, ref string) string { -//line gititemlog.qtpl:9 +//line templates/gititemlog.qtpl:9 qb422016 := qt422016.AcquireByteBuffer() -//line gititemlog.qtpl:9 +//line templates/gititemlog.qtpl:9 g.WriteNav(qb422016, name, ref) -//line gititemlog.qtpl:9 +//line templates/gititemlog.qtpl:9 qs422016 := string(qb422016.B) -//line gititemlog.qtpl:9 +//line templates/gititemlog.qtpl:9 qt422016.ReleaseByteBuffer(qb422016) -//line gititemlog.qtpl:9 +//line templates/gititemlog.qtpl:9 return qs422016 -//line gititemlog.qtpl:9 +//line templates/gititemlog.qtpl:9 } -//line gititemlog.qtpl:11 +//line templates/gititemlog.qtpl:11 func (g *GitItemLogPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) { -//line gititemlog.qtpl:11 +//line templates/gititemlog.qtpl:11 qw422016.N().S(` <div class="event-list"> `) -//line gititemlog.qtpl:13 +//line templates/gititemlog.qtpl:13 for _, c := range g.Commits { -//line gititemlog.qtpl:13 +//line templates/gititemlog.qtpl:13 qw422016.N().S(` `) -//line gititemlog.qtpl:14 +//line templates/gititemlog.qtpl:14 StreamCommit(qw422016, name, c, false) -//line gititemlog.qtpl:14 +//line templates/gititemlog.qtpl:14 qw422016.N().S(` `) -//line gititemlog.qtpl:15 +//line templates/gititemlog.qtpl:15 } -//line gititemlog.qtpl:15 +//line templates/gititemlog.qtpl:15 qw422016.N().S(` </div> `) -//line gititemlog.qtpl:17 +//line templates/gititemlog.qtpl:17 } -//line gititemlog.qtpl:17 +//line templates/gititemlog.qtpl:17 func (g *GitItemLogPage) WriteGitContent(qq422016 qtio422016.Writer, name, ref string) { -//line gititemlog.qtpl:17 +//line templates/gititemlog.qtpl:17 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititemlog.qtpl:17 +//line templates/gititemlog.qtpl:17 g.StreamGitContent(qw422016, name, ref) -//line gititemlog.qtpl:17 +//line templates/gititemlog.qtpl:17 qt422016.ReleaseWriter(qw422016) -//line gititemlog.qtpl:17 +//line templates/gititemlog.qtpl:17 } -//line gititemlog.qtpl:17 +//line templates/gititemlog.qtpl:17 func (g *GitItemLogPage) GitContent(name, ref string) string { -//line gititemlog.qtpl:17 +//line templates/gititemlog.qtpl:17 qb422016 := qt422016.AcquireByteBuffer() -//line gititemlog.qtpl:17 +//line templates/gititemlog.qtpl:17 g.WriteGitContent(qb422016, name, ref) -//line gititemlog.qtpl:17 +//line templates/gititemlog.qtpl:17 qs422016 := string(qb422016.B) -//line gititemlog.qtpl:17 +//line templates/gititemlog.qtpl:17 qt422016.ReleaseByteBuffer(qb422016) -//line gititemlog.qtpl:17 +//line templates/gititemlog.qtpl:17 return qs422016 -//line gititemlog.qtpl:17 +//line templates/gititemlog.qtpl:17 } diff --git a/templates/gititemrefs.qtpl.go b/templates/gititemrefs.qtpl.go index d54301d..eb1b657 100644 --- a/templates/gititemrefs.qtpl.go +++ b/templates/gititemrefs.qtpl.go @@ -1,160 +1,160 @@ // Code generated by qtc from "gititemrefs.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -//line gititemrefs.qtpl:1 +//line templates/gititemrefs.qtpl:1 package templates -//line gititemrefs.qtpl:1 +//line templates/gititemrefs.qtpl:1 import "github.com/go-git/go-git/v5/plumbing" -//line gititemrefs.qtpl:2 +//line templates/gititemrefs.qtpl:2 import "git.gabrielgio.me/cerrado/pkg/git" -//line gititemrefs.qtpl:4 +//line templates/gititemrefs.qtpl:4 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line gititemrefs.qtpl:4 +//line templates/gititemrefs.qtpl:4 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line gititemrefs.qtpl:5 +//line templates/gititemrefs.qtpl:5 type GitItemRefsPage struct { Tags []*git.TagReference Branches []*plumbing.Reference } -//line gititemrefs.qtpl:11 +//line templates/gititemrefs.qtpl:11 func (g *GitItemRefsPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) { -//line gititemrefs.qtpl:11 +//line templates/gititemrefs.qtpl:11 StreamGitItemNav(qw422016, name, ref, Refs) -//line gititemrefs.qtpl:11 +//line templates/gititemrefs.qtpl:11 } -//line gititemrefs.qtpl:11 +//line templates/gititemrefs.qtpl:11 func (g *GitItemRefsPage) WriteNav(qq422016 qtio422016.Writer, name, ref string) { -//line gititemrefs.qtpl:11 +//line templates/gititemrefs.qtpl:11 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititemrefs.qtpl:11 +//line templates/gititemrefs.qtpl:11 g.StreamNav(qw422016, name, ref) -//line gititemrefs.qtpl:11 +//line templates/gititemrefs.qtpl:11 qt422016.ReleaseWriter(qw422016) -//line gititemrefs.qtpl:11 +//line templates/gititemrefs.qtpl:11 } -//line gititemrefs.qtpl:11 +//line templates/gititemrefs.qtpl:11 func (g *GitItemRefsPage) Nav(name, ref string) string { -//line gititemrefs.qtpl:11 +//line templates/gititemrefs.qtpl:11 qb422016 := qt422016.AcquireByteBuffer() -//line gititemrefs.qtpl:11 +//line templates/gititemrefs.qtpl:11 g.WriteNav(qb422016, name, ref) -//line gititemrefs.qtpl:11 +//line templates/gititemrefs.qtpl:11 qs422016 := string(qb422016.B) -//line gititemrefs.qtpl:11 +//line templates/gititemrefs.qtpl:11 qt422016.ReleaseByteBuffer(qb422016) -//line gititemrefs.qtpl:11 +//line templates/gititemrefs.qtpl:11 return qs422016 -//line gititemrefs.qtpl:11 +//line templates/gititemrefs.qtpl:11 } -//line gititemrefs.qtpl:13 +//line templates/gititemrefs.qtpl:13 func (g *GitItemRefsPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) { -//line gititemrefs.qtpl:13 +//line templates/gititemrefs.qtpl:13 qw422016.N().S(` <div class="row"> <div class="col-md-8"> `) -//line gititemrefs.qtpl:16 +//line templates/gititemrefs.qtpl:16 StreamListTags(qw422016, name, g.Tags) -//line gititemrefs.qtpl:16 +//line templates/gititemrefs.qtpl:16 qw422016.N().S(` </div> <div class="col-md-4"> <div class="event-list"> `) -//line gititemrefs.qtpl:20 +//line templates/gititemrefs.qtpl:20 for _, b := range g.Branches { -//line gititemrefs.qtpl:20 +//line templates/gititemrefs.qtpl:20 qw422016.N().S(` <div class="row event"> <div class="col-4"> `) -//line gititemrefs.qtpl:23 +//line templates/gititemrefs.qtpl:23 qw422016.E().S(b.Name().Short()) -//line gititemrefs.qtpl:23 +//line templates/gititemrefs.qtpl:23 qw422016.N().S(` </div> <div class="col-8"> <div class="float-end"> <a href="/`) -//line gititemrefs.qtpl:27 +//line templates/gititemrefs.qtpl:27 qw422016.E().S(name) -//line gititemrefs.qtpl:27 +//line templates/gititemrefs.qtpl:27 qw422016.N().S(`/archive/`) -//line gititemrefs.qtpl:27 +//line templates/gititemrefs.qtpl:27 qw422016.E().S(b.Name().Short()) -//line gititemrefs.qtpl:27 +//line templates/gititemrefs.qtpl:27 qw422016.N().S(`.tar.gz">tar.gz</a> <a href="/`) -//line gititemrefs.qtpl:28 +//line templates/gititemrefs.qtpl:28 qw422016.E().S(name) -//line gititemrefs.qtpl:28 +//line templates/gititemrefs.qtpl:28 qw422016.N().S(`/tree/`) -//line gititemrefs.qtpl:28 +//line templates/gititemrefs.qtpl:28 qw422016.E().S(b.Name().Short()) -//line gititemrefs.qtpl:28 +//line templates/gititemrefs.qtpl:28 qw422016.N().S(`/">tree</a> <a href="/`) -//line gititemrefs.qtpl:29 +//line templates/gititemrefs.qtpl:29 qw422016.E().S(name) -//line gititemrefs.qtpl:29 +//line templates/gititemrefs.qtpl:29 qw422016.N().S(`/log/`) -//line gititemrefs.qtpl:29 +//line templates/gititemrefs.qtpl:29 qw422016.E().S(b.Name().Short()) -//line gititemrefs.qtpl:29 +//line templates/gititemrefs.qtpl:29 qw422016.N().S(`/">log</a> </div> </div> </div> `) -//line gititemrefs.qtpl:33 +//line templates/gititemrefs.qtpl:33 } -//line gititemrefs.qtpl:33 +//line templates/gititemrefs.qtpl:33 qw422016.N().S(` </div> </div> </div> `) -//line gititemrefs.qtpl:37 +//line templates/gititemrefs.qtpl:37 } -//line gititemrefs.qtpl:37 +//line templates/gititemrefs.qtpl:37 func (g *GitItemRefsPage) WriteGitContent(qq422016 qtio422016.Writer, name, ref string) { -//line gititemrefs.qtpl:37 +//line templates/gititemrefs.qtpl:37 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititemrefs.qtpl:37 +//line templates/gititemrefs.qtpl:37 g.StreamGitContent(qw422016, name, ref) -//line gititemrefs.qtpl:37 +//line templates/gititemrefs.qtpl:37 qt422016.ReleaseWriter(qw422016) -//line gititemrefs.qtpl:37 +//line templates/gititemrefs.qtpl:37 } -//line gititemrefs.qtpl:37 +//line templates/gititemrefs.qtpl:37 func (g *GitItemRefsPage) GitContent(name, ref string) string { -//line gititemrefs.qtpl:37 +//line templates/gititemrefs.qtpl:37 qb422016 := qt422016.AcquireByteBuffer() -//line gititemrefs.qtpl:37 +//line templates/gititemrefs.qtpl:37 g.WriteGitContent(qb422016, name, ref) -//line gititemrefs.qtpl:37 +//line templates/gititemrefs.qtpl:37 qs422016 := string(qb422016.B) -//line gititemrefs.qtpl:37 +//line templates/gititemrefs.qtpl:37 qt422016.ReleaseByteBuffer(qb422016) -//line gititemrefs.qtpl:37 +//line templates/gititemrefs.qtpl:37 return qs422016 -//line gititemrefs.qtpl:37 +//line templates/gititemrefs.qtpl:37 } diff --git a/templates/gititemsummary.qtpl.go b/templates/gititemsummary.qtpl.go index d70823e..41d5b67 100644 --- a/templates/gititemsummary.qtpl.go +++ b/templates/gititemsummary.qtpl.go @@ -1,134 +1,134 @@ // Code generated by qtc from "gititemsummary.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -//line gititemsummary.qtpl:1 +//line templates/gititemsummary.qtpl:1 package templates -//line gititemsummary.qtpl:1 +//line templates/gititemsummary.qtpl:1 import "github.com/go-git/go-git/v5/plumbing" -//line gititemsummary.qtpl:2 +//line templates/gititemsummary.qtpl:2 import "github.com/go-git/go-git/v5/plumbing/object" -//line gititemsummary.qtpl:3 +//line templates/gititemsummary.qtpl:3 import "git.gabrielgio.me/cerrado/pkg/git" -//line gititemsummary.qtpl:5 +//line templates/gititemsummary.qtpl:5 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line gititemsummary.qtpl:5 +//line templates/gititemsummary.qtpl:5 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line gititemsummary.qtpl:6 +//line templates/gititemsummary.qtpl:6 type GitItemSummaryPage struct { Tags []*git.TagReference Branches []*plumbing.Reference Commits []*object.Commit } -//line gititemsummary.qtpl:13 +//line templates/gititemsummary.qtpl:13 func (g *GitItemSummaryPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) { -//line gititemsummary.qtpl:13 +//line templates/gititemsummary.qtpl:13 StreamGitItemNav(qw422016, name, ref, Summary) -//line gititemsummary.qtpl:13 +//line templates/gititemsummary.qtpl:13 } -//line gititemsummary.qtpl:13 +//line templates/gititemsummary.qtpl:13 func (g *GitItemSummaryPage) WriteNav(qq422016 qtio422016.Writer, name, ref string) { -//line gititemsummary.qtpl:13 +//line templates/gititemsummary.qtpl:13 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititemsummary.qtpl:13 +//line templates/gititemsummary.qtpl:13 g.StreamNav(qw422016, name, ref) -//line gititemsummary.qtpl:13 +//line templates/gititemsummary.qtpl:13 qt422016.ReleaseWriter(qw422016) -//line gititemsummary.qtpl:13 +//line templates/gititemsummary.qtpl:13 } -//line gititemsummary.qtpl:13 +//line templates/gititemsummary.qtpl:13 func (g *GitItemSummaryPage) Nav(name, ref string) string { -//line gititemsummary.qtpl:13 +//line templates/gititemsummary.qtpl:13 qb422016 := qt422016.AcquireByteBuffer() -//line gititemsummary.qtpl:13 +//line templates/gititemsummary.qtpl:13 g.WriteNav(qb422016, name, ref) -//line gititemsummary.qtpl:13 +//line templates/gititemsummary.qtpl:13 qs422016 := string(qb422016.B) -//line gititemsummary.qtpl:13 +//line templates/gititemsummary.qtpl:13 qt422016.ReleaseByteBuffer(qb422016) -//line gititemsummary.qtpl:13 +//line templates/gititemsummary.qtpl:13 return qs422016 -//line gititemsummary.qtpl:13 +//line templates/gititemsummary.qtpl:13 } -//line gititemsummary.qtpl:15 +//line templates/gititemsummary.qtpl:15 func (g *GitItemSummaryPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) { -//line gititemsummary.qtpl:15 +//line templates/gititemsummary.qtpl:15 qw422016.N().S(` <div class="row"> <div class="col-md-8"> `) -//line gititemsummary.qtpl:18 +//line templates/gititemsummary.qtpl:18 StreamListTags(qw422016, name, g.Tags) -//line gititemsummary.qtpl:18 +//line templates/gititemsummary.qtpl:18 qw422016.N().S(` </div> <div class="col-md-4"> <div class="event-list"> `) -//line gititemsummary.qtpl:22 +//line templates/gititemsummary.qtpl:22 for _, b := range g.Branches { -//line gititemsummary.qtpl:22 +//line templates/gititemsummary.qtpl:22 qw422016.N().S(` <div class="row event"> <div class="col-4"> `) -//line gititemsummary.qtpl:25 +//line templates/gititemsummary.qtpl:25 qw422016.E().S(b.Name().Short()) -//line gititemsummary.qtpl:25 +//line templates/gititemsummary.qtpl:25 qw422016.N().S(` </div> <div class="col-8"> <div class="float-end"> <a href="/`) -//line gititemsummary.qtpl:29 +//line templates/gititemsummary.qtpl:29 qw422016.E().S(name) -//line gititemsummary.qtpl:29 +//line templates/gititemsummary.qtpl:29 qw422016.N().S(`/archive/`) -//line gititemsummary.qtpl:29 +//line templates/gititemsummary.qtpl:29 qw422016.E().S(b.Name().Short()) -//line gititemsummary.qtpl:29 +//line templates/gititemsummary.qtpl:29 qw422016.N().S(`.tar.gz">tar.gz</a> <a href="/`) -//line gititemsummary.qtpl:30 +//line templates/gititemsummary.qtpl:30 qw422016.E().S(name) -//line gititemsummary.qtpl:30 +//line templates/gititemsummary.qtpl:30 qw422016.N().S(`/tree/`) -//line gititemsummary.qtpl:30 +//line templates/gititemsummary.qtpl:30 qw422016.E().S(b.Name().Short()) -//line gititemsummary.qtpl:30 +//line templates/gititemsummary.qtpl:30 qw422016.N().S(`/">tree</a> <a href="/`) -//line gititemsummary.qtpl:31 +//line templates/gititemsummary.qtpl:31 qw422016.E().S(name) -//line gititemsummary.qtpl:31 +//line templates/gititemsummary.qtpl:31 qw422016.N().S(`/log/`) -//line gititemsummary.qtpl:31 +//line templates/gititemsummary.qtpl:31 qw422016.E().S(b.Name().Short()) -//line gititemsummary.qtpl:31 +//line templates/gititemsummary.qtpl:31 qw422016.N().S(`/">log</a> </div> </div> </div> `) -//line gititemsummary.qtpl:35 +//line templates/gititemsummary.qtpl:35 } -//line gititemsummary.qtpl:35 +//line templates/gititemsummary.qtpl:35 qw422016.N().S(` </div> </div> @@ -136,48 +136,48 @@ func (g *GitItemSummaryPage) StreamGitContent(qw422016 *qt422016.Writer, name, r <div class="row"> <div class="event-list"> `) -//line gititemsummary.qtpl:41 +//line templates/gititemsummary.qtpl:41 for _, c := range g.Commits { -//line gititemsummary.qtpl:41 +//line templates/gititemsummary.qtpl:41 qw422016.N().S(` `) -//line gititemsummary.qtpl:42 +//line templates/gititemsummary.qtpl:42 StreamCommit(qw422016, name, c, false) -//line gititemsummary.qtpl:42 +//line templates/gititemsummary.qtpl:42 qw422016.N().S(` `) -//line gititemsummary.qtpl:43 +//line templates/gititemsummary.qtpl:43 } -//line gititemsummary.qtpl:43 +//line templates/gititemsummary.qtpl:43 qw422016.N().S(` </div> </div> `) -//line gititemsummary.qtpl:46 +//line templates/gititemsummary.qtpl:46 } -//line gititemsummary.qtpl:46 +//line templates/gititemsummary.qtpl:46 func (g *GitItemSummaryPage) WriteGitContent(qq422016 qtio422016.Writer, name, ref string) { -//line gititemsummary.qtpl:46 +//line templates/gititemsummary.qtpl:46 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititemsummary.qtpl:46 +//line templates/gititemsummary.qtpl:46 g.StreamGitContent(qw422016, name, ref) -//line gititemsummary.qtpl:46 +//line templates/gititemsummary.qtpl:46 qt422016.ReleaseWriter(qw422016) -//line gititemsummary.qtpl:46 +//line templates/gititemsummary.qtpl:46 } -//line gititemsummary.qtpl:46 +//line templates/gititemsummary.qtpl:46 func (g *GitItemSummaryPage) GitContent(name, ref string) string { -//line gititemsummary.qtpl:46 +//line templates/gititemsummary.qtpl:46 qb422016 := qt422016.AcquireByteBuffer() -//line gititemsummary.qtpl:46 +//line templates/gititemsummary.qtpl:46 g.WriteGitContent(qb422016, name, ref) -//line gititemsummary.qtpl:46 +//line templates/gititemsummary.qtpl:46 qs422016 := string(qb422016.B) -//line gititemsummary.qtpl:46 +//line templates/gititemsummary.qtpl:46 qt422016.ReleaseByteBuffer(qb422016) -//line gititemsummary.qtpl:46 +//line templates/gititemsummary.qtpl:46 return qs422016 -//line gititemsummary.qtpl:46 +//line templates/gititemsummary.qtpl:46 } diff --git a/templates/gititemtree.qtpl.go b/templates/gititemtree.qtpl.go index f26b5ca..9116cd7 100644 --- a/templates/gititemtree.qtpl.go +++ b/templates/gititemtree.qtpl.go @@ -1,45 +1,45 @@ // Code generated by qtc from "gititemtree.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -//line gititemtree.qtpl:1 +//line templates/gititemtree.qtpl:1 package templates -//line gititemtree.qtpl:1 +//line templates/gititemtree.qtpl:1 import "git.gabrielgio.me/cerrado/pkg/u" -//line gititemtree.qtpl:2 +//line templates/gititemtree.qtpl:2 import "github.com/go-git/go-git/v5/plumbing/object" -//line gititemtree.qtpl:3 +//line templates/gititemtree.qtpl:3 import "github.com/go-git/go-git/v5/plumbing/filemode" -//line gititemtree.qtpl:5 +//line templates/gititemtree.qtpl:5 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line gititemtree.qtpl:5 +//line templates/gititemtree.qtpl:5 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line gititemtree.qtpl:5 +//line templates/gititemtree.qtpl:5 type GitItemTreePage struct { Path []string Tree *object.Tree } -//line gititemtree.qtpl:11 +//line templates/gititemtree.qtpl:11 const ( Folder = "tree" Blob = "blob" Root = "" ) -//line gititemtree.qtpl:18 +//line templates/gititemtree.qtpl:18 func url(name, mode, ref, filename string, path []string) string { return u.NewPathing(). AddPath(name). @@ -50,200 +50,200 @@ func url(name, mode, ref, filename string, path []string) string { Done() } -//line gititemtree.qtpl:29 +//line templates/gititemtree.qtpl:29 func (g *GitItemTreePage) StreamNav(qw422016 *qt422016.Writer, name, ref string) { -//line gititemtree.qtpl:29 +//line templates/gititemtree.qtpl:29 StreamGitItemNav(qw422016, name, ref, Tree) -//line gititemtree.qtpl:29 +//line templates/gititemtree.qtpl:29 } -//line gititemtree.qtpl:29 +//line templates/gititemtree.qtpl:29 func (g *GitItemTreePage) WriteNav(qq422016 qtio422016.Writer, name, ref string) { -//line gititemtree.qtpl:29 +//line templates/gititemtree.qtpl:29 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititemtree.qtpl:29 +//line templates/gititemtree.qtpl:29 g.StreamNav(qw422016, name, ref) -//line gititemtree.qtpl:29 +//line templates/gititemtree.qtpl:29 qt422016.ReleaseWriter(qw422016) -//line gititemtree.qtpl:29 +//line templates/gititemtree.qtpl:29 } -//line gititemtree.qtpl:29 +//line templates/gititemtree.qtpl:29 func (g *GitItemTreePage) Nav(name, ref string) string { -//line gititemtree.qtpl:29 +//line templates/gititemtree.qtpl:29 qb422016 := qt422016.AcquireByteBuffer() -//line gititemtree.qtpl:29 +//line templates/gititemtree.qtpl:29 g.WriteNav(qb422016, name, ref) -//line gititemtree.qtpl:29 +//line templates/gititemtree.qtpl:29 qs422016 := string(qb422016.B) -//line gititemtree.qtpl:29 +//line templates/gititemtree.qtpl:29 qt422016.ReleaseByteBuffer(qb422016) -//line gititemtree.qtpl:29 +//line templates/gititemtree.qtpl:29 return qs422016 -//line gititemtree.qtpl:29 +//line templates/gititemtree.qtpl:29 } -//line gititemtree.qtpl:31 +//line templates/gititemtree.qtpl:31 func (g *GitItemTreePage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) { -//line gititemtree.qtpl:31 +//line templates/gititemtree.qtpl:31 qw422016.N().S(` <div class="pathing"> `) -//line gititemtree.qtpl:34 +//line templates/gititemtree.qtpl:34 if len(g.Path) != 0 { -//line gititemtree.qtpl:34 +//line templates/gititemtree.qtpl:34 qw422016.N().S(`<a href="`) -//line gititemtree.qtpl:35 +//line templates/gititemtree.qtpl:35 qw422016.E().S(url(name, Folder, ref, Root, []string{})) -//line gititemtree.qtpl:35 +//line templates/gititemtree.qtpl:35 qw422016.N().S(`">root/</a>`) -//line gititemtree.qtpl:36 +//line templates/gititemtree.qtpl:36 for i, e := range g.Path[:len(g.Path)-1] { -//line gititemtree.qtpl:36 +//line templates/gititemtree.qtpl:36 qw422016.N().S(`<a href="`) -//line gititemtree.qtpl:37 +//line templates/gititemtree.qtpl:37 qw422016.E().S(url(name, Folder, ref, Root, g.Path[:1+i])) -//line gititemtree.qtpl:37 +//line templates/gititemtree.qtpl:37 qw422016.N().S(`">`) -//line gititemtree.qtpl:37 +//line templates/gititemtree.qtpl:37 qw422016.E().S(e) -//line gititemtree.qtpl:37 +//line templates/gititemtree.qtpl:37 qw422016.N().S(`/</a>`) -//line gititemtree.qtpl:38 +//line templates/gititemtree.qtpl:38 } -//line gititemtree.qtpl:38 +//line templates/gititemtree.qtpl:38 qw422016.N().S(`<a>`) -//line gititemtree.qtpl:39 +//line templates/gititemtree.qtpl:39 qw422016.E().S(u.LastOrZero(g.Path)) -//line gititemtree.qtpl:39 +//line templates/gititemtree.qtpl:39 qw422016.N().S(`</a>`) -//line gititemtree.qtpl:40 +//line templates/gititemtree.qtpl:40 } else { -//line gititemtree.qtpl:40 +//line templates/gititemtree.qtpl:40 qw422016.N().S(`<a>root/</a>`) -//line gititemtree.qtpl:42 +//line templates/gititemtree.qtpl:42 } -//line gititemtree.qtpl:43 +//line templates/gititemtree.qtpl:43 qw422016.N().S(` </div> <div class="row"> <div class="col-md-12"> <div class="tree-list"> `) -//line gititemtree.qtpl:48 +//line templates/gititemtree.qtpl:48 if len(g.Path) != 0 { -//line gititemtree.qtpl:48 +//line templates/gititemtree.qtpl:48 qw422016.N().S(` <div class="mode"><a href="`) -//line gititemtree.qtpl:49 +//line templates/gititemtree.qtpl:49 qw422016.E().S(url(name, Folder, ref, g.Path[len(g.Path)-1], g.Path[:len(g.Path)-1])) -//line gititemtree.qtpl:49 +//line templates/gititemtree.qtpl:49 qw422016.N().S(`">..</a></div> <div class="name tree"></div> <div class="commit"></div> <div class="date"></div> <div class="size"></div> `) -//line gititemtree.qtpl:54 +//line templates/gititemtree.qtpl:54 } -//line gititemtree.qtpl:54 +//line templates/gititemtree.qtpl:54 qw422016.N().S(` `) -//line gititemtree.qtpl:55 +//line templates/gititemtree.qtpl:55 for _, e := range g.Tree.Entries { -//line gititemtree.qtpl:55 +//line templates/gititemtree.qtpl:55 qw422016.N().S(` `) -//line gititemtree.qtpl:56 +//line templates/gititemtree.qtpl:56 if e.Mode.IsFile() { -//line gititemtree.qtpl:56 +//line templates/gititemtree.qtpl:56 qw422016.N().S(` <div class="mode">`) -//line gititemtree.qtpl:57 +//line templates/gititemtree.qtpl:57 qw422016.E().S(Ignore(e.Mode.ToOSFileMode()).String()) -//line gititemtree.qtpl:57 +//line templates/gititemtree.qtpl:57 qw422016.N().S(`</div> <div class="name blob"><a href="`) -//line gititemtree.qtpl:58 +//line templates/gititemtree.qtpl:58 qw422016.E().S(url(name, Blob, ref, e.Name, g.Path)) -//line gititemtree.qtpl:58 +//line templates/gititemtree.qtpl:58 qw422016.N().S(`">`) -//line gititemtree.qtpl:58 +//line templates/gititemtree.qtpl:58 qw422016.E().S(e.Name) -//line gititemtree.qtpl:58 +//line templates/gititemtree.qtpl:58 qw422016.N().S(`</a></div> `) -//line gititemtree.qtpl:59 +//line templates/gititemtree.qtpl:59 } else if e.Mode == filemode.Submodule { -//line gititemtree.qtpl:59 +//line templates/gititemtree.qtpl:59 qw422016.N().S(` <div class="mode">m---------</div> <div class="name tree">`) -//line gititemtree.qtpl:61 +//line templates/gititemtree.qtpl:61 qw422016.E().S(e.Name) -//line gititemtree.qtpl:61 +//line templates/gititemtree.qtpl:61 qw422016.N().S(` (submodule)</div> `) -//line gititemtree.qtpl:62 +//line templates/gititemtree.qtpl:62 } else { -//line gititemtree.qtpl:62 +//line templates/gititemtree.qtpl:62 qw422016.N().S(` <div class="mode">d---------</div> <div class="name tree"><a href="`) -//line gititemtree.qtpl:64 +//line templates/gititemtree.qtpl:64 qw422016.E().S(url(name, Folder, ref, e.Name, g.Path)) -//line gititemtree.qtpl:64 +//line templates/gititemtree.qtpl:64 qw422016.N().S(`">`) -//line gititemtree.qtpl:64 +//line templates/gititemtree.qtpl:64 qw422016.E().S(e.Name) -//line gititemtree.qtpl:64 +//line templates/gititemtree.qtpl:64 qw422016.N().S(`</a></div> `) -//line gititemtree.qtpl:65 +//line templates/gititemtree.qtpl:65 } -//line gititemtree.qtpl:65 +//line templates/gititemtree.qtpl:65 qw422016.N().S(` <div class="commit"></div> <div class="date"></div> <div class="size">`) -//line gititemtree.qtpl:68 +//line templates/gititemtree.qtpl:68 qw422016.N().DL(Ignore(g.Tree.Size(e.Name))) -//line gititemtree.qtpl:68 +//line templates/gititemtree.qtpl:68 qw422016.N().S(` KiB</div> `) -//line gititemtree.qtpl:69 +//line templates/gititemtree.qtpl:69 } -//line gititemtree.qtpl:69 +//line templates/gititemtree.qtpl:69 qw422016.N().S(` </div> </div> </div> `) -//line gititemtree.qtpl:73 +//line templates/gititemtree.qtpl:73 } -//line gititemtree.qtpl:73 +//line templates/gititemtree.qtpl:73 func (g *GitItemTreePage) WriteGitContent(qq422016 qtio422016.Writer, name, ref string) { -//line gititemtree.qtpl:73 +//line templates/gititemtree.qtpl:73 qw422016 := qt422016.AcquireWriter(qq422016) -//line gititemtree.qtpl:73 +//line templates/gititemtree.qtpl:73 g.StreamGitContent(qw422016, name, ref) -//line gititemtree.qtpl:73 +//line templates/gititemtree.qtpl:73 qt422016.ReleaseWriter(qw422016) -//line gititemtree.qtpl:73 +//line templates/gititemtree.qtpl:73 } -//line gititemtree.qtpl:73 +//line templates/gititemtree.qtpl:73 func (g *GitItemTreePage) GitContent(name, ref string) string { -//line gititemtree.qtpl:73 +//line templates/gititemtree.qtpl:73 qb422016 := qt422016.AcquireByteBuffer() -//line gititemtree.qtpl:73 +//line templates/gititemtree.qtpl:73 g.WriteGitContent(qb422016, name, ref) -//line gititemtree.qtpl:73 +//line templates/gititemtree.qtpl:73 qs422016 := string(qb422016.B) -//line gititemtree.qtpl:73 +//line templates/gititemtree.qtpl:73 qt422016.ReleaseByteBuffer(qb422016) -//line gititemtree.qtpl:73 +//line templates/gititemtree.qtpl:73 return qs422016 -//line gititemtree.qtpl:73 +//line templates/gititemtree.qtpl:73 } diff --git a/templates/gitlist.qtpl.go b/templates/gitlist.qtpl.go index f38c404..e2644d0 100644 --- a/templates/gitlist.qtpl.go +++ b/templates/gitlist.qtpl.go @@ -1,228 +1,228 @@ // Code generated by qtc from "gitlist.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -//line gitlist.qtpl:1 +//line templates/gitlist.qtpl:1 package templates -//line gitlist.qtpl:1 +//line templates/gitlist.qtpl:1 import "git.gabrielgio.me/cerrado/pkg/service" -//line gitlist.qtpl:3 +//line templates/gitlist.qtpl:3 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line gitlist.qtpl:3 +//line templates/gitlist.qtpl:3 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line gitlist.qtpl:4 +//line templates/gitlist.qtpl:4 type GitListPage struct { Respositories []*service.Repository About []byte } -//line gitlist.qtpl:10 +//line templates/gitlist.qtpl:10 func (p *GitListPage) StreamTitle(qw422016 *qt422016.Writer) { -//line gitlist.qtpl:10 +//line templates/gitlist.qtpl:10 qw422016.N().S(`Git | List`) -//line gitlist.qtpl:10 +//line templates/gitlist.qtpl:10 } -//line gitlist.qtpl:10 +//line templates/gitlist.qtpl:10 func (p *GitListPage) WriteTitle(qq422016 qtio422016.Writer) { -//line gitlist.qtpl:10 +//line templates/gitlist.qtpl:10 qw422016 := qt422016.AcquireWriter(qq422016) -//line gitlist.qtpl:10 +//line templates/gitlist.qtpl:10 p.StreamTitle(qw422016) -//line gitlist.qtpl:10 +//line templates/gitlist.qtpl:10 qt422016.ReleaseWriter(qw422016) -//line gitlist.qtpl:10 +//line templates/gitlist.qtpl:10 } -//line gitlist.qtpl:10 +//line templates/gitlist.qtpl:10 func (p *GitListPage) Title() string { -//line gitlist.qtpl:10 +//line templates/gitlist.qtpl:10 qb422016 := qt422016.AcquireByteBuffer() -//line gitlist.qtpl:10 +//line templates/gitlist.qtpl:10 p.WriteTitle(qb422016) -//line gitlist.qtpl:10 +//line templates/gitlist.qtpl:10 qs422016 := string(qb422016.B) -//line gitlist.qtpl:10 +//line templates/gitlist.qtpl:10 qt422016.ReleaseByteBuffer(qb422016) -//line gitlist.qtpl:10 +//line templates/gitlist.qtpl:10 return qs422016 -//line gitlist.qtpl:10 +//line templates/gitlist.qtpl:10 } -//line gitlist.qtpl:12 +//line templates/gitlist.qtpl:12 func (p *GitListPage) StreamNavbar(qw422016 *qt422016.Writer) { -//line gitlist.qtpl:12 +//line templates/gitlist.qtpl:12 StreamNavbar(qw422016, Git) -//line gitlist.qtpl:12 +//line templates/gitlist.qtpl:12 } -//line gitlist.qtpl:12 +//line templates/gitlist.qtpl:12 func (p *GitListPage) WriteNavbar(qq422016 qtio422016.Writer) { -//line gitlist.qtpl:12 +//line templates/gitlist.qtpl:12 qw422016 := qt422016.AcquireWriter(qq422016) -//line gitlist.qtpl:12 +//line templates/gitlist.qtpl:12 p.StreamNavbar(qw422016) -//line gitlist.qtpl:12 +//line templates/gitlist.qtpl:12 qt422016.ReleaseWriter(qw422016) -//line gitlist.qtpl:12 +//line templates/gitlist.qtpl:12 } -//line gitlist.qtpl:12 +//line templates/gitlist.qtpl:12 func (p *GitListPage) Navbar() string { -//line gitlist.qtpl:12 +//line templates/gitlist.qtpl:12 qb422016 := qt422016.AcquireByteBuffer() -//line gitlist.qtpl:12 +//line templates/gitlist.qtpl:12 p.WriteNavbar(qb422016) -//line gitlist.qtpl:12 +//line templates/gitlist.qtpl:12 qs422016 := string(qb422016.B) -//line gitlist.qtpl:12 +//line templates/gitlist.qtpl:12 qt422016.ReleaseByteBuffer(qb422016) -//line gitlist.qtpl:12 +//line templates/gitlist.qtpl:12 return qs422016 -//line gitlist.qtpl:12 +//line templates/gitlist.qtpl:12 } -//line gitlist.qtpl:14 +//line templates/gitlist.qtpl:14 func (p *GitListPage) StreamContent(qw422016 *qt422016.Writer) { -//line gitlist.qtpl:14 +//line templates/gitlist.qtpl:14 qw422016.N().S(` <div class="row"> <div class="col-md-6 order-last order-md-first"> <div class="event-list"> `) -//line gitlist.qtpl:18 +//line templates/gitlist.qtpl:18 for _, r := range p.Respositories { -//line gitlist.qtpl:18 +//line templates/gitlist.qtpl:18 qw422016.N().S(` <div class="event"> <h4> <a href="/`) -//line gitlist.qtpl:21 +//line templates/gitlist.qtpl:21 qw422016.E().S(r.Name) -//line gitlist.qtpl:21 +//line templates/gitlist.qtpl:21 qw422016.N().S(`/">`) -//line gitlist.qtpl:21 +//line templates/gitlist.qtpl:21 qw422016.E().S(r.Name) -//line gitlist.qtpl:21 +//line templates/gitlist.qtpl:21 qw422016.N().S(`</a> </h4> </hr> <p>`) -//line gitlist.qtpl:24 +//line templates/gitlist.qtpl:24 qw422016.E().S(r.Description) -//line gitlist.qtpl:24 +//line templates/gitlist.qtpl:24 qw422016.N().S(`</p> <p> <a href="/`) -//line gitlist.qtpl:26 +//line templates/gitlist.qtpl:26 qw422016.E().S(r.Name) -//line gitlist.qtpl:26 +//line templates/gitlist.qtpl:26 qw422016.N().S(`/log/`) -//line gitlist.qtpl:26 +//line templates/gitlist.qtpl:26 qw422016.E().S(r.Ref) -//line gitlist.qtpl:26 +//line templates/gitlist.qtpl:26 qw422016.N().S(`/">log</a> <a href="/`) -//line gitlist.qtpl:27 +//line templates/gitlist.qtpl:27 qw422016.E().S(r.Name) -//line gitlist.qtpl:27 +//line templates/gitlist.qtpl:27 qw422016.N().S(`/tree/`) -//line gitlist.qtpl:27 +//line templates/gitlist.qtpl:27 qw422016.E().S(r.Ref) -//line gitlist.qtpl:27 +//line templates/gitlist.qtpl:27 qw422016.N().S(`/">tree</a> <a href="/`) -//line gitlist.qtpl:28 +//line templates/gitlist.qtpl:28 qw422016.E().S(r.Name) -//line gitlist.qtpl:28 +//line templates/gitlist.qtpl:28 qw422016.N().S(`/refs/">refs</a> </p> </div> `) -//line gitlist.qtpl:31 +//line templates/gitlist.qtpl:31 } -//line gitlist.qtpl:31 +//line templates/gitlist.qtpl:31 qw422016.N().S(` </div> </div> <div id="about" class="col-md-4 order-first order-md-last"> `) -//line gitlist.qtpl:35 +//line templates/gitlist.qtpl:35 qw422016.N().Z(p.About) -//line gitlist.qtpl:35 +//line templates/gitlist.qtpl:35 qw422016.N().S(` </div> </div> `) -//line gitlist.qtpl:38 +//line templates/gitlist.qtpl:38 } -//line gitlist.qtpl:38 +//line templates/gitlist.qtpl:38 func (p *GitListPage) WriteContent(qq422016 qtio422016.Writer) { -//line gitlist.qtpl:38 +//line templates/gitlist.qtpl:38 qw422016 := qt422016.AcquireWriter(qq422016) -//line gitlist.qtpl:38 +//line templates/gitlist.qtpl:38 p.StreamContent(qw422016) -//line gitlist.qtpl:38 +//line templates/gitlist.qtpl:38 qt422016.ReleaseWriter(qw422016) -//line gitlist.qtpl:38 +//line templates/gitlist.qtpl:38 } -//line gitlist.qtpl:38 +//line templates/gitlist.qtpl:38 func (p *GitListPage) Content() string { -//line gitlist.qtpl:38 +//line templates/gitlist.qtpl:38 qb422016 := qt422016.AcquireByteBuffer() -//line gitlist.qtpl:38 +//line templates/gitlist.qtpl:38 p.WriteContent(qb422016) -//line gitlist.qtpl:38 +//line templates/gitlist.qtpl:38 qs422016 := string(qb422016.B) -//line gitlist.qtpl:38 +//line templates/gitlist.qtpl:38 qt422016.ReleaseByteBuffer(qb422016) -//line gitlist.qtpl:38 +//line templates/gitlist.qtpl:38 return qs422016 -//line gitlist.qtpl:38 +//line templates/gitlist.qtpl:38 } -//line gitlist.qtpl:40 +//line templates/gitlist.qtpl:40 func (p *GitListPage) StreamScript(qw422016 *qt422016.Writer) { -//line gitlist.qtpl:40 +//line templates/gitlist.qtpl:40 qw422016.N().S(` `) -//line gitlist.qtpl:41 +//line templates/gitlist.qtpl:41 } -//line gitlist.qtpl:41 +//line templates/gitlist.qtpl:41 func (p *GitListPage) WriteScript(qq422016 qtio422016.Writer) { -//line gitlist.qtpl:41 +//line templates/gitlist.qtpl:41 qw422016 := qt422016.AcquireWriter(qq422016) -//line gitlist.qtpl:41 +//line templates/gitlist.qtpl:41 p.StreamScript(qw422016) -//line gitlist.qtpl:41 +//line templates/gitlist.qtpl:41 qt422016.ReleaseWriter(qw422016) -//line gitlist.qtpl:41 +//line templates/gitlist.qtpl:41 } -//line gitlist.qtpl:41 +//line templates/gitlist.qtpl:41 func (p *GitListPage) Script() string { -//line gitlist.qtpl:41 +//line templates/gitlist.qtpl:41 qb422016 := qt422016.AcquireByteBuffer() -//line gitlist.qtpl:41 +//line templates/gitlist.qtpl:41 p.WriteScript(qb422016) -//line gitlist.qtpl:41 +//line templates/gitlist.qtpl:41 qs422016 := string(qb422016.B) -//line gitlist.qtpl:41 +//line templates/gitlist.qtpl:41 qt422016.ReleaseByteBuffer(qb422016) -//line gitlist.qtpl:41 +//line templates/gitlist.qtpl:41 return qs422016 -//line gitlist.qtpl:41 +//line templates/gitlist.qtpl:41 } diff --git a/templates/navbar.qtpl.go b/templates/navbar.qtpl.go index 806df94..5a27bb4 100644 --- a/templates/navbar.qtpl.go +++ b/templates/navbar.qtpl.go @@ -1,23 +1,23 @@ // Code generated by qtc from "navbar.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -//line navbar.qtpl:1 +//line templates/navbar.qtpl:1 package templates -//line navbar.qtpl:1 +//line templates/navbar.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line navbar.qtpl:1 +//line templates/navbar.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line navbar.qtpl:2 +//line templates/navbar.qtpl:2 type Selection int const ( @@ -27,7 +27,7 @@ const ( Config ) -//line navbar.qtpl:12 +//line templates/navbar.qtpl:12 type GitSelection int const ( @@ -38,211 +38,211 @@ const ( Tree ) -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 func streaminsertIfEqual(qw422016 *qt422016.Writer, s, d any) { -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 if s == d { -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 qw422016.N().S(` selected`) -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 } -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 } -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 func writeinsertIfEqual(qq422016 qtio422016.Writer, s, d any) { -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 qw422016 := qt422016.AcquireWriter(qq422016) -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 streaminsertIfEqual(qw422016, s, d) -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 qt422016.ReleaseWriter(qw422016) -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 } -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 func insertIfEqual(s, d any) string { -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 qb422016 := qt422016.AcquireByteBuffer() -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 writeinsertIfEqual(qb422016, s, d) -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 qs422016 := string(qb422016.B) -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 qt422016.ReleaseByteBuffer(qb422016) -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 return qs422016 -//line navbar.qtpl:22 +//line templates/navbar.qtpl:22 } -//line navbar.qtpl:24 +//line templates/navbar.qtpl:24 func StreamNavbar(qw422016 *qt422016.Writer, s Selection) { -//line navbar.qtpl:24 +//line templates/navbar.qtpl:24 qw422016.N().S(` <nav class="container navbar navbar-expand"> <div class="navbar-nav"> <a class="nav-link`) -//line navbar.qtpl:27 +//line templates/navbar.qtpl:27 streaminsertIfEqual(qw422016, s, Git) -//line navbar.qtpl:27 +//line templates/navbar.qtpl:27 qw422016.N().S(`" href="/">git</a> `) -//line navbar.qtpl:31 +//line templates/navbar.qtpl:31 qw422016.N().S(` `) -//line navbar.qtpl:35 +//line templates/navbar.qtpl:35 qw422016.N().S(` <a class="nav-link`) -//line navbar.qtpl:36 +//line templates/navbar.qtpl:36 streaminsertIfEqual(qw422016, s, Config) -//line navbar.qtpl:36 +//line templates/navbar.qtpl:36 qw422016.N().S(`" href="/config">config</a> </div> </nav> `) -//line navbar.qtpl:39 +//line templates/navbar.qtpl:39 } -//line navbar.qtpl:39 +//line templates/navbar.qtpl:39 func WriteNavbar(qq422016 qtio422016.Writer, s Selection) { -//line navbar.qtpl:39 +//line templates/navbar.qtpl:39 qw422016 := qt422016.AcquireWriter(qq422016) -//line navbar.qtpl:39 +//line templates/navbar.qtpl:39 StreamNavbar(qw422016, s) -//line navbar.qtpl:39 +//line templates/navbar.qtpl:39 qt422016.ReleaseWriter(qw422016) -//line navbar.qtpl:39 +//line templates/navbar.qtpl:39 } -//line navbar.qtpl:39 +//line templates/navbar.qtpl:39 func Navbar(s Selection) string { -//line navbar.qtpl:39 +//line templates/navbar.qtpl:39 qb422016 := qt422016.AcquireByteBuffer() -//line navbar.qtpl:39 +//line templates/navbar.qtpl:39 WriteNavbar(qb422016, s) -//line navbar.qtpl:39 +//line templates/navbar.qtpl:39 qs422016 := string(qb422016.B) -//line navbar.qtpl:39 +//line templates/navbar.qtpl:39 qt422016.ReleaseByteBuffer(qb422016) -//line navbar.qtpl:39 +//line templates/navbar.qtpl:39 return qs422016 -//line navbar.qtpl:39 +//line templates/navbar.qtpl:39 } -//line navbar.qtpl:41 +//line templates/navbar.qtpl:41 func StreamGitItemNav(qw422016 *qt422016.Writer, name, ref string, s GitSelection) { -//line navbar.qtpl:41 +//line templates/navbar.qtpl:41 qw422016.N().S(` <div class="row"> <h3 id="name">`) -//line navbar.qtpl:43 +//line templates/navbar.qtpl:43 qw422016.E().S(name) -//line navbar.qtpl:43 +//line templates/navbar.qtpl:43 qw422016.N().S(` `) -//line navbar.qtpl:43 +//line templates/navbar.qtpl:43 if ref != "" && (s == Log || s == Tree) { -//line navbar.qtpl:43 +//line templates/navbar.qtpl:43 qw422016.N().S(`@ `) -//line navbar.qtpl:43 +//line templates/navbar.qtpl:43 qw422016.E().S(ref) -//line navbar.qtpl:43 +//line templates/navbar.qtpl:43 } -//line navbar.qtpl:43 +//line templates/navbar.qtpl:43 qw422016.N().S(`</h3> </div> <div class="row"> <ul class="nav"> <li class="nav-item"> <a class="nav-link`) -//line navbar.qtpl:48 +//line templates/navbar.qtpl:48 streaminsertIfEqual(qw422016, s, Readme) -//line navbar.qtpl:48 +//line templates/navbar.qtpl:48 qw422016.N().S(`" aria-current="page" href="/`) -//line navbar.qtpl:48 +//line templates/navbar.qtpl:48 qw422016.E().S(name) -//line navbar.qtpl:48 +//line templates/navbar.qtpl:48 qw422016.N().S(`/about/">about</a> </li> <li class="nav-item"> <a class="nav-link`) -//line navbar.qtpl:51 +//line templates/navbar.qtpl:51 streaminsertIfEqual(qw422016, s, Summary) -//line navbar.qtpl:51 +//line templates/navbar.qtpl:51 qw422016.N().S(`" aria-current="page" href="/`) -//line navbar.qtpl:51 +//line templates/navbar.qtpl:51 qw422016.E().S(name) -//line navbar.qtpl:51 +//line templates/navbar.qtpl:51 qw422016.N().S(`/">summary</a> </li> <li class="nav-item"> <a class="nav-link`) -//line navbar.qtpl:54 +//line templates/navbar.qtpl:54 streaminsertIfEqual(qw422016, s, Refs) -//line navbar.qtpl:54 +//line templates/navbar.qtpl:54 qw422016.N().S(`" aria-current="page" href="/`) -//line navbar.qtpl:54 +//line templates/navbar.qtpl:54 qw422016.E().S(name) -//line navbar.qtpl:54 +//line templates/navbar.qtpl:54 qw422016.N().S(`/refs">refs</a> </li> <li class="nav-item"> <a class="nav-link`) -//line navbar.qtpl:57 +//line templates/navbar.qtpl:57 streaminsertIfEqual(qw422016, s, Log) -//line navbar.qtpl:57 +//line templates/navbar.qtpl:57 qw422016.N().S(`" aria-current="page" href="/`) -//line navbar.qtpl:57 +//line templates/navbar.qtpl:57 qw422016.E().S(name) -//line navbar.qtpl:57 +//line templates/navbar.qtpl:57 qw422016.N().S(`/log/`) -//line navbar.qtpl:57 +//line templates/navbar.qtpl:57 qw422016.E().S(ref) -//line navbar.qtpl:57 +//line templates/navbar.qtpl:57 qw422016.N().S(`/">log</a> </li> <li class="nav-item"> <a class="nav-link`) -//line navbar.qtpl:60 +//line templates/navbar.qtpl:60 streaminsertIfEqual(qw422016, s, Tree) -//line navbar.qtpl:60 +//line templates/navbar.qtpl:60 qw422016.N().S(`" aria-current="page" href="/`) -//line navbar.qtpl:60 +//line templates/navbar.qtpl:60 qw422016.E().S(name) -//line navbar.qtpl:60 +//line templates/navbar.qtpl:60 qw422016.N().S(`/tree/`) -//line navbar.qtpl:60 +//line templates/navbar.qtpl:60 qw422016.E().S(ref) -//line navbar.qtpl:60 +//line templates/navbar.qtpl:60 qw422016.N().S(`/">tree</a> </li> </ul> </div> `) -//line navbar.qtpl:64 +//line templates/navbar.qtpl:64 } -//line navbar.qtpl:64 +//line templates/navbar.qtpl:64 func WriteGitItemNav(qq422016 qtio422016.Writer, name, ref string, s GitSelection) { -//line navbar.qtpl:64 +//line templates/navbar.qtpl:64 qw422016 := qt422016.AcquireWriter(qq422016) -//line navbar.qtpl:64 +//line templates/navbar.qtpl:64 StreamGitItemNav(qw422016, name, ref, s) -//line navbar.qtpl:64 +//line templates/navbar.qtpl:64 qt422016.ReleaseWriter(qw422016) -//line navbar.qtpl:64 +//line templates/navbar.qtpl:64 } -//line navbar.qtpl:64 +//line templates/navbar.qtpl:64 func GitItemNav(name, ref string, s GitSelection) string { -//line navbar.qtpl:64 +//line templates/navbar.qtpl:64 qb422016 := qt422016.AcquireByteBuffer() -//line navbar.qtpl:64 +//line templates/navbar.qtpl:64 WriteGitItemNav(qb422016, name, ref, s) -//line navbar.qtpl:64 +//line templates/navbar.qtpl:64 qs422016 := string(qb422016.B) -//line navbar.qtpl:64 +//line templates/navbar.qtpl:64 qt422016.ReleaseByteBuffer(qb422016) -//line navbar.qtpl:64 +//line templates/navbar.qtpl:64 return qs422016 -//line navbar.qtpl:64 +//line templates/navbar.qtpl:64 } diff --git a/templates/tags.qtpl.go b/templates/tags.qtpl.go index 7d8eca8..a89ddd3 100644 --- a/templates/tags.qtpl.go +++ b/templates/tags.qtpl.go @@ -1,154 +1,154 @@ // Code generated by qtc from "tags.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. -//line tags.qtpl:1 +//line templates/tags.qtpl:1 package templates -//line tags.qtpl:1 +//line templates/tags.qtpl:1 import "git.gabrielgio.me/cerrado/pkg/git" -//line tags.qtpl:3 +//line templates/tags.qtpl:3 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) -//line tags.qtpl:3 +//line templates/tags.qtpl:3 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) -//line tags.qtpl:3 +//line templates/tags.qtpl:3 func StreamListTags(qw422016 *qt422016.Writer, name string, tags []*git.TagReference) { -//line tags.qtpl:3 +//line templates/tags.qtpl:3 qw422016.N().S(` `) -//line tags.qtpl:4 +//line templates/tags.qtpl:4 if len(tags) > 0 { -//line tags.qtpl:4 +//line templates/tags.qtpl:4 qw422016.N().S(` <div class="event-list"> `) -//line tags.qtpl:6 +//line templates/tags.qtpl:6 for _, t := range tags { -//line tags.qtpl:6 +//line templates/tags.qtpl:6 qw422016.N().S(` <div class="event me-md-2"> <div class="row "> <div class="col-4"> <a title="`) -//line tags.qtpl:10 +//line templates/tags.qtpl:10 qw422016.E().S(t.HashString()) -//line tags.qtpl:10 +//line templates/tags.qtpl:10 qw422016.N().S(`" href="/`) -//line tags.qtpl:10 +//line templates/tags.qtpl:10 qw422016.E().S(name) -//line tags.qtpl:10 +//line templates/tags.qtpl:10 qw422016.N().S(`/commit/`) -//line tags.qtpl:10 +//line templates/tags.qtpl:10 qw422016.E().S(t.HashString()) -//line tags.qtpl:10 +//line templates/tags.qtpl:10 qw422016.N().S(`">`) -//line tags.qtpl:10 +//line templates/tags.qtpl:10 qw422016.E().S(t.ShortName()) -//line tags.qtpl:10 +//line templates/tags.qtpl:10 qw422016.N().S(`</a> </div> <div class="col-8"> <div class="float-end"> <a href="/`) -//line tags.qtpl:14 +//line templates/tags.qtpl:14 qw422016.E().S(name) -//line tags.qtpl:14 +//line templates/tags.qtpl:14 qw422016.N().S(`/archive/`) -//line tags.qtpl:14 +//line templates/tags.qtpl:14 qw422016.E().S(t.ShortName()) -//line tags.qtpl:14 +//line templates/tags.qtpl:14 qw422016.N().S(`.tar.gz">tar.gz</a> <a href="/`) -//line tags.qtpl:15 +//line templates/tags.qtpl:15 qw422016.E().S(name) -//line tags.qtpl:15 +//line templates/tags.qtpl:15 qw422016.N().S(`/tree/`) -//line tags.qtpl:15 +//line templates/tags.qtpl:15 qw422016.E().S(t.ShortName()) -//line tags.qtpl:15 +//line templates/tags.qtpl:15 qw422016.N().S(`/">tree</a> <a href="/`) -//line tags.qtpl:16 +//line templates/tags.qtpl:16 qw422016.E().S(name) -//line tags.qtpl:16 +//line templates/tags.qtpl:16 qw422016.N().S(`/log/`) -//line tags.qtpl:16 +//line templates/tags.qtpl:16 qw422016.E().S(t.ShortName()) -//line tags.qtpl:16 +//line templates/tags.qtpl:16 qw422016.N().S(`/">log</a> </div> </div> </div> `) -//line tags.qtpl:20 +//line templates/tags.qtpl:20 if t.Message() != "" { -//line tags.qtpl:20 +//line templates/tags.qtpl:20 qw422016.N().S(` <div class="code-view"> <pre>`) -//line tags.qtpl:22 +//line templates/tags.qtpl:22 qw422016.E().S(t.Message()) -//line tags.qtpl:22 +//line templates/tags.qtpl:22 qw422016.N().S(`</pre> </div> `) -//line tags.qtpl:24 +//line templates/tags.qtpl:24 } -//line tags.qtpl:24 +//line templates/tags.qtpl:24 qw422016.N().S(` </div> `) -//line tags.qtpl:26 +//line templates/tags.qtpl:26 } -//line tags.qtpl:26 +//line templates/tags.qtpl:26 qw422016.N().S(` </div> `) -//line tags.qtpl:28 +//line templates/tags.qtpl:28 } else { -//line tags.qtpl:28 +//line templates/tags.qtpl:28 qw422016.N().S(` <p> No tags </p> `) -//line tags.qtpl:30 +//line templates/tags.qtpl:30 } -//line tags.qtpl:30 +//line templates/tags.qtpl:30 qw422016.N().S(` `) -//line tags.qtpl:31 +//line templates/tags.qtpl:31 } -//line tags.qtpl:31 +//line templates/tags.qtpl:31 func WriteListTags(qq422016 qtio422016.Writer, name string, tags []*git.TagReference) { -//line tags.qtpl:31 +//line templates/tags.qtpl:31 qw422016 := qt422016.AcquireWriter(qq422016) -//line tags.qtpl:31 +//line templates/tags.qtpl:31 StreamListTags(qw422016, name, tags) -//line tags.qtpl:31 +//line templates/tags.qtpl:31 qt422016.ReleaseWriter(qw422016) -//line tags.qtpl:31 +//line templates/tags.qtpl:31 } -//line tags.qtpl:31 +//line templates/tags.qtpl:31 func ListTags(name string, tags []*git.TagReference) string { -//line tags.qtpl:31 +//line templates/tags.qtpl:31 qb422016 := qt422016.AcquireByteBuffer() -//line tags.qtpl:31 +//line templates/tags.qtpl:31 WriteListTags(qb422016, name, tags) -//line tags.qtpl:31 +//line templates/tags.qtpl:31 qs422016 := string(qb422016.B) -//line tags.qtpl:31 +//line templates/tags.qtpl:31 qt422016.ReleaseByteBuffer(qb422016) -//line tags.qtpl:31 +//line templates/tags.qtpl:31 return qs422016 -//line tags.qtpl:31 +//line templates/tags.qtpl:31 } |