1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-12 05:20:26 +00:00
mycorrhiza/templates/delete.qtpl.go
2021-01-20 18:53:30 +05:00

155 lines
4.3 KiB
Go

// Code generated by qtc from "delete.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.
//line templates/delete.qtpl:1
package templates
//line templates/delete.qtpl:1
import "net/http"
// This dialog is to be shown to a user when they try to delete a hypha.
//line templates/delete.qtpl:4
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
//line templates/delete.qtpl:4
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
//line templates/delete.qtpl:4
func StreamDeleteAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
//line templates/delete.qtpl:4
qw422016.N().S(`
`)
//line templates/delete.qtpl:5
streamnavHTML(qw422016, rq, hyphaName, "delete-ask")
//line templates/delete.qtpl:5
qw422016.N().S(`
<main>
`)
//line templates/delete.qtpl:7
if isOld {
//line templates/delete.qtpl:7
qw422016.N().S(`
<section>
<h1>Delete `)
//line templates/delete.qtpl:9
qw422016.E().S(hyphaName)
//line templates/delete.qtpl:9
qw422016.N().S(`?</h1>
<p>Do you really want to delete hypha <em>`)
//line templates/delete.qtpl:10
qw422016.E().S(hyphaName)
//line templates/delete.qtpl:10
qw422016.N().S(`</em>?</p>
<p>In this version of MycorrhizaWiki you cannot undelete a deleted hypha but the history can still be accessed.</p>
<p><a href="/delete-confirm/`)
//line templates/delete.qtpl:12
qw422016.E().S(hyphaName)
//line templates/delete.qtpl:12
qw422016.N().S(`"><strong>Confirm</strong></a></p>
<p><a href="/page/`)
//line templates/delete.qtpl:13
qw422016.E().S(hyphaName)
//line templates/delete.qtpl:13
qw422016.N().S(`">Cancel</a></p>
</section>
`)
//line templates/delete.qtpl:15
} else {
//line templates/delete.qtpl:15
qw422016.N().S(`
`)
//line templates/delete.qtpl:16
streamcannotDeleteDueToNonExistence(qw422016, hyphaName)
//line templates/delete.qtpl:16
qw422016.N().S(`
`)
//line templates/delete.qtpl:17
}
//line templates/delete.qtpl:17
qw422016.N().S(`
</main>
`)
//line templates/delete.qtpl:19
}
//line templates/delete.qtpl:19
func WriteDeleteAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
//line templates/delete.qtpl:19
qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/delete.qtpl:19
StreamDeleteAskHTML(qw422016, rq, hyphaName, isOld)
//line templates/delete.qtpl:19
qt422016.ReleaseWriter(qw422016)
//line templates/delete.qtpl:19
}
//line templates/delete.qtpl:19
func DeleteAskHTML(rq *http.Request, hyphaName string, isOld bool) string {
//line templates/delete.qtpl:19
qb422016 := qt422016.AcquireByteBuffer()
//line templates/delete.qtpl:19
WriteDeleteAskHTML(qb422016, rq, hyphaName, isOld)
//line templates/delete.qtpl:19
qs422016 := string(qb422016.B)
//line templates/delete.qtpl:19
qt422016.ReleaseByteBuffer(qb422016)
//line templates/delete.qtpl:19
return qs422016
//line templates/delete.qtpl:19
}
//line templates/delete.qtpl:21
func streamcannotDeleteDueToNonExistence(qw422016 *qt422016.Writer, hyphaName string) {
//line templates/delete.qtpl:21
qw422016.N().S(`
<section>
<h1>Cannot delete `)
//line templates/delete.qtpl:23
qw422016.E().S(hyphaName)
//line templates/delete.qtpl:23
qw422016.N().S(`</h1>
<p>This hypha does not exist.</p>
<p><a href="/page/`)
//line templates/delete.qtpl:25
qw422016.E().S(hyphaName)
//line templates/delete.qtpl:25
qw422016.N().S(`">Go back</a></p>
</section>
`)
//line templates/delete.qtpl:27
}
//line templates/delete.qtpl:27
func writecannotDeleteDueToNonExistence(qq422016 qtio422016.Writer, hyphaName string) {
//line templates/delete.qtpl:27
qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/delete.qtpl:27
streamcannotDeleteDueToNonExistence(qw422016, hyphaName)
//line templates/delete.qtpl:27
qt422016.ReleaseWriter(qw422016)
//line templates/delete.qtpl:27
}
//line templates/delete.qtpl:27
func cannotDeleteDueToNonExistence(hyphaName string) string {
//line templates/delete.qtpl:27
qb422016 := qt422016.AcquireByteBuffer()
//line templates/delete.qtpl:27
writecannotDeleteDueToNonExistence(qb422016, hyphaName)
//line templates/delete.qtpl:27
qs422016 := string(qb422016.B)
//line templates/delete.qtpl:27
qt422016.ReleaseByteBuffer(qb422016)
//line templates/delete.qtpl:27
return qs422016
//line templates/delete.qtpl:27
}