2021-02-20 16:50:25 +00:00
|
|
|
// Code generated by qtc from "history.qtpl". DO NOT EDIT.
|
|
|
|
// See https://github.com/valyala/quicktemplate for details.
|
|
|
|
|
|
|
|
//line views/history.qtpl:1
|
|
|
|
package views
|
|
|
|
|
|
|
|
//line views/history.qtpl:1
|
2021-07-01 09:37:41 +00:00
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
//line views/history.qtpl:2
|
2021-02-20 16:50:25 +00:00
|
|
|
import "net/http"
|
|
|
|
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:4
|
2021-09-06 17:46:34 +00:00
|
|
|
import "github.com/bouncepaw/mycorrhiza/l18n"
|
|
|
|
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:6
|
2021-02-20 16:50:25 +00:00
|
|
|
import (
|
|
|
|
qtio422016 "io"
|
|
|
|
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
|
|
)
|
|
|
|
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:6
|
2021-02-20 16:50:25 +00:00
|
|
|
var (
|
|
|
|
_ = qtio422016.Copy
|
|
|
|
_ = qt422016.AcquireByteBuffer
|
|
|
|
)
|
|
|
|
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:6
|
2022-03-20 21:24:40 +00:00
|
|
|
func StreamHistory(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, list string, lc *l18n.Localizer) {
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:6
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<main class="main-width">
|
|
|
|
<article class="history">
|
2021-09-06 17:46:34 +00:00
|
|
|
<h1>`)
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:9
|
2021-09-06 17:46:34 +00:00
|
|
|
qw422016.N().S(fmt.Sprintf(lc.Get("ui.history_title"), beautifulLink(hyphaName)))
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:9
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`</h1>
|
|
|
|
`)
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:10
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(list)
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:10
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</article>
|
|
|
|
</main>
|
|
|
|
`)
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:13
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|
|
|
|
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:13
|
2022-03-20 21:24:40 +00:00
|
|
|
func WriteHistory(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, list string, lc *l18n.Localizer) {
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:13
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:13
|
2022-03-20 21:24:40 +00:00
|
|
|
StreamHistory(qw422016, rq, hyphaName, list, lc)
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:13
|
2021-02-20 16:50:25 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:13
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|
|
|
|
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:13
|
2022-03-20 21:24:40 +00:00
|
|
|
func History(rq *http.Request, hyphaName, list string, lc *l18n.Localizer) string {
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:13
|
2021-02-20 16:50:25 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:13
|
2022-03-20 21:24:40 +00:00
|
|
|
WriteHistory(qb422016, rq, hyphaName, list, lc)
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:13
|
2021-02-20 16:50:25 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:13
|
2021-02-20 16:50:25 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:13
|
2021-02-20 16:50:25 +00:00
|
|
|
return qs422016
|
2022-05-18 16:12:00 +00:00
|
|
|
//line views/history.qtpl:13
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|