1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-12 05:20:26 +00:00
mycorrhiza/views/history.qtpl.go

453 lines
11 KiB
Go
Raw Normal View History

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"
//line views/history.qtpl:3
2021-07-01 09:37:41 +00:00
import "time"
//line views/history.qtpl:5
import "github.com/bouncepaw/mycorrhiza/cfg"
2021-02-20 16:50:25 +00:00
2021-07-01 09:37:41 +00:00
//line views/history.qtpl:6
2021-09-06 17:46:34 +00:00
import "github.com/bouncepaw/mycorrhiza/l18n"
//line views/history.qtpl:7
import "github.com/bouncepaw/mycorrhiza/user"
2021-02-20 16:50:25 +00:00
//line views/history.qtpl:8
import "github.com/bouncepaw/mycorrhiza/hyphae"
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:9
import "github.com/bouncepaw/mycorrhiza/history"
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:12
2021-02-20 16:50:25 +00:00
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:12
2021-02-20 16:50:25 +00:00
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:12
func StreamPrimitiveDiffHTML(qw422016 *qt422016.Writer, rq *http.Request, h *hyphae.Hypha, u *user.User, hash string) {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:12
qw422016.N().S(`
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:14
2021-09-06 17:46:34 +00:00
lc := l18n.FromRequest(rq)
2021-07-30 14:20:21 +00:00
text, err := history.PrimitiveDiffAtRevision(h.TextPartPath(), hash)
if err != nil {
text = err.Error()
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:19
qw422016.N().S(`
<div class="layout">
<main class="main-width">
<article>
2021-09-06 17:46:34 +00:00
<h1>`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:23
2021-09-06 17:46:34 +00:00
qw422016.N().S(lc.Get("ui.diff_title", &l18n.Replacements{"name": beautifulLink(h.Name), "rev": hash}))
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:23
qw422016.N().S(`</h1>
<pre class="codeblock"><code>`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:24
qw422016.E().S(text)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:24
qw422016.N().S(`</code></pre>
</article>
</main>
</div>
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:28
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:28
func WritePrimitiveDiffHTML(qq422016 qtio422016.Writer, rq *http.Request, h *hyphae.Hypha, u *user.User, hash string) {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:28
qw422016 := qt422016.AcquireWriter(qq422016)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:28
StreamPrimitiveDiffHTML(qw422016, rq, h, u, hash)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:28
qt422016.ReleaseWriter(qw422016)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:28
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:28
func PrimitiveDiffHTML(rq *http.Request, h *hyphae.Hypha, u *user.User, hash string) string {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:28
qb422016 := qt422016.AcquireByteBuffer()
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:28
WritePrimitiveDiffHTML(qb422016, rq, h, u, hash)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:28
qs422016 := string(qb422016.B)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:28
qt422016.ReleaseByteBuffer(qb422016)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:28
return qs422016
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:28
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:30
2021-09-06 17:46:34 +00:00
func StreamRecentChangesHTML(qw422016 *qt422016.Writer, n int, lc *l18n.Localizer) {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:30
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
<div class="layout">
<main class="main-width recent-changes">
2021-09-06 17:46:34 +00:00
<h1>`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:33
2021-09-06 17:46:34 +00:00
qw422016.E().S(lc.Get("ui.recent_heading"))
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:33
2021-09-06 17:46:34 +00:00
qw422016.N().S(`</h1>
2021-02-20 16:50:25 +00:00
<nav class="recent-changes__count">
2021-09-06 17:46:34 +00:00
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:36
2021-09-06 17:46:34 +00:00
qw422016.E().S(lc.Get("ui.recent_count_pre"))
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:36
2021-09-06 17:46:34 +00:00
qw422016.N().S(`
2021-02-20 16:50:25 +00:00
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:37
2021-07-01 09:37:41 +00:00
for i, m := range []int{20, 50, 100} {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:37
2021-07-01 09:37:41 +00:00
qw422016.N().S(`
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:38
2021-07-01 09:37:41 +00:00
if i > 0 {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:38
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
<span aria-hidden="true">|</span>
2021-07-01 09:37:41 +00:00
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:40
2021-07-01 09:37:41 +00:00
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:40
2021-07-01 09:37:41 +00:00
qw422016.N().S(`
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:41
2021-07-01 09:37:41 +00:00
if m == n {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:41
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
2021-07-01 09:37:41 +00:00
<b>`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:42
2021-02-20 16:50:25 +00:00
qw422016.N().D(m)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:42
2021-07-01 09:37:41 +00:00
qw422016.N().S(`</b>
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:43
2021-07-01 09:37:41 +00:00
} else {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:43
2021-07-01 09:37:41 +00:00
qw422016.N().S(`
<a href="/recent-changes/`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:44
2021-07-01 09:37:41 +00:00
qw422016.N().D(m)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:44
2021-02-20 16:50:25 +00:00
qw422016.N().S(`">`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:44
2021-02-20 16:50:25 +00:00
qw422016.N().D(m)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:44
2021-02-20 16:50:25 +00:00
qw422016.N().S(`</a>
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:45
2021-02-20 16:50:25 +00:00
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:45
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:46
2021-02-20 16:50:25 +00:00
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:46
2021-09-06 17:46:34 +00:00
qw422016.N().S(`
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:47
2021-09-06 17:46:34 +00:00
qw422016.E().S(lc.Get("ui.recent_count_post"))
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:47
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
</nav>
2021-09-06 17:46:34 +00:00
<p><img class="icon" width="20" height="20" src="/static/icon/feed.svg">`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:50
2021-09-06 17:46:34 +00:00
qw422016.N().S(lc.Get("ui.recent_subscribe", &l18n.Replacements{"rss": "<a href=\"/recent-changes-rss\">RSS</a>", "atom": "<a href=\"/recent-changes-atom\">Atom</a>", "json": fmt.Sprintf("<a href=\"/recent-changes-json\">%s</a>", lc.Get("ui.recent_subscribe_json"))}))
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:50
2021-09-06 17:46:34 +00:00
qw422016.N().S(`</p>
2021-02-20 16:50:25 +00:00
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:57
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:60
2021-02-20 16:50:25 +00:00
changes := history.RecentChanges(n)
2021-07-01 09:37:41 +00:00
var year, day int
var month time.Month
2021-02-20 16:50:25 +00:00
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:63
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
<section class="recent-changes__list" role="feed">
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:65
2021-02-20 16:50:25 +00:00
if len(changes) == 0 {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:65
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
2021-09-06 17:46:34 +00:00
<p>`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:66
2021-09-06 17:46:34 +00:00
qw422016.E().S(lc.Get("ui.recent_empty"))
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:66
2021-09-06 17:46:34 +00:00
qw422016.N().S(`</p>
2021-02-20 16:50:25 +00:00
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:67
2021-02-20 16:50:25 +00:00
} else {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:67
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:68
2021-02-20 16:50:25 +00:00
for i, entry := range changes {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:68
2021-07-01 09:37:41 +00:00
qw422016.N().S(`
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:70
2021-07-01 09:37:41 +00:00
y, m, d := entry.Time.UTC().Date()
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:70
2021-07-01 09:37:41 +00:00
qw422016.N().S(`
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:71
2021-07-01 09:37:41 +00:00
if d != day || m != month || y != year {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:71
2021-07-01 09:37:41 +00:00
qw422016.N().S(`
<h2 class="recent-changes__heading">
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:73
2021-07-01 09:37:41 +00:00
qw422016.E().S(fmt.Sprintf("%04d-%02d-%02d", y, m, d))
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:73
qw422016.N().S(`
</h2>
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:75
2021-07-01 09:37:41 +00:00
year, month, day = y, m, d
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:75
2021-07-01 09:37:41 +00:00
qw422016.N().S(`
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:76
2021-07-01 09:37:41 +00:00
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:76
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
2021-07-01 09:37:41 +00:00
<div class="recent-changes__entry" role="article"
2021-02-20 16:50:25 +00:00
aria-setsize="`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:79
2021-02-20 16:50:25 +00:00
qw422016.N().D(n)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:79
2021-02-20 16:50:25 +00:00
qw422016.N().S(`" aria-posinset="`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:79
2021-02-20 16:50:25 +00:00
qw422016.N().D(i)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:79
2021-02-20 16:50:25 +00:00
qw422016.N().S(`">
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:80
2021-02-20 16:50:25 +00:00
qw422016.N().S(recentChangesEntry(entry))
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:80
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
</div>
2021-07-01 09:37:41 +00:00
2021-02-20 16:50:25 +00:00
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:83
2021-02-20 16:50:25 +00:00
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:83
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:84
2021-02-20 16:50:25 +00:00
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:84
qw422016.N().S(`
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:85
2021-09-06 17:46:34 +00:00
qw422016.N().S(helpTopicBadgeHTML(lc.Locale, "recent_changes"))
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:85
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
</section>
</main>
</div>
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:89
2021-02-20 16:50:25 +00:00
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:89
2021-09-06 17:46:34 +00:00
func WriteRecentChangesHTML(qq422016 qtio422016.Writer, n int, lc *l18n.Localizer) {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:89
2021-02-20 16:50:25 +00:00
qw422016 := qt422016.AcquireWriter(qq422016)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:89
2021-09-06 17:46:34 +00:00
StreamRecentChangesHTML(qw422016, n, lc)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:89
2021-02-20 16:50:25 +00:00
qt422016.ReleaseWriter(qw422016)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:89
2021-02-20 16:50:25 +00:00
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:89
2021-09-06 17:46:34 +00:00
func RecentChangesHTML(n int, lc *l18n.Localizer) string {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:89
2021-02-20 16:50:25 +00:00
qb422016 := qt422016.AcquireByteBuffer()
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:89
2021-09-06 17:46:34 +00:00
WriteRecentChangesHTML(qb422016, n, lc)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:89
2021-02-20 16:50:25 +00:00
qs422016 := string(qb422016.B)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:89
2021-02-20 16:50:25 +00:00
qt422016.ReleaseByteBuffer(qb422016)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:89
2021-02-20 16:50:25 +00:00
return qs422016
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:89
2021-02-20 16:50:25 +00:00
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:91
2021-02-20 16:50:25 +00:00
func streamrecentChangesEntry(qw422016 *qt422016.Writer, rev history.Revision) {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:91
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
<div>
<time class="recent-changes__entry__time">
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:94
2021-07-01 09:37:41 +00:00
qw422016.E().S(rev.Time.UTC().Format("15:04 UTC"))
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:94
qw422016.N().S(`
</time>
<span class="recent-changes__entry__message">`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:96
2021-02-20 16:50:25 +00:00
qw422016.E().S(rev.Hash)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:96
qw422016.N().S(`</span>
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:98
2021-02-20 16:50:25 +00:00
if rev.Username != "anon" {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:98
qw422016.N().S(`
<span class="recent-changes__entry__author">
&mdash; <a href="/hypha/`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:100
qw422016.E().S(cfg.UserHypha)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:100
2021-02-20 16:50:25 +00:00
qw422016.N().S(`/`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:100
2021-02-20 16:50:25 +00:00
qw422016.E().S(rev.Username)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:100
2021-02-20 16:50:25 +00:00
qw422016.N().S(`" rel="author">`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:100
2021-02-20 16:50:25 +00:00
qw422016.E().S(rev.Username)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:100
qw422016.N().S(`</a>
</span>
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:102
2021-02-20 16:50:25 +00:00
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:102
qw422016.N().S(`
</div>
<div>
<span class="recent-changes__entry__links">
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:106
qw422016.N().S(rev.HyphaeLinksHTML())
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:106
qw422016.N().S(`
</span>
<span class="recent-changes__entry__message">
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:109
qw422016.E().S(rev.Message)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:109
qw422016.N().S(`
</span>
</div>
2021-02-20 16:50:25 +00:00
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:112
2021-02-20 16:50:25 +00:00
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:112
2021-02-20 16:50:25 +00:00
func writerecentChangesEntry(qq422016 qtio422016.Writer, rev history.Revision) {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:112
2021-02-20 16:50:25 +00:00
qw422016 := qt422016.AcquireWriter(qq422016)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:112
2021-02-20 16:50:25 +00:00
streamrecentChangesEntry(qw422016, rev)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:112
2021-02-20 16:50:25 +00:00
qt422016.ReleaseWriter(qw422016)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:112
2021-02-20 16:50:25 +00:00
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:112
2021-02-20 16:50:25 +00:00
func recentChangesEntry(rev history.Revision) string {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:112
2021-02-20 16:50:25 +00:00
qb422016 := qt422016.AcquireByteBuffer()
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:112
2021-02-20 16:50:25 +00:00
writerecentChangesEntry(qb422016, rev)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:112
2021-02-20 16:50:25 +00:00
qs422016 := string(qb422016.B)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:112
2021-02-20 16:50:25 +00:00
qt422016.ReleaseByteBuffer(qb422016)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:112
2021-02-20 16:50:25 +00:00
return qs422016
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:112
2021-02-20 16:50:25 +00:00
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:114
2021-09-06 17:46:34 +00:00
func StreamHistoryHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, list string, lc *l18n.Localizer) {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:114
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
<div class="layout">
<main class="main-width">
<article class="history">
2021-09-06 17:46:34 +00:00
<h1>`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:118
2021-09-06 17:46:34 +00:00
qw422016.N().S(fmt.Sprintf(lc.Get("ui.history_title"), beautifulLink(hyphaName)))
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:118
2021-02-20 16:50:25 +00:00
qw422016.N().S(`</h1>
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:119
2021-02-20 16:50:25 +00:00
qw422016.N().S(list)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:119
2021-02-20 16:50:25 +00:00
qw422016.N().S(`
</article>
</main>
</div>
`)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:123
2021-02-20 16:50:25 +00:00
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:123
2021-09-06 17:46:34 +00:00
func WriteHistoryHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, list string, lc *l18n.Localizer) {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:123
2021-02-20 16:50:25 +00:00
qw422016 := qt422016.AcquireWriter(qq422016)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:123
2021-09-06 17:46:34 +00:00
StreamHistoryHTML(qw422016, rq, hyphaName, list, lc)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:123
2021-02-20 16:50:25 +00:00
qt422016.ReleaseWriter(qw422016)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:123
2021-02-20 16:50:25 +00:00
}
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:123
2021-09-06 17:46:34 +00:00
func HistoryHTML(rq *http.Request, hyphaName, list string, lc *l18n.Localizer) string {
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:123
2021-02-20 16:50:25 +00:00
qb422016 := qt422016.AcquireByteBuffer()
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:123
2021-09-06 17:46:34 +00:00
WriteHistoryHTML(qb422016, rq, hyphaName, list, lc)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:123
2021-02-20 16:50:25 +00:00
qs422016 := string(qb422016.B)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:123
2021-02-20 16:50:25 +00:00
qt422016.ReleaseByteBuffer(qb422016)
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:123
2021-02-20 16:50:25 +00:00
return qs422016
2021-09-27 09:06:25 +00:00
//line views/history.qtpl:123
2021-02-20 16:50:25 +00:00
}