// Code generated by qtc from "http_readers.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line templates/http_readers.qtpl:1 package templates //line templates/http_readers.qtpl:1 import "net/http" //line templates/http_readers.qtpl:2 import "github.com/bouncepaw/mycorrhiza/user" //line templates/http_readers.qtpl:4 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line templates/http_readers.qtpl:4 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line templates/http_readers.qtpl:4 func StreamHistoryHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, tbody string) { //line templates/http_readers.qtpl:4 qw422016.N().S(`
`) //line templates/http_readers.qtpl:6 streamnavHTML(qw422016, rq, hyphaName, "history") //line templates/http_readers.qtpl:6 qw422016.N().S(` `) //line templates/http_readers.qtpl:16 qw422016.N().S(tbody) //line templates/http_readers.qtpl:16 qw422016.N().S(`
Time Hash Message
`) //line templates/http_readers.qtpl:20 } //line templates/http_readers.qtpl:20 func WriteHistoryHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, tbody string) { //line templates/http_readers.qtpl:20 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/http_readers.qtpl:20 StreamHistoryHTML(qw422016, rq, hyphaName, tbody) //line templates/http_readers.qtpl:20 qt422016.ReleaseWriter(qw422016) //line templates/http_readers.qtpl:20 } //line templates/http_readers.qtpl:20 func HistoryHTML(rq *http.Request, hyphaName, tbody string) string { //line templates/http_readers.qtpl:20 qb422016 := qt422016.AcquireByteBuffer() //line templates/http_readers.qtpl:20 WriteHistoryHTML(qb422016, rq, hyphaName, tbody) //line templates/http_readers.qtpl:20 qs422016 := string(qb422016.B) //line templates/http_readers.qtpl:20 qt422016.ReleaseByteBuffer(qb422016) //line templates/http_readers.qtpl:20 return qs422016 //line templates/http_readers.qtpl:20 } //line templates/http_readers.qtpl:22 func StreamRevisionHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, tree, revHash string) { //line templates/http_readers.qtpl:22 qw422016.N().S(`
`) //line templates/http_readers.qtpl:24 streamnavHTML(qw422016, rq, hyphaName, "revision", revHash) //line templates/http_readers.qtpl:24 qw422016.N().S(`

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

`) //line templates/http_readers.qtpl:27 qw422016.N().S(naviTitle) //line templates/http_readers.qtpl:27 qw422016.N().S(` `) //line templates/http_readers.qtpl:28 qw422016.N().S(contents) //line templates/http_readers.qtpl:28 qw422016.N().S(`

`) //line templates/http_readers.qtpl:35 } //line templates/http_readers.qtpl:35 func WriteRevisionHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, tree, revHash string) { //line templates/http_readers.qtpl:35 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/http_readers.qtpl:35 StreamRevisionHTML(qw422016, rq, hyphaName, naviTitle, contents, tree, revHash) //line templates/http_readers.qtpl:35 qt422016.ReleaseWriter(qw422016) //line templates/http_readers.qtpl:35 } //line templates/http_readers.qtpl:35 func RevisionHTML(rq *http.Request, hyphaName, naviTitle, contents, tree, revHash string) string { //line templates/http_readers.qtpl:35 qb422016 := qt422016.AcquireByteBuffer() //line templates/http_readers.qtpl:35 WriteRevisionHTML(qb422016, rq, hyphaName, naviTitle, contents, tree, revHash) //line templates/http_readers.qtpl:35 qs422016 := string(qb422016.B) //line templates/http_readers.qtpl:35 qt422016.ReleaseByteBuffer(qb422016) //line templates/http_readers.qtpl:35 return qs422016 //line templates/http_readers.qtpl:35 } // If `contents` == "", a helpful message is shown instead. //line templates/http_readers.qtpl:38 func StreamPageHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, tree string) { //line templates/http_readers.qtpl:38 qw422016.N().S(`
`) //line templates/http_readers.qtpl:40 streamnavHTML(qw422016, rq, hyphaName, "page") //line templates/http_readers.qtpl:40 qw422016.N().S(`
`) //line templates/http_readers.qtpl:42 qw422016.N().S(naviTitle) //line templates/http_readers.qtpl:42 qw422016.N().S(` `) //line templates/http_readers.qtpl:43 if contents == "" { //line templates/http_readers.qtpl:43 qw422016.N().S(`

This hypha has no text. Why not create it?

`) //line templates/http_readers.qtpl:45 } else { //line templates/http_readers.qtpl:45 qw422016.N().S(` `) //line templates/http_readers.qtpl:46 qw422016.N().S(contents) //line templates/http_readers.qtpl:46 qw422016.N().S(` `) //line templates/http_readers.qtpl:47 } //line templates/http_readers.qtpl:47 qw422016.N().S(`

`) //line templates/http_readers.qtpl:50 if u := user.FromRequest(rq).OrAnon(); u.Group > user.UserAnon { //line templates/http_readers.qtpl:50 qw422016.N().S(`


`) //line templates/http_readers.qtpl:59 } //line templates/http_readers.qtpl:59 qw422016.N().S(`
`) //line templates/http_readers.qtpl:64 } //line templates/http_readers.qtpl:64 func WritePageHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, tree string) { //line templates/http_readers.qtpl:64 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/http_readers.qtpl:64 StreamPageHTML(qw422016, rq, hyphaName, naviTitle, contents, tree) //line templates/http_readers.qtpl:64 qt422016.ReleaseWriter(qw422016) //line templates/http_readers.qtpl:64 } //line templates/http_readers.qtpl:64 func PageHTML(rq *http.Request, hyphaName, naviTitle, contents, tree string) string { //line templates/http_readers.qtpl:64 qb422016 := qt422016.AcquireByteBuffer() //line templates/http_readers.qtpl:64 WritePageHTML(qb422016, rq, hyphaName, naviTitle, contents, tree) //line templates/http_readers.qtpl:64 qs422016 := string(qb422016.B) //line templates/http_readers.qtpl:64 qt422016.ReleaseByteBuffer(qb422016) //line templates/http_readers.qtpl:64 return qs422016 //line templates/http_readers.qtpl:64 }