diff options
Diffstat (limited to 'templates/navbar.qtpl.go')
-rw-r--r-- | templates/navbar.qtpl.go | 130 |
1 files changed, 64 insertions, 66 deletions
diff --git a/templates/navbar.qtpl.go b/templates/navbar.qtpl.go index a2989db..1eacd6a 100644 --- a/templates/navbar.qtpl.go +++ b/templates/navbar.qtpl.go @@ -89,162 +89,160 @@ func StreamNavbar(qw422016 *qt422016.Writer, s Selection) { `) //line navbar.qtpl:31 qw422016.N().S(` +`) +//line navbar.qtpl:35 + qw422016.N().S(` <a class="nav-link`) -//line navbar.qtpl:32 - streaminsertIfEqual(qw422016, s, About) -//line navbar.qtpl:32 - qw422016.N().S(`" href="/about">about</a> - <a class="nav-link`) -//line navbar.qtpl:33 +//line navbar.qtpl:36 streaminsertIfEqual(qw422016, s, Config) -//line navbar.qtpl:33 +//line navbar.qtpl:36 qw422016.N().S(`" href="/config">config</a> </div> </nav> `) -//line navbar.qtpl:36 +//line navbar.qtpl:39 } -//line navbar.qtpl:36 +//line navbar.qtpl:39 func WriteNavbar(qq422016 qtio422016.Writer, s Selection) { -//line navbar.qtpl:36 +//line navbar.qtpl:39 qw422016 := qt422016.AcquireWriter(qq422016) -//line navbar.qtpl:36 +//line navbar.qtpl:39 StreamNavbar(qw422016, s) -//line navbar.qtpl:36 +//line navbar.qtpl:39 qt422016.ReleaseWriter(qw422016) -//line navbar.qtpl:36 +//line navbar.qtpl:39 } -//line navbar.qtpl:36 +//line navbar.qtpl:39 func Navbar(s Selection) string { -//line navbar.qtpl:36 +//line navbar.qtpl:39 qb422016 := qt422016.AcquireByteBuffer() -//line navbar.qtpl:36 +//line navbar.qtpl:39 WriteNavbar(qb422016, s) -//line navbar.qtpl:36 +//line navbar.qtpl:39 qs422016 := string(qb422016.B) -//line navbar.qtpl:36 +//line navbar.qtpl:39 qt422016.ReleaseByteBuffer(qb422016) -//line navbar.qtpl:36 +//line navbar.qtpl:39 return qs422016 -//line navbar.qtpl:36 +//line navbar.qtpl:39 } -//line navbar.qtpl:38 +//line navbar.qtpl:41 func StreamGitItemNav(qw422016 *qt422016.Writer, name, ref string, s GitSelection) { -//line navbar.qtpl:38 +//line navbar.qtpl:41 qw422016.N().S(` <div class="row"> <h3>`) -//line navbar.qtpl:40 +//line navbar.qtpl:43 qw422016.E().S(name) -//line navbar.qtpl:40 +//line navbar.qtpl:43 qw422016.N().S(` `) -//line navbar.qtpl:40 +//line navbar.qtpl:43 if ref != "" && (s == Log || s == Tree) { -//line navbar.qtpl:40 +//line navbar.qtpl:43 qw422016.N().S(`@ `) -//line navbar.qtpl:40 +//line navbar.qtpl:43 qw422016.E().S(ref) -//line navbar.qtpl:40 +//line navbar.qtpl:43 } -//line navbar.qtpl:40 +//line 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:45 - streaminsertIfEqual(qw422016, s, Readme) -//line navbar.qtpl:45 - qw422016.N().S(`" aria-current="page" href="/`) -//line navbar.qtpl:45 - qw422016.E().S(name) -//line navbar.qtpl:45 - qw422016.N().S(`/about">about</a> - </li> - <li class="nav-item"> - <a class="nav-link`) //line navbar.qtpl:48 - streaminsertIfEqual(qw422016, s, Log) + streaminsertIfEqual(qw422016, s, Readme) //line navbar.qtpl:48 qw422016.N().S(`" aria-current="page" href="/`) //line navbar.qtpl:48 qw422016.E().S(name) //line navbar.qtpl:48 - qw422016.N().S(`/log/`) -//line navbar.qtpl:48 - qw422016.E().S(ref) -//line navbar.qtpl:48 - qw422016.N().S(`">log</a> + qw422016.N().S(`/about">about</a> </li> <li class="nav-item"> <a class="nav-link`) //line navbar.qtpl:51 - streaminsertIfEqual(qw422016, s, Summary) + streaminsertIfEqual(qw422016, s, Log) //line navbar.qtpl:51 qw422016.N().S(`" aria-current="page" href="/`) //line navbar.qtpl:51 qw422016.E().S(name) //line navbar.qtpl:51 - qw422016.N().S(`">summary</a> + qw422016.N().S(`/log/`) +//line navbar.qtpl:51 + qw422016.E().S(ref) +//line navbar.qtpl:51 + qw422016.N().S(`">log</a> </li> <li class="nav-item"> <a class="nav-link`) //line navbar.qtpl:54 - streaminsertIfEqual(qw422016, s, Refs) + streaminsertIfEqual(qw422016, s, Summary) //line navbar.qtpl:54 qw422016.N().S(`" aria-current="page" href="/`) //line navbar.qtpl:54 qw422016.E().S(name) //line navbar.qtpl:54 - qw422016.N().S(`/refs">refs</a> + qw422016.N().S(`">summary</a> </li> <li class="nav-item"> <a class="nav-link`) //line navbar.qtpl:57 - streaminsertIfEqual(qw422016, s, Tree) + streaminsertIfEqual(qw422016, s, Refs) //line navbar.qtpl:57 qw422016.N().S(`" aria-current="page" href="/`) //line navbar.qtpl:57 qw422016.E().S(name) //line navbar.qtpl:57 + qw422016.N().S(`/refs">refs</a> + </li> + <li class="nav-item"> + <a class="nav-link`) +//line navbar.qtpl:60 + streaminsertIfEqual(qw422016, s, Tree) +//line navbar.qtpl:60 + qw422016.N().S(`" aria-current="page" href="/`) +//line navbar.qtpl:60 + qw422016.E().S(name) +//line navbar.qtpl:60 qw422016.N().S(`/tree/`) -//line navbar.qtpl:57 +//line navbar.qtpl:60 qw422016.E().S(ref) -//line navbar.qtpl:57 +//line navbar.qtpl:60 qw422016.N().S(`">tree</a> </li> </ul> </div> `) -//line navbar.qtpl:61 +//line navbar.qtpl:64 } -//line navbar.qtpl:61 +//line navbar.qtpl:64 func WriteGitItemNav(qq422016 qtio422016.Writer, name, ref string, s GitSelection) { -//line navbar.qtpl:61 +//line navbar.qtpl:64 qw422016 := qt422016.AcquireWriter(qq422016) -//line navbar.qtpl:61 +//line navbar.qtpl:64 StreamGitItemNav(qw422016, name, ref, s) -//line navbar.qtpl:61 +//line navbar.qtpl:64 qt422016.ReleaseWriter(qw422016) -//line navbar.qtpl:61 +//line navbar.qtpl:64 } -//line navbar.qtpl:61 +//line navbar.qtpl:64 func GitItemNav(name, ref string, s GitSelection) string { -//line navbar.qtpl:61 +//line navbar.qtpl:64 qb422016 := qt422016.AcquireByteBuffer() -//line navbar.qtpl:61 +//line navbar.qtpl:64 WriteGitItemNav(qb422016, name, ref, s) -//line navbar.qtpl:61 +//line navbar.qtpl:64 qs422016 := string(qb422016.B) -//line navbar.qtpl:61 +//line navbar.qtpl:64 qt422016.ReleaseByteBuffer(qb422016) -//line navbar.qtpl:61 +//line navbar.qtpl:64 return qs422016 -//line navbar.qtpl:61 +//line navbar.qtpl:64 } |