2021-01-24 12:52:40 +00:00
|
|
|
// Code generated by qtc from "readers.qtpl". DO NOT EDIT.
|
2020-08-31 17:52:26 +00:00
|
|
|
// See https://github.com/valyala/quicktemplate for details.
|
|
|
|
|
2021-01-24 12:52:40 +00:00
|
|
|
//line templates/readers.qtpl:1
|
2020-08-31 17:52:26 +00:00
|
|
|
package templates
|
|
|
|
|
2021-01-24 12:52:40 +00:00
|
|
|
//line templates/readers.qtpl:1
|
2020-11-16 15:26:03 +00:00
|
|
|
import "net/http"
|
|
|
|
|
2021-01-24 12:52:40 +00:00
|
|
|
//line templates/readers.qtpl:2
|
2020-11-29 11:32:52 +00:00
|
|
|
import "path"
|
|
|
|
|
2021-01-24 12:52:40 +00:00
|
|
|
//line templates/readers.qtpl:3
|
2021-02-20 15:48:51 +00:00
|
|
|
import "github.com/bouncepaw/mycorrhiza/hyphae"
|
2020-11-16 15:26:03 +00:00
|
|
|
|
2021-02-06 16:14:57 +00:00
|
|
|
//line templates/readers.qtpl:4
|
2021-02-20 15:48:51 +00:00
|
|
|
import "github.com/bouncepaw/mycorrhiza/user"
|
|
|
|
|
|
|
|
//line templates/readers.qtpl:5
|
2021-02-06 16:14:57 +00:00
|
|
|
import "github.com/bouncepaw/mycorrhiza/util"
|
|
|
|
|
|
|
|
//line templates/readers.qtpl:6
|
2021-02-20 15:48:51 +00:00
|
|
|
import "github.com/bouncepaw/mycorrhiza/views"
|
|
|
|
|
|
|
|
//line templates/readers.qtpl:8
|
2020-08-31 17:52:26 +00:00
|
|
|
import (
|
|
|
|
qtio422016 "io"
|
|
|
|
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
|
|
)
|
|
|
|
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:8
|
2020-08-31 17:52:26 +00:00
|
|
|
var (
|
|
|
|
_ = qtio422016.Copy
|
|
|
|
_ = qt422016.AcquireByteBuffer
|
|
|
|
)
|
|
|
|
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:8
|
2020-11-29 17:06:45 +00:00
|
|
|
func StreamHistoryHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, list string) {
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:8
|
2020-08-31 17:52:26 +00:00
|
|
|
qw422016.N().S(`
|
2020-10-02 15:31:59 +00:00
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:9
|
2020-11-16 15:26:03 +00:00
|
|
|
streamnavHTML(qw422016, rq, hyphaName, "history")
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:9
|
2020-10-02 15:31:59 +00:00
|
|
|
qw422016.N().S(`
|
2021-01-26 05:41:57 +00:00
|
|
|
<div class="layout">
|
|
|
|
<main class="main-width">
|
2020-11-29 17:06:45 +00:00
|
|
|
<article class="history">
|
|
|
|
<h1>History of `)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:13
|
2020-11-29 17:06:45 +00:00
|
|
|
qw422016.E().S(hyphaName)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:13
|
2020-11-29 17:06:45 +00:00
|
|
|
qw422016.N().S(`</h1>
|
2020-10-02 15:31:59 +00:00
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:14
|
2020-11-29 17:06:45 +00:00
|
|
|
qw422016.N().S(list)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:14
|
2020-08-31 17:52:26 +00:00
|
|
|
qw422016.N().S(`
|
2020-11-29 17:06:45 +00:00
|
|
|
</article>
|
2020-10-02 15:31:59 +00:00
|
|
|
</main>
|
2021-01-26 05:41:57 +00:00
|
|
|
</div>
|
2020-08-31 17:52:26 +00:00
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:18
|
2020-08-31 17:52:26 +00:00
|
|
|
}
|
|
|
|
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:18
|
2020-11-29 17:06:45 +00:00
|
|
|
func WriteHistoryHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, list string) {
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:18
|
2020-08-31 17:52:26 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:18
|
2020-11-29 17:06:45 +00:00
|
|
|
StreamHistoryHTML(qw422016, rq, hyphaName, list)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:18
|
2020-08-31 17:52:26 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:18
|
2020-08-31 17:52:26 +00:00
|
|
|
}
|
|
|
|
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:18
|
2020-11-29 17:06:45 +00:00
|
|
|
func HistoryHTML(rq *http.Request, hyphaName, list string) string {
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:18
|
2020-08-31 17:52:26 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:18
|
2020-11-29 17:06:45 +00:00
|
|
|
WriteHistoryHTML(qb422016, rq, hyphaName, list)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:18
|
2020-08-31 17:52:26 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:18
|
2020-08-31 17:52:26 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:18
|
2020-08-31 17:52:26 +00:00
|
|
|
return qs422016
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:18
|
2020-08-31 17:52:26 +00:00
|
|
|
}
|
|
|
|
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:20
|
|
|
|
func StreamRevisionHTML(qw422016 *qt422016.Writer, rq *http.Request, h *hyphae.Hypha, contents, relatives, subhyphae, revHash string) {
|
|
|
|
//line templates/readers.qtpl:20
|
2020-08-31 17:52:26 +00:00
|
|
|
qw422016.N().S(`
|
2020-10-02 15:31:59 +00:00
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:21
|
|
|
|
streamnavHTML(qw422016, rq, h.Name, "revision", revHash)
|
|
|
|
//line templates/readers.qtpl:21
|
2020-10-02 15:31:59 +00:00
|
|
|
qw422016.N().S(`
|
2021-01-26 05:41:57 +00:00
|
|
|
<div class="layout">
|
|
|
|
<main class="main-width">
|
2020-10-02 15:31:59 +00:00
|
|
|
<article>
|
|
|
|
<p>Please note that viewing binary parts of hyphae is not supported in history for now.</p>
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:26
|
|
|
|
qw422016.N().S(views.NaviTitleHTML(h))
|
|
|
|
//line templates/readers.qtpl:26
|
2020-08-31 17:52:26 +00:00
|
|
|
qw422016.N().S(`
|
2020-10-02 15:31:59 +00:00
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:27
|
2020-08-31 17:52:26 +00:00
|
|
|
qw422016.N().S(contents)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:27
|
2020-08-31 17:52:26 +00:00
|
|
|
qw422016.N().S(`
|
2020-10-02 15:31:59 +00:00
|
|
|
</article>
|
2021-02-19 18:12:36 +00:00
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:29
|
2021-02-19 18:12:36 +00:00
|
|
|
streamsubhyphaeMatrix(qw422016, subhyphae)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:29
|
2021-02-19 18:12:36 +00:00
|
|
|
qw422016.N().S(`
|
2020-10-02 15:31:59 +00:00
|
|
|
</main>
|
2020-08-31 17:52:26 +00:00
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:31
|
2021-01-26 05:41:57 +00:00
|
|
|
streamrelativeHyphae(qw422016, relatives)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:31
|
2021-01-26 05:41:57 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</div>
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:33
|
2020-08-31 17:52:26 +00:00
|
|
|
}
|
|
|
|
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:33
|
|
|
|
func WriteRevisionHTML(qq422016 qtio422016.Writer, rq *http.Request, h *hyphae.Hypha, contents, relatives, subhyphae, revHash string) {
|
|
|
|
//line templates/readers.qtpl:33
|
2020-08-31 17:52:26 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:33
|
|
|
|
StreamRevisionHTML(qw422016, rq, h, contents, relatives, subhyphae, revHash)
|
|
|
|
//line templates/readers.qtpl:33
|
2020-08-31 17:52:26 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:33
|
2020-08-31 17:52:26 +00:00
|
|
|
}
|
|
|
|
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:33
|
|
|
|
func RevisionHTML(rq *http.Request, h *hyphae.Hypha, contents, relatives, subhyphae, revHash string) string {
|
|
|
|
//line templates/readers.qtpl:33
|
2020-08-31 17:52:26 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:33
|
|
|
|
WriteRevisionHTML(qb422016, rq, h, contents, relatives, subhyphae, revHash)
|
|
|
|
//line templates/readers.qtpl:33
|
2020-08-31 17:52:26 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:33
|
2020-08-31 17:52:26 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:33
|
2020-08-31 17:52:26 +00:00
|
|
|
return qs422016
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:33
|
2020-08-31 17:52:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// If `contents` == "", a helpful message is shown instead.
|
|
|
|
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:36
|
|
|
|
func StreamPageHTML(qw422016 *qt422016.Writer, rq *http.Request, h *hyphae.Hypha, contents, relatives, subhyphae, prevHyphaName, nextHyphaName string) {
|
|
|
|
//line templates/readers.qtpl:36
|
2020-08-31 17:52:26 +00:00
|
|
|
qw422016.N().S(`
|
2020-10-02 15:31:59 +00:00
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:37
|
|
|
|
streamnavHTML(qw422016, rq, h.Name, "page")
|
|
|
|
//line templates/readers.qtpl:37
|
2020-10-02 15:31:59 +00:00
|
|
|
qw422016.N().S(`
|
2021-01-25 18:37:21 +00:00
|
|
|
<div class="layout">
|
2021-01-26 05:41:57 +00:00
|
|
|
<main class="main-width">
|
|
|
|
<article>
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:41
|
|
|
|
qw422016.N().S(views.NaviTitleHTML(h))
|
|
|
|
//line templates/readers.qtpl:41
|
2021-01-26 05:41:57 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:42
|
2021-01-26 05:41:57 +00:00
|
|
|
if contents == "" {
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:42
|
2021-01-26 05:41:57 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<p>This hypha has no text. Why not <a href="/edit/`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:43
|
|
|
|
qw422016.E().S(h.Name)
|
|
|
|
//line templates/readers.qtpl:43
|
2021-01-26 05:41:57 +00:00
|
|
|
qw422016.N().S(`">create it</a>?</p>
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:44
|
2021-01-26 05:41:57 +00:00
|
|
|
} else {
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:44
|
2020-08-31 17:52:26 +00:00
|
|
|
qw422016.N().S(`
|
2021-01-25 18:37:21 +00:00
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:45
|
2021-01-26 05:41:57 +00:00
|
|
|
qw422016.N().S(contents)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:45
|
2021-01-26 05:41:57 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:46
|
2021-01-26 05:41:57 +00:00
|
|
|
}
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:46
|
2020-08-31 17:52:26 +00:00
|
|
|
qw422016.N().S(`
|
2021-01-26 05:41:57 +00:00
|
|
|
</article>
|
|
|
|
<section class="prevnext">
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:49
|
2020-11-29 11:32:52 +00:00
|
|
|
if prevHyphaName != "" {
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:49
|
2021-02-06 16:14:57 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<a class="prevnext__el prevnext__prev" href="/hypha/`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:50
|
2020-11-29 11:32:52 +00:00
|
|
|
qw422016.E().S(prevHyphaName)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:50
|
2021-01-14 11:39:54 +00:00
|
|
|
qw422016.N().S(`" rel="prev">← `)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:50
|
2021-02-06 16:14:57 +00:00
|
|
|
qw422016.E().S(util.BeautifulName(path.Base(prevHyphaName)))
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:50
|
2021-01-26 05:41:57 +00:00
|
|
|
qw422016.N().S(`</a>
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:51
|
2020-11-29 11:32:52 +00:00
|
|
|
}
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:51
|
2021-01-26 05:41:57 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:52
|
2020-11-29 11:32:52 +00:00
|
|
|
if nextHyphaName != "" {
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:52
|
2021-02-06 16:14:57 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<a class="prevnext__el prevnext__next" href="/hypha/`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:53
|
2020-11-29 11:32:52 +00:00
|
|
|
qw422016.E().S(nextHyphaName)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:53
|
2021-01-14 11:39:54 +00:00
|
|
|
qw422016.N().S(`" rel="next">`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:53
|
2021-02-06 16:14:57 +00:00
|
|
|
qw422016.E().S(util.BeautifulName(path.Base(nextHyphaName)))
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:53
|
2021-01-26 05:41:57 +00:00
|
|
|
qw422016.N().S(` →</a>
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:54
|
2020-11-29 11:32:52 +00:00
|
|
|
}
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:54
|
2020-11-29 11:32:52 +00:00
|
|
|
qw422016.N().S(`
|
2021-01-26 05:41:57 +00:00
|
|
|
</section>
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:56
|
2021-01-09 20:49:48 +00:00
|
|
|
if u := user.FromRequest(rq); !user.AuthUsed || u.Group != "anon" {
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:56
|
2021-01-26 05:41:57 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<form action="/upload-binary/`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:57
|
|
|
|
qw422016.E().S(h.Name)
|
|
|
|
//line templates/readers.qtpl:57
|
2020-11-16 15:26:03 +00:00
|
|
|
qw422016.N().S(`"
|
2021-01-26 05:41:57 +00:00
|
|
|
method="post" enctype="multipart/form-data"
|
|
|
|
class="upload-amnt">
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:60
|
|
|
|
if h.Exists && h.BinaryPath != "" {
|
|
|
|
//line templates/readers.qtpl:60
|
2021-01-26 05:41:57 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<a class="upload-amnt__unattach" href="/unattach-ask/`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:61
|
|
|
|
qw422016.E().S(h.Name)
|
|
|
|
//line templates/readers.qtpl:61
|
2021-01-26 05:41:57 +00:00
|
|
|
qw422016.N().S(`">Unattach current attachment?</a>
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:62
|
2021-01-19 18:08:59 +00:00
|
|
|
}
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:62
|
2021-01-19 18:08:59 +00:00
|
|
|
qw422016.N().S(`
|
2021-01-26 05:41:57 +00:00
|
|
|
<label for="upload-binary__input">Upload a new attachment</label>
|
|
|
|
<br>
|
|
|
|
<input type="file" id="upload-binary__input" name="binary"/>
|
|
|
|
<input type="submit"/>
|
|
|
|
</form>
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:68
|
2020-11-16 15:26:03 +00:00
|
|
|
}
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:68
|
2020-08-31 17:52:26 +00:00
|
|
|
qw422016.N().S(`
|
2021-01-26 05:41:57 +00:00
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:69
|
2021-02-19 18:12:36 +00:00
|
|
|
streamsubhyphaeMatrix(qw422016, subhyphae)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:69
|
2021-01-24 18:41:42 +00:00
|
|
|
qw422016.N().S(`
|
2021-02-19 18:12:36 +00:00
|
|
|
</main>
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:71
|
2021-02-19 18:12:36 +00:00
|
|
|
streamrelativeHyphae(qw422016, relatives)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:71
|
2021-02-19 18:12:36 +00:00
|
|
|
qw422016.N().S(`
|
2021-02-19 09:23:57 +00:00
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:72
|
|
|
|
views.StreamBackLinksHTML(qw422016, h)
|
|
|
|
//line templates/readers.qtpl:72
|
2021-02-19 09:23:57 +00:00
|
|
|
qw422016.N().S(`
|
2021-01-24 18:41:42 +00:00
|
|
|
</div>
|
|
|
|
`)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:74
|
2020-08-31 17:52:26 +00:00
|
|
|
}
|
|
|
|
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:74
|
|
|
|
func WritePageHTML(qq422016 qtio422016.Writer, rq *http.Request, h *hyphae.Hypha, contents, relatives, subhyphae, prevHyphaName, nextHyphaName string) {
|
|
|
|
//line templates/readers.qtpl:74
|
2020-08-31 17:52:26 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:74
|
|
|
|
StreamPageHTML(qw422016, rq, h, contents, relatives, subhyphae, prevHyphaName, nextHyphaName)
|
|
|
|
//line templates/readers.qtpl:74
|
2020-08-31 17:52:26 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:74
|
2020-08-31 17:52:26 +00:00
|
|
|
}
|
|
|
|
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:74
|
|
|
|
func PageHTML(rq *http.Request, h *hyphae.Hypha, contents, relatives, subhyphae, prevHyphaName, nextHyphaName string) string {
|
|
|
|
//line templates/readers.qtpl:74
|
2020-08-31 17:52:26 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:74
|
|
|
|
WritePageHTML(qb422016, rq, h, contents, relatives, subhyphae, prevHyphaName, nextHyphaName)
|
|
|
|
//line templates/readers.qtpl:74
|
2020-08-31 17:52:26 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:74
|
2020-08-31 17:52:26 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:74
|
2020-08-31 17:52:26 +00:00
|
|
|
return qs422016
|
2021-02-20 15:48:51 +00:00
|
|
|
//line templates/readers.qtpl:74
|
2020-08-31 17:52:26 +00:00
|
|
|
}
|