2022-08-06 11:35:17 +00:00
|
|
|
// Code generated by qtc from "remove_media.qtpl". DO NOT EDIT.
|
2021-02-22 18:11:37 +00:00
|
|
|
// See https://github.com/valyala/quicktemplate for details.
|
|
|
|
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:1
|
|
|
|
package hypview
|
2021-02-22 18:11:37 +00:00
|
|
|
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:1
|
2021-09-06 17:46:34 +00:00
|
|
|
import "fmt"
|
|
|
|
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:2
|
2021-02-22 18:11:37 +00:00
|
|
|
import "net/http"
|
|
|
|
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:3
|
2021-09-06 17:46:34 +00:00
|
|
|
import "github.com/bouncepaw/mycorrhiza/l18n"
|
|
|
|
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:5
|
2021-02-22 18:11:37 +00:00
|
|
|
import (
|
|
|
|
qtio422016 "io"
|
|
|
|
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
|
|
)
|
|
|
|
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:5
|
2021-02-22 18:11:37 +00:00
|
|
|
var (
|
|
|
|
_ = qtio422016.Copy
|
|
|
|
_ = qt422016.AcquireByteBuffer
|
|
|
|
)
|
|
|
|
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:5
|
2022-06-16 11:05:30 +00:00
|
|
|
func StreamRemoveMediaAsk(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string) {
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:5
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:7
|
2021-09-06 17:46:34 +00:00
|
|
|
lc := l18n.FromRequest(rq)
|
|
|
|
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:8
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(`
|
2022-06-16 10:40:37 +00:00
|
|
|
<main class="main-width">
|
2022-06-16 11:05:30 +00:00
|
|
|
<form class="modal" action="/remove-media/`)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:10
|
2022-06-16 10:40:37 +00:00
|
|
|
qw422016.E().S(hyphaName)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:10
|
2022-06-16 10:40:37 +00:00
|
|
|
qw422016.N().S(`" method="post">
|
|
|
|
<fieldset class="modal__fieldset">
|
|
|
|
<legend class="modal__title">
|
|
|
|
`)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:13
|
2022-06-16 11:05:30 +00:00
|
|
|
qw422016.N().S(fmt.Sprintf(lc.Get("ui.ask_remove_media"), beautifulLink(hyphaName)))
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:13
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
2022-06-16 10:40:37 +00:00
|
|
|
</legend>
|
|
|
|
<p class="modal__confirmation-msg">
|
|
|
|
`)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:16
|
2022-06-14 19:40:15 +00:00
|
|
|
qw422016.N().S(lc.Get("ui.ask_really", &l18n.Replacements{"verb": lc.Get("ui.ask_remove_media_verb"), "name": fmt.Sprintf("<em>%s</em>", hyphaName)}))
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:16
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
2022-06-16 10:40:37 +00:00
|
|
|
</p>
|
|
|
|
<button type="submit" value="Confirm" class="btn" autofocus>
|
|
|
|
`)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:19
|
2022-06-16 10:40:37 +00:00
|
|
|
qw422016.E().S(lc.Get("ui.confirm"))
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:19
|
2022-06-16 10:40:37 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</button>
|
|
|
|
<a href="/hypha/`)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:21
|
2022-06-16 10:40:37 +00:00
|
|
|
qw422016.E().S(hyphaName)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:21
|
2022-06-16 10:40:37 +00:00
|
|
|
qw422016.N().S(`" class="btn btn_weak">
|
|
|
|
`)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:22
|
2022-06-16 10:40:37 +00:00
|
|
|
qw422016.E().S(lc.Get("ui.cancel"))
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:22
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016.N().S(`
|
2022-06-16 10:40:37 +00:00
|
|
|
</a>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</main>
|
2021-02-22 18:11:37 +00:00
|
|
|
`)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:27
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:27
|
2022-03-20 21:24:40 +00:00
|
|
|
func WriteRemoveMediaAsk(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string) {
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:27
|
2021-02-22 18:11:37 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:27
|
2022-03-20 21:24:40 +00:00
|
|
|
StreamRemoveMediaAsk(qw422016, rq, hyphaName)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:27
|
2021-02-22 18:11:37 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:27
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|
|
|
|
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:27
|
2022-03-20 21:24:40 +00:00
|
|
|
func RemoveMediaAsk(rq *http.Request, hyphaName string) string {
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:27
|
2021-02-22 18:11:37 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:27
|
2022-03-20 21:24:40 +00:00
|
|
|
WriteRemoveMediaAsk(qb422016, rq, hyphaName)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:27
|
2021-02-22 18:11:37 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:27
|
2021-02-22 18:11:37 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:27
|
2021-02-22 18:11:37 +00:00
|
|
|
return qs422016
|
2022-08-06 11:35:17 +00:00
|
|
|
//line hypview/remove_media.qtpl:27
|
2021-02-22 18:11:37 +00:00
|
|
|
}
|