// Code generated by qtc from "mutators.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.
//line views/mutators.qtpl:1
package views
//line views/mutators.qtpl:1
import "fmt"
//line views/mutators.qtpl:2
import "net/http"
//line views/mutators.qtpl:4
import "github.com/bouncepaw/mycorrhiza/cfg"
//line views/mutators.qtpl:5
import "github.com/bouncepaw/mycorrhiza/l18n"
//line views/mutators.qtpl:6
import "github.com/bouncepaw/mycorrhiza/user"
//line views/mutators.qtpl:8
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
//line views/mutators.qtpl:8
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
//line views/mutators.qtpl:8
func StreamToolbar(qw422016 *qt422016.Writer, u *user.User, lc *l18n.Localizer) {
//line views/mutators.qtpl:8
qw422016.N().S(`
`)
//line views/mutators.qtpl:74
}
//line views/mutators.qtpl:74
func WriteToolbar(qq422016 qtio422016.Writer, u *user.User, lc *l18n.Localizer) {
//line views/mutators.qtpl:74
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/mutators.qtpl:74
StreamToolbar(qw422016, u, lc)
//line views/mutators.qtpl:74
qt422016.ReleaseWriter(qw422016)
//line views/mutators.qtpl:74
}
//line views/mutators.qtpl:74
func Toolbar(u *user.User, lc *l18n.Localizer) string {
//line views/mutators.qtpl:74
qb422016 := qt422016.AcquireByteBuffer()
//line views/mutators.qtpl:74
WriteToolbar(qb422016, u, lc)
//line views/mutators.qtpl:74
qs422016 := string(qb422016.B)
//line views/mutators.qtpl:74
qt422016.ReleaseByteBuffer(qb422016)
//line views/mutators.qtpl:74
return qs422016
//line views/mutators.qtpl:74
}
//line views/mutators.qtpl:76
func StreamEditHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, textAreaFill, warning string) {
//line views/mutators.qtpl:76
qw422016.N().S(`
`)
//line views/mutators.qtpl:78
lc := l18n.FromRequest(rq)
//line views/mutators.qtpl:79
qw422016.N().S(`
`)
//line views/mutators.qtpl:82
qw422016.N().S(fmt.Sprintf(lc.Get("edit.title"), beautifulLink(hyphaName)))
//line views/mutators.qtpl:82
qw422016.N().S(`
`)
//line views/mutators.qtpl:83
qw422016.N().S(warning)
//line views/mutators.qtpl:83
qw422016.N().S(`
`)
//line views/mutators.qtpl:96
qw422016.N().S(Toolbar(user.FromRequest(rq), lc))
//line views/mutators.qtpl:96
qw422016.N().S(`
`)
//line views/mutators.qtpl:98
streameditScripts(qw422016)
//line views/mutators.qtpl:98
qw422016.N().S(`
`)
//line views/mutators.qtpl:99
}
//line views/mutators.qtpl:99
func WriteEditHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, textAreaFill, warning string) {
//line views/mutators.qtpl:99
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/mutators.qtpl:99
StreamEditHTML(qw422016, rq, hyphaName, textAreaFill, warning)
//line views/mutators.qtpl:99
qt422016.ReleaseWriter(qw422016)
//line views/mutators.qtpl:99
}
//line views/mutators.qtpl:99
func EditHTML(rq *http.Request, hyphaName, textAreaFill, warning string) string {
//line views/mutators.qtpl:99
qb422016 := qt422016.AcquireByteBuffer()
//line views/mutators.qtpl:99
WriteEditHTML(qb422016, rq, hyphaName, textAreaFill, warning)
//line views/mutators.qtpl:99
qs422016 := string(qb422016.B)
//line views/mutators.qtpl:99
qt422016.ReleaseByteBuffer(qb422016)
//line views/mutators.qtpl:99
return qs422016
//line views/mutators.qtpl:99
}
//line views/mutators.qtpl:101
func StreamPreviewHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, textAreaFill, message, warning string, renderedPage string) {
//line views/mutators.qtpl:101
qw422016.N().S(`
`)
//line views/mutators.qtpl:103
lc := l18n.FromRequest(rq)
//line views/mutators.qtpl:104
qw422016.N().S(`
`)
//line views/mutators.qtpl:125
streameditScripts(qw422016)
//line views/mutators.qtpl:125
qw422016.N().S(`
`)
//line views/mutators.qtpl:126
}
//line views/mutators.qtpl:126
func WritePreviewHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, textAreaFill, message, warning string, renderedPage string) {
//line views/mutators.qtpl:126
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/mutators.qtpl:126
StreamPreviewHTML(qw422016, rq, hyphaName, textAreaFill, message, warning, renderedPage)
//line views/mutators.qtpl:126
qt422016.ReleaseWriter(qw422016)
//line views/mutators.qtpl:126
}
//line views/mutators.qtpl:126
func PreviewHTML(rq *http.Request, hyphaName, textAreaFill, message, warning string, renderedPage string) string {
//line views/mutators.qtpl:126
qb422016 := qt422016.AcquireByteBuffer()
//line views/mutators.qtpl:126
WritePreviewHTML(qb422016, rq, hyphaName, textAreaFill, message, warning, renderedPage)
//line views/mutators.qtpl:126
qs422016 := string(qb422016.B)
//line views/mutators.qtpl:126
qt422016.ReleaseByteBuffer(qb422016)
//line views/mutators.qtpl:126
return qs422016
//line views/mutators.qtpl:126
}
//line views/mutators.qtpl:128
func streameditScripts(qw422016 *qt422016.Writer) {
//line views/mutators.qtpl:128
qw422016.N().S(`
`)
//line views/mutators.qtpl:130
for _, scriptPath := range cfg.EditScripts {
//line views/mutators.qtpl:130
qw422016.N().S(`
`)
//line views/mutators.qtpl:132
}
//line views/mutators.qtpl:132
qw422016.N().S(`
`)
//line views/mutators.qtpl:133
}
//line views/mutators.qtpl:133
func writeeditScripts(qq422016 qtio422016.Writer) {
//line views/mutators.qtpl:133
qw422016 := qt422016.AcquireWriter(qq422016)
//line views/mutators.qtpl:133
streameditScripts(qw422016)
//line views/mutators.qtpl:133
qt422016.ReleaseWriter(qw422016)
//line views/mutators.qtpl:133
}
//line views/mutators.qtpl:133
func editScripts() string {
//line views/mutators.qtpl:133
qb422016 := qt422016.AcquireByteBuffer()
//line views/mutators.qtpl:133
writeeditScripts(qb422016)
//line views/mutators.qtpl:133
qs422016 := string(qb422016.B)
//line views/mutators.qtpl:133
qt422016.ReleaseByteBuffer(qb422016)
//line views/mutators.qtpl:133
return qs422016
//line views/mutators.qtpl:133
}