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