// Code generated by qtc from "nav.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.
//line views/nav.qtpl:1
package views
//line views/nav.qtpl:1
import "net/http"
//line views/nav.qtpl:2
import "strings"
//line views/nav.qtpl:3
import "github.com/bouncepaw/mycorrhiza/hyphae/backlinks"
//line views/nav.qtpl:4
import "github.com/bouncepaw/mycorrhiza/l18n"
//line views/nav.qtpl:5
import "github.com/bouncepaw/mycorrhiza/user"
//line views/nav.qtpl:6
import "github.com/bouncepaw/mycorrhiza/hyphae"
//line views/nav.qtpl:8
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
//line views/nav.qtpl:8
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
//line views/nav.qtpl:8
func streamhyphaInfoEntry(qw422016 *qt422016.Writer, h hyphae.Hypher, u *user.User, action, displayText string) {
//line views/nav.qtpl:8
qw422016.N().S(`
`)
//line views/nav.qtpl:9
if u.CanProceed(action) {
//line views/nav.qtpl:9
qw422016.N().S(`
`)
//line views/nav.qtpl:11
qw422016.E().S(displayText)
//line views/nav.qtpl:11
qw422016.N().S(`
`)
//line views/nav.qtpl:13
}
//line views/nav.qtpl:13
qw422016.N().S(`
`)
//line views/nav.qtpl:14
}
//line views/nav.qtpl:14
func writehyphaInfoEntry(qq422016 qtio422016.Writer, h hyphae.Hypher, u *user.User, action, displayText string) {
//line views/nav.qtpl:14
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/nav.qtpl:14
streamhyphaInfoEntry(qw422016, h, u, action, displayText)
//line views/nav.qtpl:14
qt422016.ReleaseWriter(qw422016)
//line views/nav.qtpl:14
}
//line views/nav.qtpl:14
func hyphaInfoEntry(h hyphae.Hypher, u *user.User, action, displayText string) string {
//line views/nav.qtpl:14
qb422016 := qt422016.AcquireByteBuffer()
//line views/nav.qtpl:14
writehyphaInfoEntry(qb422016, h, u, action, displayText)
//line views/nav.qtpl:14
qs422016 := string(qb422016.B)
//line views/nav.qtpl:14
qt422016.ReleaseByteBuffer(qb422016)
//line views/nav.qtpl:14
return qs422016
//line views/nav.qtpl:14
}
//line views/nav.qtpl:16
func streamhyphaInfo(qw422016 *qt422016.Writer, rq *http.Request, h hyphae.Hypher) {
//line views/nav.qtpl:16
qw422016.N().S(`
`)
//line views/nav.qtpl:18
u := user.FromRequest(rq)
lc := l18n.FromRequest(rq)
backs := backlinks.BacklinksCount(h)
//line views/nav.qtpl:21
qw422016.N().S(`
`)
//line views/nav.qtpl:32
}
//line views/nav.qtpl:32
func writehyphaInfo(qq422016 qtio422016.Writer, rq *http.Request, h hyphae.Hypher) {
//line views/nav.qtpl:32
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/nav.qtpl:32
streamhyphaInfo(qw422016, rq, h)
//line views/nav.qtpl:32
qt422016.ReleaseWriter(qw422016)
//line views/nav.qtpl:32
}
//line views/nav.qtpl:32
func hyphaInfo(rq *http.Request, h hyphae.Hypher) string {
//line views/nav.qtpl:32
qb422016 := qt422016.AcquireByteBuffer()
//line views/nav.qtpl:32
writehyphaInfo(qb422016, rq, h)
//line views/nav.qtpl:32
qs422016 := string(qb422016.B)
//line views/nav.qtpl:32
qt422016.ReleaseByteBuffer(qb422016)
//line views/nav.qtpl:32
return qs422016
//line views/nav.qtpl:32
}
//line views/nav.qtpl:34
func streamsiblingHyphaeHTML(qw422016 *qt422016.Writer, siblings string, lc *l18n.Localizer) {
//line views/nav.qtpl:34
qw422016.N().S(`
`)
//line views/nav.qtpl:39
}
//line views/nav.qtpl:39
func writesiblingHyphaeHTML(qq422016 qtio422016.Writer, siblings string, lc *l18n.Localizer) {
//line views/nav.qtpl:39
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/nav.qtpl:39
streamsiblingHyphaeHTML(qw422016, siblings, lc)
//line views/nav.qtpl:39
qt422016.ReleaseWriter(qw422016)
//line views/nav.qtpl:39
}
//line views/nav.qtpl:39
func siblingHyphaeHTML(siblings string, lc *l18n.Localizer) string {
//line views/nav.qtpl:39
qb422016 := qt422016.AcquireByteBuffer()
//line views/nav.qtpl:39
writesiblingHyphaeHTML(qb422016, siblings, lc)
//line views/nav.qtpl:39
qs422016 := string(qb422016.B)
//line views/nav.qtpl:39
qt422016.ReleaseByteBuffer(qb422016)
//line views/nav.qtpl:39
return qs422016
//line views/nav.qtpl:39
}
//line views/nav.qtpl:41
func StreamSubhyphaeHTML(qw422016 *qt422016.Writer, subhyphae string, lc *l18n.Localizer) {
//line views/nav.qtpl:41
qw422016.N().S(`
`)
//line views/nav.qtpl:42
if strings.TrimSpace(subhyphae) != "" {
//line views/nav.qtpl:42
qw422016.N().S(`
`)
//line views/nav.qtpl:44
qw422016.E().S(lc.Get("ui.subhyphae"))
//line views/nav.qtpl:44
qw422016.N().S(`
`)
//line views/nav.qtpl:51
}
//line views/nav.qtpl:51
qw422016.N().S(`
`)
//line views/nav.qtpl:52
}
//line views/nav.qtpl:52
func WriteSubhyphaeHTML(qq422016 qtio422016.Writer, subhyphae string, lc *l18n.Localizer) {
//line views/nav.qtpl:52
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/nav.qtpl:52
StreamSubhyphaeHTML(qw422016, subhyphae, lc)
//line views/nav.qtpl:52
qt422016.ReleaseWriter(qw422016)
//line views/nav.qtpl:52
}
//line views/nav.qtpl:52
func SubhyphaeHTML(subhyphae string, lc *l18n.Localizer) string {
//line views/nav.qtpl:52
qb422016 := qt422016.AcquireByteBuffer()
//line views/nav.qtpl:52
WriteSubhyphaeHTML(qb422016, subhyphae, lc)
//line views/nav.qtpl:52
qs422016 := string(qb422016.B)
//line views/nav.qtpl:52
qt422016.ReleaseByteBuffer(qb422016)
//line views/nav.qtpl:52
return qs422016
//line views/nav.qtpl:52
}