2020-09-26 18:19:17 +00:00
|
|
|
// Code generated by qtc from "recent_changes.qtpl". DO NOT EDIT.
|
|
|
|
// See https://github.com/valyala/quicktemplate for details.
|
|
|
|
|
|
|
|
//line templates/recent_changes.qtpl:1
|
|
|
|
package templates
|
|
|
|
|
|
|
|
//line templates/recent_changes.qtpl:1
|
|
|
|
import (
|
|
|
|
qtio422016 "io"
|
|
|
|
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
|
|
)
|
|
|
|
|
|
|
|
//line templates/recent_changes.qtpl:1
|
|
|
|
var (
|
|
|
|
_ = qtio422016.Copy
|
|
|
|
_ = qt422016.AcquireByteBuffer
|
|
|
|
)
|
|
|
|
|
|
|
|
//line templates/recent_changes.qtpl:1
|
|
|
|
func StreamRecentChangesHTML(qw422016 *qt422016.Writer, changes []string, n int) {
|
|
|
|
//line templates/recent_changes.qtpl:1
|
|
|
|
qw422016.N().S(`
|
|
|
|
<main class="recent-changes">
|
|
|
|
<h1>Recent Changes</h1>
|
2020-11-04 11:00:17 +00:00
|
|
|
<p><a href="/">← Back</a></p>
|
2020-09-26 18:19:17 +00:00
|
|
|
|
|
|
|
<nav class="recent-changes__count">
|
|
|
|
See
|
|
|
|
`)
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:8
|
2020-09-26 18:19:17 +00:00
|
|
|
for _, m := range []int{20, 0, 50, 0, 100} {
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:8
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
|
|
|
//line templates/recent_changes.qtpl:9
|
2020-11-04 11:00:17 +00:00
|
|
|
switch m {
|
|
|
|
//line templates/recent_changes.qtpl:10
|
2020-09-26 18:19:17 +00:00
|
|
|
case 0:
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:10
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<span aria-hidden="true">|</span>
|
|
|
|
`)
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:12
|
2020-09-26 18:19:17 +00:00
|
|
|
case n:
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:12
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<b>`)
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:13
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().D(n)
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:13
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`</b>
|
|
|
|
`)
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:14
|
2020-09-26 18:19:17 +00:00
|
|
|
default:
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:14
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<a href="/recent-changes/`)
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:15
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().D(m)
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:15
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`">`)
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:15
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().D(m)
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:15
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`</a>
|
|
|
|
`)
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:16
|
2020-09-26 18:19:17 +00:00
|
|
|
}
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:16
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:17
|
2020-09-26 18:19:17 +00:00
|
|
|
}
|
2020-11-04 11:00:17 +00:00
|
|
|
//line templates/recent_changes.qtpl:17
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
recent changes
|
|
|
|
</nav>
|
|
|
|
|
2020-12-08 15:15:32 +00:00
|
|
|
<p><img class="icon" width="20" height="20" src="https://upload.wikimedia.org/wikipedia/commons/4/46/Generic_Feed-icon.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>
|
|
|
|
|
2020-09-26 18:19:17 +00:00
|
|
|
`)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:28
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
|
|
|
|
<section class="recent-changes__list" role="feed">
|
|
|
|
`)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:31
|
2020-09-26 18:19:17 +00:00
|
|
|
if len(changes) == 0 {
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:31
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
<p>Could not find any recent changes.</p>
|
|
|
|
`)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:33
|
2020-09-26 18:19:17 +00:00
|
|
|
} else {
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:33
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:34
|
2020-09-26 18:19:17 +00:00
|
|
|
for i, entry := range changes {
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:34
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`
|
2020-11-04 11:00:17 +00:00
|
|
|
<ul class="recent-changes__entry rc-entry" role="article"
|
2020-09-26 18:19:17 +00:00
|
|
|
aria-setsize="`)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:36
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().D(n)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:36
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`" aria-posinset="`)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:36
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().D(i)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:36
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`">
|
|
|
|
`)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:37
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(entry)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:37
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</ul>
|
|
|
|
`)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:39
|
2020-09-26 18:19:17 +00:00
|
|
|
}
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:39
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
`)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:40
|
2020-09-26 18:19:17 +00:00
|
|
|
}
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:40
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016.N().S(`
|
|
|
|
</section>
|
|
|
|
</main>
|
|
|
|
`)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:43
|
2020-09-26 18:19:17 +00:00
|
|
|
}
|
|
|
|
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:43
|
2020-09-26 18:19:17 +00:00
|
|
|
func WriteRecentChangesHTML(qq422016 qtio422016.Writer, changes []string, n int) {
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:43
|
2020-09-26 18:19:17 +00:00
|
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:43
|
2020-09-26 18:19:17 +00:00
|
|
|
StreamRecentChangesHTML(qw422016, changes, n)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:43
|
2020-09-26 18:19:17 +00:00
|
|
|
qt422016.ReleaseWriter(qw422016)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:43
|
2020-09-26 18:19:17 +00:00
|
|
|
}
|
|
|
|
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:43
|
2020-09-26 18:19:17 +00:00
|
|
|
func RecentChangesHTML(changes []string, n int) string {
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:43
|
2020-09-26 18:19:17 +00:00
|
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:43
|
2020-09-26 18:19:17 +00:00
|
|
|
WriteRecentChangesHTML(qb422016, changes, n)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:43
|
2020-09-26 18:19:17 +00:00
|
|
|
qs422016 := string(qb422016.B)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:43
|
2020-09-26 18:19:17 +00:00
|
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:43
|
2020-09-26 18:19:17 +00:00
|
|
|
return qs422016
|
2020-12-08 15:15:32 +00:00
|
|
|
//line templates/recent_changes.qtpl:43
|
2020-09-26 18:19:17 +00:00
|
|
|
}
|