// Code generated by qtc from "modal.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line views/modal.qtpl:1 package views //line views/modal.qtpl:1 import "fmt" //line views/modal.qtpl:2 import "net/http" //line views/modal.qtpl:3 import "github.com/bouncepaw/mycorrhiza/l18n" //line views/modal.qtpl:5 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line views/modal.qtpl:5 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line views/modal.qtpl:5 func StreamDeleteAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string) { //line views/modal.qtpl:5 qw422016.N().S(` `) //line views/modal.qtpl:7 lc := l18n.FromRequest(rq) //line views/modal.qtpl:8 qw422016.N().S(` `) //line views/modal.qtpl:9 streammodalBegin(qw422016, "delete-confirm", hyphaName, "", fmt.Sprintf(lc.Get("ui.ask_delete"), beautifulLink(hyphaName))) //line views/modal.qtpl:13 qw422016.N().S(` `) //line views/modal.qtpl:14 streammodalReallyWant(qw422016, hyphaName, lc.Get("ui.ask_delete_verb"), lc) //line views/modal.qtpl:14 qw422016.N().S(`
`) //line views/modal.qtpl:15 qw422016.E().S(lc.Get("ui.ask_delete_tip")) //line views/modal.qtpl:15 qw422016.N().S(`
`) //line views/modal.qtpl:16 streammodalEnd(qw422016, hyphaName, true, lc) //line views/modal.qtpl:16 qw422016.N().S(` `) //line views/modal.qtpl:17 } //line views/modal.qtpl:17 func WriteDeleteAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string) { //line views/modal.qtpl:17 qw422016 := qt422016.AcquireWriter(qq422016) //line views/modal.qtpl:17 StreamDeleteAskHTML(qw422016, rq, hyphaName) //line views/modal.qtpl:17 qt422016.ReleaseWriter(qw422016) //line views/modal.qtpl:17 } //line views/modal.qtpl:17 func DeleteAskHTML(rq *http.Request, hyphaName string) string { //line views/modal.qtpl:17 qb422016 := qt422016.AcquireByteBuffer() //line views/modal.qtpl:17 WriteDeleteAskHTML(qb422016, rq, hyphaName) //line views/modal.qtpl:17 qs422016 := string(qb422016.B) //line views/modal.qtpl:17 qt422016.ReleaseByteBuffer(qb422016) //line views/modal.qtpl:17 return qs422016 //line views/modal.qtpl:17 } //line views/modal.qtpl:19 func StreamUnattachAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string) { //line views/modal.qtpl:19 qw422016.N().S(` `) //line views/modal.qtpl:21 lc := l18n.FromRequest(rq) //line views/modal.qtpl:22 qw422016.N().S(` `) //line views/modal.qtpl:23 streammodalBegin(qw422016, "unattach", hyphaName, "", fmt.Sprintf(lc.Get("ui.ask_unattach"), beautifulLink(hyphaName))) //line views/modal.qtpl:27 qw422016.N().S(` `) //line views/modal.qtpl:28 streammodalReallyWant(qw422016, hyphaName, lc.Get("ui.ask_unattach_verb"), lc) //line views/modal.qtpl:28 qw422016.N().S(` `) //line views/modal.qtpl:29 streammodalEnd(qw422016, hyphaName, true, lc) //line views/modal.qtpl:29 qw422016.N().S(` `) //line views/modal.qtpl:30 } //line views/modal.qtpl:30 func WriteUnattachAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string) { //line views/modal.qtpl:30 qw422016 := qt422016.AcquireWriter(qq422016) //line views/modal.qtpl:30 StreamUnattachAskHTML(qw422016, rq, hyphaName) //line views/modal.qtpl:30 qt422016.ReleaseWriter(qw422016) //line views/modal.qtpl:30 } //line views/modal.qtpl:30 func UnattachAskHTML(rq *http.Request, hyphaName string) string { //line views/modal.qtpl:30 qb422016 := qt422016.AcquireByteBuffer() //line views/modal.qtpl:30 WriteUnattachAskHTML(qb422016, rq, hyphaName) //line views/modal.qtpl:30 qs422016 := string(qb422016.B) //line views/modal.qtpl:30 qt422016.ReleaseByteBuffer(qb422016) //line views/modal.qtpl:30 return qs422016 //line views/modal.qtpl:30 } //line views/modal.qtpl:32 func StreamRenameAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string) { //line views/modal.qtpl:32 qw422016.N().S(` `) //line views/modal.qtpl:34 lc := l18n.FromRequest(rq) //line views/modal.qtpl:35 qw422016.N().S(` `) //line views/modal.qtpl:36 streammodalBegin(qw422016, "rename-confirm", hyphaName, ` method="post" enctype="multipart/form-data"`, fmt.Sprintf(lc.Get("ui.ask_rename"), beautifulLink(hyphaName))) //line views/modal.qtpl:40 qw422016.N().S(``) //line views/modal.qtpl:47 qw422016.E().S(lc.Get("ui.rename_tip")) //line views/modal.qtpl:47 qw422016.N().S(`
`) //line views/modal.qtpl:48 streammodalEnd(qw422016, hyphaName, false, lc) //line views/modal.qtpl:48 qw422016.N().S(` `) //line views/modal.qtpl:49 } //line views/modal.qtpl:49 func WriteRenameAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string) { //line views/modal.qtpl:49 qw422016 := qt422016.AcquireWriter(qq422016) //line views/modal.qtpl:49 StreamRenameAskHTML(qw422016, rq, hyphaName) //line views/modal.qtpl:49 qt422016.ReleaseWriter(qw422016) //line views/modal.qtpl:49 } //line views/modal.qtpl:49 func RenameAskHTML(rq *http.Request, hyphaName string) string { //line views/modal.qtpl:49 qb422016 := qt422016.AcquireByteBuffer() //line views/modal.qtpl:49 WriteRenameAskHTML(qb422016, rq, hyphaName) //line views/modal.qtpl:49 qs422016 := string(qb422016.B) //line views/modal.qtpl:49 qt422016.ReleaseByteBuffer(qb422016) //line views/modal.qtpl:49 return qs422016 //line views/modal.qtpl:49 } //line views/modal.qtpl:51 func streammodalReallyWant(qw422016 *qt422016.Writer, hyphaName, verb string, lc *l18n.Localizer) { //line views/modal.qtpl:51 qw422016.N().S(``) //line views/modal.qtpl:52 qw422016.N().S(lc.Get("ui.ask_really", &l18n.Replacements{"verb": verb, "name": fmt.Sprintf("%s", hyphaName)})) //line views/modal.qtpl:52 qw422016.N().S(`
`) //line views/modal.qtpl:53 } //line views/modal.qtpl:53 func writemodalReallyWant(qq422016 qtio422016.Writer, hyphaName, verb string, lc *l18n.Localizer) { //line views/modal.qtpl:53 qw422016 := qt422016.AcquireWriter(qq422016) //line views/modal.qtpl:53 streammodalReallyWant(qw422016, hyphaName, verb, lc) //line views/modal.qtpl:53 qt422016.ReleaseWriter(qw422016) //line views/modal.qtpl:53 } //line views/modal.qtpl:53 func modalReallyWant(hyphaName, verb string, lc *l18n.Localizer) string { //line views/modal.qtpl:53 qb422016 := qt422016.AcquireByteBuffer() //line views/modal.qtpl:53 writemodalReallyWant(qb422016, hyphaName, verb, lc) //line views/modal.qtpl:53 qs422016 := string(qb422016.B) //line views/modal.qtpl:53 qt422016.ReleaseByteBuffer(qb422016) //line views/modal.qtpl:53 return qs422016 //line views/modal.qtpl:53 } //line views/modal.qtpl:55 func streammodalBegin(qw422016 *qt422016.Writer, path, hyphaName, formAttrs, legend string) { //line views/modal.qtpl:55 qw422016.N().S(`