// Code generated by qtc from "readers.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line templates/readers.qtpl:1 package templates //line templates/readers.qtpl:1 import "net/http" //line templates/readers.qtpl:2 import "path" //line templates/readers.qtpl:3 import "github.com/bouncepaw/mycorrhiza/user" //line templates/readers.qtpl:5 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line templates/readers.qtpl:5 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line templates/readers.qtpl:5 func StreamHistoryHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, list string) { //line templates/readers.qtpl:5 qw422016.N().S(` `) //line templates/readers.qtpl:6 streamnavHTML(qw422016, rq, hyphaName, "history") //line templates/readers.qtpl:6 qw422016.N().S(`

History of `) //line templates/readers.qtpl:10 qw422016.E().S(hyphaName) //line templates/readers.qtpl:10 qw422016.N().S(`

`) //line templates/readers.qtpl:11 qw422016.N().S(list) //line templates/readers.qtpl:11 qw422016.N().S(`
`) //line templates/readers.qtpl:15 } //line templates/readers.qtpl:15 func WriteHistoryHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, list string) { //line templates/readers.qtpl:15 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/readers.qtpl:15 StreamHistoryHTML(qw422016, rq, hyphaName, list) //line templates/readers.qtpl:15 qt422016.ReleaseWriter(qw422016) //line templates/readers.qtpl:15 } //line templates/readers.qtpl:15 func HistoryHTML(rq *http.Request, hyphaName, list string) string { //line templates/readers.qtpl:15 qb422016 := qt422016.AcquireByteBuffer() //line templates/readers.qtpl:15 WriteHistoryHTML(qb422016, rq, hyphaName, list) //line templates/readers.qtpl:15 qs422016 := string(qb422016.B) //line templates/readers.qtpl:15 qt422016.ReleaseByteBuffer(qb422016) //line templates/readers.qtpl:15 return qs422016 //line templates/readers.qtpl:15 } //line templates/readers.qtpl:17 func StreamRevisionHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, relatives, revHash string) { //line templates/readers.qtpl:17 qw422016.N().S(` `) //line templates/readers.qtpl:18 streamnavHTML(qw422016, rq, hyphaName, "revision", revHash) //line templates/readers.qtpl:18 qw422016.N().S(`

Please note that viewing binary parts of hyphae is not supported in history for now.

`) //line templates/readers.qtpl:23 qw422016.N().S(naviTitle) //line templates/readers.qtpl:23 qw422016.N().S(` `) //line templates/readers.qtpl:24 qw422016.N().S(contents) //line templates/readers.qtpl:24 qw422016.N().S(`
`) //line templates/readers.qtpl:27 streamrelativeHyphae(qw422016, relatives) //line templates/readers.qtpl:27 qw422016.N().S(`
`) //line templates/readers.qtpl:29 } //line templates/readers.qtpl:29 func WriteRevisionHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, relatives, revHash string) { //line templates/readers.qtpl:29 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/readers.qtpl:29 StreamRevisionHTML(qw422016, rq, hyphaName, naviTitle, contents, relatives, revHash) //line templates/readers.qtpl:29 qt422016.ReleaseWriter(qw422016) //line templates/readers.qtpl:29 } //line templates/readers.qtpl:29 func RevisionHTML(rq *http.Request, hyphaName, naviTitle, contents, relatives, revHash string) string { //line templates/readers.qtpl:29 qb422016 := qt422016.AcquireByteBuffer() //line templates/readers.qtpl:29 WriteRevisionHTML(qb422016, rq, hyphaName, naviTitle, contents, relatives, revHash) //line templates/readers.qtpl:29 qs422016 := string(qb422016.B) //line templates/readers.qtpl:29 qt422016.ReleaseByteBuffer(qb422016) //line templates/readers.qtpl:29 return qs422016 //line templates/readers.qtpl:29 } // If `contents` == "", a helpful message is shown instead. //line templates/readers.qtpl:32 func StreamPageHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, relatives, prevHyphaName, nextHyphaName string, hasAmnt bool) { //line templates/readers.qtpl:32 qw422016.N().S(` `) //line templates/readers.qtpl:33 streamnavHTML(qw422016, rq, hyphaName, "page") //line templates/readers.qtpl:33 qw422016.N().S(`
`) //line templates/readers.qtpl:37 qw422016.N().S(naviTitle) //line templates/readers.qtpl:37 qw422016.N().S(` `) //line templates/readers.qtpl:38 if contents == "" { //line templates/readers.qtpl:38 qw422016.N().S(`

This hypha has no text. Why not create it?

`) //line templates/readers.qtpl:40 } else { //line templates/readers.qtpl:40 qw422016.N().S(` `) //line templates/readers.qtpl:41 qw422016.N().S(contents) //line templates/readers.qtpl:41 qw422016.N().S(` `) //line templates/readers.qtpl:42 } //line templates/readers.qtpl:42 qw422016.N().S(`
`) //line templates/readers.qtpl:45 if prevHyphaName != "" { //line templates/readers.qtpl:45 qw422016.N().S(` `) //line templates/readers.qtpl:47 } //line templates/readers.qtpl:47 qw422016.N().S(` `) //line templates/readers.qtpl:48 if nextHyphaName != "" { //line templates/readers.qtpl:48 qw422016.N().S(` `) //line templates/readers.qtpl:50 } //line templates/readers.qtpl:50 qw422016.N().S(`
`) //line templates/readers.qtpl:52 if u := user.FromRequest(rq); !user.AuthUsed || u.Group != "anon" { //line templates/readers.qtpl:52 qw422016.N().S(`
`) //line templates/readers.qtpl:56 if hasAmnt { //line templates/readers.qtpl:56 qw422016.N().S(` Unattach current attachment? `) //line templates/readers.qtpl:58 } //line templates/readers.qtpl:58 qw422016.N().S(`
`) //line templates/readers.qtpl:64 } //line templates/readers.qtpl:64 qw422016.N().S(`
`) //line templates/readers.qtpl:66 streamrelativeHyphae(qw422016, relatives) //line templates/readers.qtpl:66 qw422016.N().S(`
`) //line templates/readers.qtpl:68 } //line templates/readers.qtpl:68 func WritePageHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, relatives, prevHyphaName, nextHyphaName string, hasAmnt bool) { //line templates/readers.qtpl:68 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/readers.qtpl:68 StreamPageHTML(qw422016, rq, hyphaName, naviTitle, contents, relatives, prevHyphaName, nextHyphaName, hasAmnt) //line templates/readers.qtpl:68 qt422016.ReleaseWriter(qw422016) //line templates/readers.qtpl:68 } //line templates/readers.qtpl:68 func PageHTML(rq *http.Request, hyphaName, naviTitle, contents, relatives, prevHyphaName, nextHyphaName string, hasAmnt bool) string { //line templates/readers.qtpl:68 qb422016 := qt422016.AcquireByteBuffer() //line templates/readers.qtpl:68 WritePageHTML(qb422016, rq, hyphaName, naviTitle, contents, relatives, prevHyphaName, nextHyphaName, hasAmnt) //line templates/readers.qtpl:68 qs422016 := string(qb422016.B) //line templates/readers.qtpl:68 qt422016.ReleaseByteBuffer(qb422016) //line templates/readers.qtpl:68 return qs422016 //line templates/readers.qtpl:68 }