1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-31 04:06:16 +00:00
mycorrhiza/templates/unattach.qtpl.go

151 lines
4.3 KiB
Go
Raw Normal View History

2021-01-19 18:08:59 +00:00
// Code generated by qtc from "unattach.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.
//line templates/unattach.qtpl:1
package templates
//line templates/unattach.qtpl:1
import "net/http"
//line templates/unattach.qtpl:2
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
//line templates/unattach.qtpl:2
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
//line templates/unattach.qtpl:2
func StreamUnattachAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
//line templates/unattach.qtpl:2
qw422016.N().S(`
`)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:3
2021-01-19 18:08:59 +00:00
streamnavHTML(qw422016, rq, hyphaName, "unattach-ask")
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:3
2021-01-19 18:08:59 +00:00
qw422016.N().S(`
2021-01-26 05:41:57 +00:00
<div class="layout">
<main class="main-width">
2021-01-19 18:08:59 +00:00
`)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:6
2021-01-19 18:08:59 +00:00
if isOld {
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:6
2021-01-19 18:08:59 +00:00
qw422016.N().S(` <section>
<h1>Unattach `)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:8
2021-01-19 18:08:59 +00:00
qw422016.E().S(hyphaName)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:8
2021-01-19 18:08:59 +00:00
qw422016.N().S(`?</h1>
<p>Do you really want to unattach hypha <em>`)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:9
2021-01-19 18:08:59 +00:00
qw422016.E().S(hyphaName)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:9
2021-01-19 18:08:59 +00:00
qw422016.N().S(`</em>?</p>
<p><a href="/unattach-confirm/`)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:10
2021-01-19 18:08:59 +00:00
qw422016.E().S(hyphaName)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:10
2021-01-19 18:08:59 +00:00
qw422016.N().S(`"><strong>Confirm</strong></a></p>
<p><a href="/page/`)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:11
2021-01-19 18:08:59 +00:00
qw422016.E().S(hyphaName)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:11
2021-01-19 18:08:59 +00:00
qw422016.N().S(`">Cancel</a></p>
</section>
`)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:13
2021-01-19 18:08:59 +00:00
} else {
//line templates/unattach.qtpl:13
2021-01-26 05:41:57 +00:00
qw422016.N().S(` `)
//line templates/unattach.qtpl:14
2021-01-19 18:08:59 +00:00
streamcannotUnattachDueToNonExistence(qw422016, hyphaName)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:14
2021-01-19 18:08:59 +00:00
qw422016.N().S(`
`)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:15
2021-01-19 18:08:59 +00:00
}
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:15
2021-01-19 18:08:59 +00:00
qw422016.N().S(`</main>
2021-01-26 05:41:57 +00:00
</div>
2021-01-19 18:08:59 +00:00
`)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:18
2021-01-19 18:08:59 +00:00
}
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:18
2021-01-19 18:08:59 +00:00
func WriteUnattachAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:18
2021-01-19 18:08:59 +00:00
qw422016 := qt422016.AcquireWriter(qq422016)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:18
2021-01-19 18:08:59 +00:00
StreamUnattachAskHTML(qw422016, rq, hyphaName, isOld)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:18
2021-01-19 18:08:59 +00:00
qt422016.ReleaseWriter(qw422016)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:18
2021-01-19 18:08:59 +00:00
}
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:18
2021-01-19 18:08:59 +00:00
func UnattachAskHTML(rq *http.Request, hyphaName string, isOld bool) string {
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:18
2021-01-19 18:08:59 +00:00
qb422016 := qt422016.AcquireByteBuffer()
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:18
2021-01-19 18:08:59 +00:00
WriteUnattachAskHTML(qb422016, rq, hyphaName, isOld)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:18
2021-01-19 18:08:59 +00:00
qs422016 := string(qb422016.B)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:18
2021-01-19 18:08:59 +00:00
qt422016.ReleaseByteBuffer(qb422016)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:18
2021-01-19 18:08:59 +00:00
return qs422016
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:18
2021-01-19 18:08:59 +00:00
}
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:20
2021-01-19 18:08:59 +00:00
func streamcannotUnattachDueToNonExistence(qw422016 *qt422016.Writer, hyphaName string) {
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:20
2021-01-19 18:08:59 +00:00
qw422016.N().S(`
<section>
<h1>Cannot unattach `)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:22
2021-01-19 18:08:59 +00:00
qw422016.E().S(hyphaName)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:22
2021-01-19 18:08:59 +00:00
qw422016.N().S(`</h1>
<p>This hypha does not exist.</p>
<p><a href="/page/`)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:24
2021-01-19 18:08:59 +00:00
qw422016.E().S(hyphaName)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:24
2021-01-19 18:08:59 +00:00
qw422016.N().S(`">Go back</a></p>
</section>
`)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:26
2021-01-19 18:08:59 +00:00
}
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:26
2021-01-19 18:08:59 +00:00
func writecannotUnattachDueToNonExistence(qq422016 qtio422016.Writer, hyphaName string) {
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:26
2021-01-19 18:08:59 +00:00
qw422016 := qt422016.AcquireWriter(qq422016)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:26
2021-01-19 18:08:59 +00:00
streamcannotUnattachDueToNonExistence(qw422016, hyphaName)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:26
2021-01-19 18:08:59 +00:00
qt422016.ReleaseWriter(qw422016)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:26
2021-01-19 18:08:59 +00:00
}
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:26
2021-01-19 18:08:59 +00:00
func cannotUnattachDueToNonExistence(hyphaName string) string {
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:26
2021-01-19 18:08:59 +00:00
qb422016 := qt422016.AcquireByteBuffer()
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:26
2021-01-19 18:08:59 +00:00
writecannotUnattachDueToNonExistence(qb422016, hyphaName)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:26
2021-01-19 18:08:59 +00:00
qs422016 := string(qb422016.B)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:26
2021-01-19 18:08:59 +00:00
qt422016.ReleaseByteBuffer(qb422016)
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:26
2021-01-19 18:08:59 +00:00
return qs422016
2021-01-26 05:41:57 +00:00
//line templates/unattach.qtpl:26
2021-01-19 18:08:59 +00:00
}