aboutsummaryrefslogtreecommitdiff
path: root/templates/navbar.qtpl.go
diff options
context:
space:
mode:
Diffstat (limited to 'templates/navbar.qtpl.go')
-rw-r--r--templates/navbar.qtpl.go109
1 files changed, 68 insertions, 41 deletions
diff --git a/templates/navbar.qtpl.go b/templates/navbar.qtpl.go
index acf21b4..cddc6a6 100644
--- a/templates/navbar.qtpl.go
+++ b/templates/navbar.qtpl.go
@@ -134,92 +134,119 @@ func Navbar(s Selection) string {
}
//line navbar.qtpl:35
-func StreamGitItemNav(qw422016 *qt422016.Writer, name string, s GitSelection) {
+func StreamGitItemNav(qw422016 *qt422016.Writer, name, ref string, s GitSelection) {
//line navbar.qtpl:35
qw422016.N().S(`
+<div class="row">
+ <h3>`)
+//line navbar.qtpl:37
+ qw422016.E().S(name)
+//line navbar.qtpl:37
+ qw422016.N().S(` `)
+//line navbar.qtpl:37
+ if ref != "" && (s == Log || s == Tree) {
+//line navbar.qtpl:37
+ qw422016.N().S(`@ `)
+//line navbar.qtpl:37
+ qw422016.E().S(ref)
+//line navbar.qtpl:37
+ }
+//line navbar.qtpl:37
+ qw422016.N().S(`</h3>
+</div>
+<div class="row">
<ul class="nav">
<li class="nav-item">
<a class="nav-link`)
-//line navbar.qtpl:38
+//line navbar.qtpl:42
streaminsertIfEqual(qw422016, s, Readme)
-//line navbar.qtpl:38
+//line navbar.qtpl:42
qw422016.N().S(`" aria-current="page" href="/`)
-//line navbar.qtpl:38
+//line navbar.qtpl:42
qw422016.E().S(name)
-//line navbar.qtpl:38
+//line navbar.qtpl:42
qw422016.N().S(`/about">about</a>
</li>
<li class="nav-item">
<a class="nav-link`)
-//line navbar.qtpl:41
+//line navbar.qtpl:45
streaminsertIfEqual(qw422016, s, Log)
-//line navbar.qtpl:41
+//line navbar.qtpl:45
qw422016.N().S(`" aria-current="page" href="/`)
-//line navbar.qtpl:41
+//line navbar.qtpl:45
qw422016.E().S(name)
-//line navbar.qtpl:41
- qw422016.N().S(`/log">log</a>
+//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>
</li>
<li class="nav-item">
<a class="nav-link`)
-//line navbar.qtpl:44
+//line navbar.qtpl:48
streaminsertIfEqual(qw422016, s, Summary)
-//line navbar.qtpl:44
+//line navbar.qtpl:48
qw422016.N().S(`" aria-current="page" href="/`)
-//line navbar.qtpl:44
+//line navbar.qtpl:48
qw422016.E().S(name)
-//line navbar.qtpl:44
- qw422016.N().S(`/summary">summary</a>
+//line navbar.qtpl:48
+ qw422016.N().S(`">summary</a>
</li>
<li class="nav-item">
<a class="nav-link`)
-//line navbar.qtpl:47
+//line navbar.qtpl:51
streaminsertIfEqual(qw422016, s, Refs)
-//line navbar.qtpl:47
+//line navbar.qtpl:51
qw422016.N().S(`" aria-current="page" href="/`)
-//line navbar.qtpl:47
+//line navbar.qtpl:51
qw422016.E().S(name)
-//line navbar.qtpl:47
+//line navbar.qtpl:51
qw422016.N().S(`/refs">refs</a>
</li>
<li class="nav-item">
<a class="nav-link`)
-//line navbar.qtpl:50
+//line navbar.qtpl:54
streaminsertIfEqual(qw422016, s, Tree)
-//line navbar.qtpl:50
+//line navbar.qtpl:54
qw422016.N().S(`" aria-current="page" href="/`)
-//line navbar.qtpl:50
+//line navbar.qtpl:54
qw422016.E().S(name)
-//line navbar.qtpl:50
- qw422016.N().S(`/tree">tree</a>
+//line navbar.qtpl:54
+ qw422016.N().S(`/tree/`)
+//line navbar.qtpl:54
+ qw422016.E().S(ref)
+//line navbar.qtpl:54
+ qw422016.N().S(`">tree</a>
</li>
</ul>
+</div>
`)
-//line navbar.qtpl:53
+//line navbar.qtpl:58
}
-//line navbar.qtpl:53
-func WriteGitItemNav(qq422016 qtio422016.Writer, name string, s GitSelection) {
-//line navbar.qtpl:53
+//line navbar.qtpl:58
+func WriteGitItemNav(qq422016 qtio422016.Writer, name, ref string, s GitSelection) {
+//line navbar.qtpl:58
qw422016 := qt422016.AcquireWriter(qq422016)
-//line navbar.qtpl:53
- StreamGitItemNav(qw422016, name, s)
-//line navbar.qtpl:53
+//line navbar.qtpl:58
+ StreamGitItemNav(qw422016, name, ref, s)
+//line navbar.qtpl:58
qt422016.ReleaseWriter(qw422016)
-//line navbar.qtpl:53
+//line navbar.qtpl:58
}
-//line navbar.qtpl:53
-func GitItemNav(name string, s GitSelection) string {
-//line navbar.qtpl:53
+//line navbar.qtpl:58
+func GitItemNav(name, ref string, s GitSelection) string {
+//line navbar.qtpl:58
qb422016 := qt422016.AcquireByteBuffer()
-//line navbar.qtpl:53
- WriteGitItemNav(qb422016, name, s)
-//line navbar.qtpl:53
+//line navbar.qtpl:58
+ WriteGitItemNav(qb422016, name, ref, s)
+//line navbar.qtpl:58
qs422016 := string(qb422016.B)
-//line navbar.qtpl:53
+//line navbar.qtpl:58
qt422016.ReleaseByteBuffer(qb422016)
-//line navbar.qtpl:53
+//line navbar.qtpl:58
return qs422016
-//line navbar.qtpl:53
+//line navbar.qtpl:58
}