1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 19:56:16 +00:00
mycorrhiza/templates/recent_changes.qtpl.go

160 lines
4.3 KiB
Go

// 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>
<p><a href="/">← Back</a></p>
<nav class="recent-changes__count">
See
`)
//line templates/recent_changes.qtpl:8
for _, m := range []int{20, 0, 50, 0, 100} {
//line templates/recent_changes.qtpl:8
qw422016.N().S(`
`)
//line templates/recent_changes.qtpl:9
switch m {
//line templates/recent_changes.qtpl:10
case 0:
//line templates/recent_changes.qtpl:10
qw422016.N().S(`
<span aria-hidden="true">|</span>
`)
//line templates/recent_changes.qtpl:12
case n:
//line templates/recent_changes.qtpl:12
qw422016.N().S(`
<b>`)
//line templates/recent_changes.qtpl:13
qw422016.N().D(n)
//line templates/recent_changes.qtpl:13
qw422016.N().S(`</b>
`)
//line templates/recent_changes.qtpl:14
default:
//line templates/recent_changes.qtpl:14
qw422016.N().S(`
<a href="/recent-changes/`)
//line templates/recent_changes.qtpl:15
qw422016.N().D(m)
//line templates/recent_changes.qtpl:15
qw422016.N().S(`">`)
//line templates/recent_changes.qtpl:15
qw422016.N().D(m)
//line templates/recent_changes.qtpl:15
qw422016.N().S(`</a>
`)
//line templates/recent_changes.qtpl:16
}
//line templates/recent_changes.qtpl:16
qw422016.N().S(`
`)
//line templates/recent_changes.qtpl:17
}
//line templates/recent_changes.qtpl:17
qw422016.N().S(`
recent changes
</nav>
<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>
`)
//line templates/recent_changes.qtpl:28
qw422016.N().S(`
<section class="recent-changes__list" role="feed">
`)
//line templates/recent_changes.qtpl:31
if len(changes) == 0 {
//line templates/recent_changes.qtpl:31
qw422016.N().S(`
<p>Could not find any recent changes.</p>
`)
//line templates/recent_changes.qtpl:33
} else {
//line templates/recent_changes.qtpl:33
qw422016.N().S(`
`)
//line templates/recent_changes.qtpl:34
for i, entry := range changes {
//line templates/recent_changes.qtpl:34
qw422016.N().S(`
<ul class="recent-changes__entry rc-entry" role="article"
aria-setsize="`)
//line templates/recent_changes.qtpl:36
qw422016.N().D(n)
//line templates/recent_changes.qtpl:36
qw422016.N().S(`" aria-posinset="`)
//line templates/recent_changes.qtpl:36
qw422016.N().D(i)
//line templates/recent_changes.qtpl:36
qw422016.N().S(`">
`)
//line templates/recent_changes.qtpl:37
qw422016.N().S(entry)
//line templates/recent_changes.qtpl:37
qw422016.N().S(`
</ul>
`)
//line templates/recent_changes.qtpl:39
}
//line templates/recent_changes.qtpl:39
qw422016.N().S(`
`)
//line templates/recent_changes.qtpl:40
}
//line templates/recent_changes.qtpl:40
qw422016.N().S(`
</section>
</main>
`)
//line templates/recent_changes.qtpl:43
}
//line templates/recent_changes.qtpl:43
func WriteRecentChangesHTML(qq422016 qtio422016.Writer, changes []string, n int) {
//line templates/recent_changes.qtpl:43
qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/recent_changes.qtpl:43
StreamRecentChangesHTML(qw422016, changes, n)
//line templates/recent_changes.qtpl:43
qt422016.ReleaseWriter(qw422016)
//line templates/recent_changes.qtpl:43
}
//line templates/recent_changes.qtpl:43
func RecentChangesHTML(changes []string, n int) string {
//line templates/recent_changes.qtpl:43
qb422016 := qt422016.AcquireByteBuffer()
//line templates/recent_changes.qtpl:43
WriteRecentChangesHTML(qb422016, changes, n)
//line templates/recent_changes.qtpl:43
qs422016 := string(qb422016.B)
//line templates/recent_changes.qtpl:43
qt422016.ReleaseByteBuffer(qb422016)
//line templates/recent_changes.qtpl:43
return qs422016
//line templates/recent_changes.qtpl:43
}