1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 11:46:16 +00:00
mycorrhiza/templates/common.qtpl.go

184 lines
5.1 KiB
Go
Raw Normal View History

2020-10-02 15:31:59 +00:00
// Code generated by qtc from "common.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.
//line templates/common.qtpl:1
2020-10-02 15:31:59 +00:00
package templates
//line templates/common.qtpl:1
import "net/http"
2020-10-02 15:31:59 +00:00
//line templates/common.qtpl:2
2021-02-19 18:12:36 +00:00
import "github.com/bouncepaw/mycorrhiza/user"
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:3
import "github.com/bouncepaw/mycorrhiza/views"
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:5
2020-10-02 15:31:59 +00:00
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:5
2020-10-02 15:31:59 +00:00
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:5
func streamnavHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, navType string, revisionHash ...string) {
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:5
qw422016.N().S(`
`)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:6
qw422016.N().S(views.NavHTML(rq, hyphaName, navType, revisionHash...))
//line templates/common.qtpl:6
2020-10-02 15:31:59 +00:00
qw422016.N().S(`
2021-01-20 13:53:30 +00:00
`)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:7
2020-10-02 15:31:59 +00:00
}
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:7
func writenavHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, navType string, revisionHash ...string) {
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:7
2020-10-02 15:31:59 +00:00
qw422016 := qt422016.AcquireWriter(qq422016)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:7
streamnavHTML(qw422016, rq, hyphaName, navType, revisionHash...)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:7
2020-10-02 15:31:59 +00:00
qt422016.ReleaseWriter(qw422016)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:7
2020-10-02 15:31:59 +00:00
}
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:7
func navHTML(rq *http.Request, hyphaName, navType string, revisionHash ...string) string {
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:7
2020-10-02 15:31:59 +00:00
qb422016 := qt422016.AcquireByteBuffer()
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:7
writenavHTML(qb422016, rq, hyphaName, navType, revisionHash...)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:7
2020-10-02 15:31:59 +00:00
qs422016 := string(qb422016.B)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:7
2020-10-02 15:31:59 +00:00
qt422016.ReleaseByteBuffer(qb422016)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:7
2020-10-02 15:31:59 +00:00
return qs422016
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:7
}
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:9
func streamuserMenuHTML(qw422016 *qt422016.Writer, u *user.User) {
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:9
qw422016.N().S(`
2021-01-24 07:30:14 +00:00
`)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:10
qw422016.N().S(views.UserMenuHTML(u))
//line templates/common.qtpl:10
qw422016.N().S(`
`)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:11
}
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:11
func writeuserMenuHTML(qq422016 qtio422016.Writer, u *user.User) {
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:11
qw422016 := qt422016.AcquireWriter(qq422016)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:11
streamuserMenuHTML(qw422016, u)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:11
qt422016.ReleaseWriter(qw422016)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:11
}
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:11
func userMenuHTML(u *user.User) string {
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:11
qb422016 := qt422016.AcquireByteBuffer()
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:11
writeuserMenuHTML(qb422016, u)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:11
qs422016 := string(qb422016.B)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:11
qt422016.ReleaseByteBuffer(qb422016)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:11
return qs422016
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:11
2020-10-02 15:31:59 +00:00
}
2021-01-26 05:41:57 +00:00
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:13
2021-01-26 05:41:57 +00:00
func streamrelativeHyphae(qw422016 *qt422016.Writer, relatives string) {
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:13
2021-01-26 05:41:57 +00:00
qw422016.N().S(`
2021-02-20 16:14:33 +00:00
`)
//line templates/common.qtpl:14
qw422016.N().S(views.RelativeHyphaeHTML(relatives))
//line templates/common.qtpl:14
2021-01-26 05:41:57 +00:00
qw422016.N().S(`
`)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:15
2021-01-26 05:41:57 +00:00
}
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:15
2021-01-26 05:41:57 +00:00
func writerelativeHyphae(qq422016 qtio422016.Writer, relatives string) {
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:15
2021-01-26 05:41:57 +00:00
qw422016 := qt422016.AcquireWriter(qq422016)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:15
2021-01-26 05:41:57 +00:00
streamrelativeHyphae(qw422016, relatives)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:15
2021-01-26 05:41:57 +00:00
qt422016.ReleaseWriter(qw422016)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:15
2021-01-26 05:41:57 +00:00
}
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:15
2021-01-26 05:41:57 +00:00
func relativeHyphae(relatives string) string {
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:15
2021-01-26 05:41:57 +00:00
qb422016 := qt422016.AcquireByteBuffer()
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:15
2021-01-26 05:41:57 +00:00
writerelativeHyphae(qb422016, relatives)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:15
2021-01-26 05:41:57 +00:00
qs422016 := string(qb422016.B)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:15
2021-01-26 05:41:57 +00:00
qt422016.ReleaseByteBuffer(qb422016)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:15
2021-01-26 05:41:57 +00:00
return qs422016
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:15
2021-01-26 05:41:57 +00:00
}
2021-02-19 09:23:57 +00:00
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:17
2021-02-19 18:12:36 +00:00
func streamsubhyphaeMatrix(qw422016 *qt422016.Writer, subhyphae string) {
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:17
2021-02-19 18:12:36 +00:00
qw422016.N().S(`
`)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:18
qw422016.N().S(views.SubhyphaeHTML(subhyphae))
//line templates/common.qtpl:18
2021-02-19 18:12:36 +00:00
qw422016.N().S(`
`)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:19
2021-02-19 18:12:36 +00:00
}
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:19
2021-02-19 18:12:36 +00:00
func writesubhyphaeMatrix(qq422016 qtio422016.Writer, subhyphae string) {
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:19
2021-02-19 18:12:36 +00:00
qw422016 := qt422016.AcquireWriter(qq422016)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:19
2021-02-19 18:12:36 +00:00
streamsubhyphaeMatrix(qw422016, subhyphae)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:19
2021-02-19 18:12:36 +00:00
qt422016.ReleaseWriter(qw422016)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:19
2021-02-19 18:12:36 +00:00
}
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:19
2021-02-19 18:12:36 +00:00
func subhyphaeMatrix(subhyphae string) string {
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:19
2021-02-19 18:12:36 +00:00
qb422016 := qt422016.AcquireByteBuffer()
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:19
2021-02-19 18:12:36 +00:00
writesubhyphaeMatrix(qb422016, subhyphae)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:19
2021-02-19 09:23:57 +00:00
qs422016 := string(qb422016.B)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:19
2021-02-19 09:23:57 +00:00
qt422016.ReleaseByteBuffer(qb422016)
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:19
2021-02-19 09:23:57 +00:00
return qs422016
2021-02-20 16:14:33 +00:00
//line templates/common.qtpl:19
2021-02-19 09:23:57 +00:00
}