mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-10-30 19:56:16 +00:00
184 lines
5.1 KiB
Go
184 lines
5.1 KiB
Go
// Code generated by qtc from "common.qtpl". DO NOT EDIT.
|
|
// See https://github.com/valyala/quicktemplate for details.
|
|
|
|
//line templates/common.qtpl:1
|
|
package templates
|
|
|
|
//line templates/common.qtpl:1
|
|
import "net/http"
|
|
|
|
//line templates/common.qtpl:2
|
|
import "github.com/bouncepaw/mycorrhiza/user"
|
|
|
|
//line templates/common.qtpl:3
|
|
import "github.com/bouncepaw/mycorrhiza/views"
|
|
|
|
//line templates/common.qtpl:5
|
|
import (
|
|
qtio422016 "io"
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
)
|
|
|
|
//line templates/common.qtpl:5
|
|
var (
|
|
_ = qtio422016.Copy
|
|
_ = qt422016.AcquireByteBuffer
|
|
)
|
|
|
|
//line templates/common.qtpl:5
|
|
func streamnavHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, navType string, revisionHash ...string) {
|
|
//line templates/common.qtpl:5
|
|
qw422016.N().S(`
|
|
`)
|
|
//line templates/common.qtpl:6
|
|
qw422016.N().S(views.NavHTML(rq, hyphaName, navType, revisionHash...))
|
|
//line templates/common.qtpl:6
|
|
qw422016.N().S(`
|
|
`)
|
|
//line templates/common.qtpl:7
|
|
}
|
|
|
|
//line templates/common.qtpl:7
|
|
func writenavHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, navType string, revisionHash ...string) {
|
|
//line templates/common.qtpl:7
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
//line templates/common.qtpl:7
|
|
streamnavHTML(qw422016, rq, hyphaName, navType, revisionHash...)
|
|
//line templates/common.qtpl:7
|
|
qt422016.ReleaseWriter(qw422016)
|
|
//line templates/common.qtpl:7
|
|
}
|
|
|
|
//line templates/common.qtpl:7
|
|
func navHTML(rq *http.Request, hyphaName, navType string, revisionHash ...string) string {
|
|
//line templates/common.qtpl:7
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
//line templates/common.qtpl:7
|
|
writenavHTML(qb422016, rq, hyphaName, navType, revisionHash...)
|
|
//line templates/common.qtpl:7
|
|
qs422016 := string(qb422016.B)
|
|
//line templates/common.qtpl:7
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
//line templates/common.qtpl:7
|
|
return qs422016
|
|
//line templates/common.qtpl:7
|
|
}
|
|
|
|
//line templates/common.qtpl:9
|
|
func streamuserMenuHTML(qw422016 *qt422016.Writer, u *user.User) {
|
|
//line templates/common.qtpl:9
|
|
qw422016.N().S(`
|
|
`)
|
|
//line templates/common.qtpl:10
|
|
qw422016.N().S(views.UserMenuHTML(u))
|
|
//line templates/common.qtpl:10
|
|
qw422016.N().S(`
|
|
`)
|
|
//line templates/common.qtpl:11
|
|
}
|
|
|
|
//line templates/common.qtpl:11
|
|
func writeuserMenuHTML(qq422016 qtio422016.Writer, u *user.User) {
|
|
//line templates/common.qtpl:11
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
//line templates/common.qtpl:11
|
|
streamuserMenuHTML(qw422016, u)
|
|
//line templates/common.qtpl:11
|
|
qt422016.ReleaseWriter(qw422016)
|
|
//line templates/common.qtpl:11
|
|
}
|
|
|
|
//line templates/common.qtpl:11
|
|
func userMenuHTML(u *user.User) string {
|
|
//line templates/common.qtpl:11
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
//line templates/common.qtpl:11
|
|
writeuserMenuHTML(qb422016, u)
|
|
//line templates/common.qtpl:11
|
|
qs422016 := string(qb422016.B)
|
|
//line templates/common.qtpl:11
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
//line templates/common.qtpl:11
|
|
return qs422016
|
|
//line templates/common.qtpl:11
|
|
}
|
|
|
|
//line templates/common.qtpl:13
|
|
func streamrelativeHyphae(qw422016 *qt422016.Writer, relatives string) {
|
|
//line templates/common.qtpl:13
|
|
qw422016.N().S(`
|
|
`)
|
|
//line templates/common.qtpl:14
|
|
qw422016.N().S(views.RelativeHyphaeHTML(relatives))
|
|
//line templates/common.qtpl:14
|
|
qw422016.N().S(`
|
|
`)
|
|
//line templates/common.qtpl:15
|
|
}
|
|
|
|
//line templates/common.qtpl:15
|
|
func writerelativeHyphae(qq422016 qtio422016.Writer, relatives string) {
|
|
//line templates/common.qtpl:15
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
//line templates/common.qtpl:15
|
|
streamrelativeHyphae(qw422016, relatives)
|
|
//line templates/common.qtpl:15
|
|
qt422016.ReleaseWriter(qw422016)
|
|
//line templates/common.qtpl:15
|
|
}
|
|
|
|
//line templates/common.qtpl:15
|
|
func relativeHyphae(relatives string) string {
|
|
//line templates/common.qtpl:15
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
//line templates/common.qtpl:15
|
|
writerelativeHyphae(qb422016, relatives)
|
|
//line templates/common.qtpl:15
|
|
qs422016 := string(qb422016.B)
|
|
//line templates/common.qtpl:15
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
//line templates/common.qtpl:15
|
|
return qs422016
|
|
//line templates/common.qtpl:15
|
|
}
|
|
|
|
//line templates/common.qtpl:17
|
|
func streamsubhyphaeMatrix(qw422016 *qt422016.Writer, subhyphae string) {
|
|
//line templates/common.qtpl:17
|
|
qw422016.N().S(`
|
|
`)
|
|
//line templates/common.qtpl:18
|
|
qw422016.N().S(views.SubhyphaeHTML(subhyphae))
|
|
//line templates/common.qtpl:18
|
|
qw422016.N().S(`
|
|
`)
|
|
//line templates/common.qtpl:19
|
|
}
|
|
|
|
//line templates/common.qtpl:19
|
|
func writesubhyphaeMatrix(qq422016 qtio422016.Writer, subhyphae string) {
|
|
//line templates/common.qtpl:19
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
//line templates/common.qtpl:19
|
|
streamsubhyphaeMatrix(qw422016, subhyphae)
|
|
//line templates/common.qtpl:19
|
|
qt422016.ReleaseWriter(qw422016)
|
|
//line templates/common.qtpl:19
|
|
}
|
|
|
|
//line templates/common.qtpl:19
|
|
func subhyphaeMatrix(subhyphae string) string {
|
|
//line templates/common.qtpl:19
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
//line templates/common.qtpl:19
|
|
writesubhyphaeMatrix(qb422016, subhyphae)
|
|
//line templates/common.qtpl:19
|
|
qs422016 := string(qb422016.B)
|
|
//line templates/common.qtpl:19
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
//line templates/common.qtpl:19
|
|
return qs422016
|
|
//line templates/common.qtpl:19
|
|
}
|