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
|
|
|
|
import "net/http"
|
|
|
|
|
|
|
|
//line views/history.qtpl:3
|
2021-05-09 09:36:39 +00:00
|
|
|
import "github.com/bouncepaw/mycorrhiza/cfg"
|
2021-02-20 16:50:25 +00:00
|
|
|
|
|
|
|
//line views/history.qtpl:4
|
2021-05-09 09:36:39 +00:00
|
|
|
import "github.com/bouncepaw/mycorrhiza/util"
|
2021-03-14 15:01:32 +00:00
|
|
|
|
|
|
|
//line views/history.qtpl:5
|
2021-05-09 09:36:39 +00:00
|
|
|
import "github.com/bouncepaw/mycorrhiza/user"
|
2021-02-20 16:50:25 +00:00
|
|
|
|
|
|
|
//line views/history.qtpl:6
|
2021-05-09 09:36:39 +00:00
|
|
|
import "github.com/bouncepaw/mycorrhiza/hyphae"
|
|
|
|
|
|
|
|
//line views/history.qtpl:7
|
2021-03-14 15:01:32 +00:00
|
|
|
import "github.com/bouncepaw/mycorrhiza/history"
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:10
|
2021-02-20 16:50:25 +00:00
|
|
|
import (
|
|
|
|
qtio422016 "io"
|
|
|
|
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
|
|
)
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:10
|
2021-02-20 16:50:25 +00:00
|
|
|
var (
|
|
|
|
_ = qtio422016.Copy
|
|
|
|
_ = qt422016.AcquireByteBuffer
|
|
|
|
)
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:10
|
2021-03-14 15:01:32 +00:00
|
|
|
func StreamPrimitiveDiffHTML(qw422016 *qt422016.Writer, rq *http.Request, h *hyphae.Hypha, u *user.User, hash string) {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:10
|
2021-03-14 15:01:32 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:12
|
2021-03-14 15:01:32 +00:00
|
|
|
text, err := history.PrimitiveDiffAtRevision(h.TextPath, hash)
|
|
|
|
if err != nil {
|
|
|
|
text = err.Error()
|
|
|
|
}
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:16
|
2021-03-14 15:01:32 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:17
|
2021-03-14 15:01:32 +00:00
|
|
|
StreamNavHTML(qw422016, rq, h.Name, "history")
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:17
|
2021-03-14 15:01:32 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<div class="layout">
|
|
|
|
<main class="main-width">
|
|
|
|
<article>
|
|
|
|
<h1>Diff `)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:21
|
2021-03-14 15:01:32 +00:00
|
|
|
qw422016.E().S(util.BeautifulName(h.Name))
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:21
|
2021-03-14 15:01:32 +00:00
|
|
|
qw422016.N().S(` at `)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:21
|
2021-03-14 15:01:32 +00:00
|
|
|
qw422016.E().S(hash)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:21
|
2021-03-14 15:01:32 +00:00
|
|
|
qw422016.N().S(`</h1>
|
|
|
|
<pre class="codeblock"><code>`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:22
|
2021-03-14 15:01:32 +00:00
|
|
|
qw422016.E().S(text)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:22
|
2021-03-14 15:01:32 +00:00
|
|
|
qw422016.N().S(`</code></pre>
|
|
|
|
</article>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:26
|
2021-03-14 15:01:32 +00:00
|
|
|
}
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:26
|
2021-03-14 15:01:32 +00:00
|
|
|
func WritePrimitiveDiffHTML(qq422016 qtio422016.Writer, rq *http.Request, h *hyphae.Hypha, u *user.User, hash string) {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:26
|
2021-03-14 15:01:32 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:26
|
2021-03-14 15:01:32 +00:00
|
|
|
StreamPrimitiveDiffHTML(qw422016, rq, h, u, hash)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:26
|
2021-03-14 15:01:32 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:26
|
2021-03-14 15:01:32 +00:00
|
|
|
}
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:26
|
2021-03-14 15:01:32 +00:00
|
|
|
func PrimitiveDiffHTML(rq *http.Request, h *hyphae.Hypha, u *user.User, hash string) string {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:26
|
2021-03-14 15:01:32 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:26
|
2021-03-14 15:01:32 +00:00
|
|
|
WritePrimitiveDiffHTML(qb422016, rq, h, u, hash)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:26
|
2021-03-14 15:01:32 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:26
|
2021-03-14 15:01:32 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:26
|
2021-03-14 15:01:32 +00:00
|
|
|
return qs422016
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:26
|
2021-03-14 15:01:32 +00:00
|
|
|
}
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:28
|
2021-02-20 16:50:25 +00:00
|
|
|
func StreamRecentChangesHTML(qw422016 *qt422016.Writer, n int) {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:28
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<div class="layout">
|
|
|
|
<main class="main-width recent-changes">
|
|
|
|
<h1>Recent Changes</h1>
|
|
|
|
|
|
|
|
<nav class="recent-changes__count">
|
|
|
|
See
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:35
|
2021-02-20 16:50:25 +00:00
|
|
|
for _, m := range []int{20, 0, 50, 0, 100} {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:35
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-04-04 17:22:14 +00:00
|
|
|
//line views/history.qtpl:36
|
2021-05-09 09:36:39 +00:00
|
|
|
switch m {
|
|
|
|
//line views/history.qtpl:37
|
2021-02-20 16:50:25 +00:00
|
|
|
case 0:
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:37
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<span aria-hidden="true">|</span>
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:39
|
2021-02-20 16:50:25 +00:00
|
|
|
case n:
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:39
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<b>`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:40
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().D(n)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:40
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`</b>
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:41
|
2021-02-20 16:50:25 +00:00
|
|
|
default:
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:41
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<a href="/recent-changes/`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:42
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().D(m)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:42
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`">`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:42
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().D(m)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:42
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`</a>
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:43
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:43
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:44
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:44
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
recent changes
|
|
|
|
</nav>
|
|
|
|
|
2021-06-12 13:51:28 +00:00
|
|
|
<p><img class="icon" width="20" height="20" src="/static/icon/feed.svg">Subscribe via <a href="/recent-changes-rss">RSS</a>, <a href="/recent-changes-atom">Atom</a> or <a href="/recent-changes-json">JSON feed</a>.</p>
|
2021-02-20 16:50:25 +00:00
|
|
|
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:55
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:58
|
2021-02-20 16:50:25 +00:00
|
|
|
changes := history.RecentChanges(n)
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:59
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<section class="recent-changes__list" role="feed">
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:61
|
2021-02-20 16:50:25 +00:00
|
|
|
if len(changes) == 0 {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:61
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<p>Could not find any recent changes.</p>
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:63
|
2021-02-20 16:50:25 +00:00
|
|
|
} else {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:63
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:64
|
2021-02-20 16:50:25 +00:00
|
|
|
for i, entry := range changes {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:64
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<ul class="recent-changes__entry rc-entry" role="article"
|
|
|
|
aria-setsize="`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:66
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().D(n)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:66
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`" aria-posinset="`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:66
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().D(i)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:66
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`">
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:67
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(recentChangesEntry(entry))
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:67
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</ul>
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:69
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:69
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:70
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:70
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</section>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:74
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:74
|
2021-02-20 16:50:25 +00:00
|
|
|
func WriteRecentChangesHTML(qq422016 qtio422016.Writer, n int) {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:74
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:74
|
2021-02-20 16:50:25 +00:00
|
|
|
StreamRecentChangesHTML(qw422016, n)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:74
|
2021-02-20 16:50:25 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:74
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:74
|
2021-02-20 16:50:25 +00:00
|
|
|
func RecentChangesHTML(n int) string {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:74
|
2021-02-20 16:50:25 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:74
|
2021-02-20 16:50:25 +00:00
|
|
|
WriteRecentChangesHTML(qb422016, n)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:74
|
2021-02-20 16:50:25 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:74
|
2021-02-20 16:50:25 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:74
|
2021-02-20 16:50:25 +00:00
|
|
|
return qs422016
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:74
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:76
|
2021-02-20 16:50:25 +00:00
|
|
|
func streamrecentChangesEntry(qw422016 *qt422016.Writer, rev history.Revision) {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:76
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<li class="rc-entry__time"><time>`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:77
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.E().S(rev.TimeString())
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:77
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`</time></li>
|
|
|
|
<li class="rc-entry__hash">`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:78
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.E().S(rev.Hash)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:78
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`</li>
|
|
|
|
<li class="rc-entry__links">`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:79
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(rev.HyphaeLinksHTML())
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:79
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`</li>
|
|
|
|
<li class="rc-entry__msg">`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:80
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.E().S(rev.Message)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:80
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(` `)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:80
|
2021-02-20 16:50:25 +00:00
|
|
|
if rev.Username != "anon" {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:80
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`<span class="rc-entry__author">by <a href="/hypha/`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:80
|
|
|
|
qw422016.E().S(cfg.UserHypha)
|
|
|
|
//line views/history.qtpl:80
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`/`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:80
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.E().S(rev.Username)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:80
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`" rel="author">`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:80
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.E().S(rev.Username)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:80
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`</a></span>`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:80
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:80
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`</li>
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:81
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:81
|
2021-02-20 16:50:25 +00:00
|
|
|
func writerecentChangesEntry(qq422016 qtio422016.Writer, rev history.Revision) {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:81
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:81
|
2021-02-20 16:50:25 +00:00
|
|
|
streamrecentChangesEntry(qw422016, rev)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:81
|
2021-02-20 16:50:25 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:81
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:81
|
2021-02-20 16:50:25 +00:00
|
|
|
func recentChangesEntry(rev history.Revision) string {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:81
|
2021-02-20 16:50:25 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:81
|
2021-02-20 16:50:25 +00:00
|
|
|
writerecentChangesEntry(qb422016, rev)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:81
|
2021-02-20 16:50:25 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:81
|
2021-02-20 16:50:25 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:81
|
2021-02-20 16:50:25 +00:00
|
|
|
return qs422016
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:81
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:83
|
2021-02-20 16:50:25 +00:00
|
|
|
func StreamHistoryHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, list string) {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:83
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:84
|
2021-02-20 16:50:25 +00:00
|
|
|
StreamNavHTML(qw422016, rq, hyphaName, "history")
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:84
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<div class="layout">
|
|
|
|
<main class="main-width">
|
|
|
|
<article class="history">
|
|
|
|
<h1>History of `)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:88
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.E().S(util.BeautifulName(hyphaName))
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:88
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`</h1>
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:89
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(list)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:89
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</article>
|
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
`)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:93
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:93
|
2021-02-20 16:50:25 +00:00
|
|
|
func WriteHistoryHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, list string) {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:93
|
2021-02-20 16:50:25 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:93
|
2021-02-20 16:50:25 +00:00
|
|
|
StreamHistoryHTML(qw422016, rq, hyphaName, list)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:93
|
2021-02-20 16:50:25 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:93
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|
|
|
|
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:93
|
2021-02-20 16:50:25 +00:00
|
|
|
func HistoryHTML(rq *http.Request, hyphaName, list string) string {
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:93
|
2021-02-20 16:50:25 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:93
|
2021-02-20 16:50:25 +00:00
|
|
|
WriteHistoryHTML(qb422016, rq, hyphaName, list)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:93
|
2021-02-20 16:50:25 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:93
|
2021-02-20 16:50:25 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:93
|
2021-02-20 16:50:25 +00:00
|
|
|
return qs422016
|
2021-05-09 09:36:39 +00:00
|
|
|
//line views/history.qtpl:93
|
2021-02-20 16:50:25 +00:00
|
|
|
}
|