mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-10-30 19:56:16 +00:00
157 lines
4.0 KiB
Go
157 lines
4.0 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>
|
|
|
|
<nav class="recent-changes__count">
|
|
See
|
|
`)
|
|
//line templates/recent_changes.qtpl:7
|
|
for _, m := range []int{20, 0, 50, 0, 100} {
|
|
//line templates/recent_changes.qtpl:7
|
|
qw422016.N().S(`
|
|
`)
|
|
//line templates/recent_changes.qtpl:8
|
|
switch m {
|
|
//line templates/recent_changes.qtpl:9
|
|
case 0:
|
|
//line templates/recent_changes.qtpl:9
|
|
qw422016.N().S(`
|
|
<span aria-hidden="true">|</span>
|
|
`)
|
|
//line templates/recent_changes.qtpl:11
|
|
case n:
|
|
//line templates/recent_changes.qtpl:11
|
|
qw422016.N().S(`
|
|
<b>`)
|
|
//line templates/recent_changes.qtpl:12
|
|
qw422016.N().D(n)
|
|
//line templates/recent_changes.qtpl:12
|
|
qw422016.N().S(`</b>
|
|
`)
|
|
//line templates/recent_changes.qtpl:13
|
|
default:
|
|
//line templates/recent_changes.qtpl:13
|
|
qw422016.N().S(`
|
|
<a href="/recent-changes/`)
|
|
//line templates/recent_changes.qtpl:14
|
|
qw422016.N().D(m)
|
|
//line templates/recent_changes.qtpl:14
|
|
qw422016.N().S(`">`)
|
|
//line templates/recent_changes.qtpl:14
|
|
qw422016.N().D(m)
|
|
//line templates/recent_changes.qtpl:14
|
|
qw422016.N().S(`</a>
|
|
`)
|
|
//line templates/recent_changes.qtpl:15
|
|
}
|
|
//line templates/recent_changes.qtpl:15
|
|
qw422016.N().S(`
|
|
`)
|
|
//line templates/recent_changes.qtpl:16
|
|
}
|
|
//line templates/recent_changes.qtpl:16
|
|
qw422016.N().S(`
|
|
recent changes
|
|
</nav>
|
|
|
|
`)
|
|
//line templates/recent_changes.qtpl:25
|
|
qw422016.N().S(`
|
|
|
|
<section class="recent-changes__list" role="feed">
|
|
`)
|
|
//line templates/recent_changes.qtpl:28
|
|
if len(changes) == 0 {
|
|
//line templates/recent_changes.qtpl:28
|
|
qw422016.N().S(`
|
|
<p>Could not find any recent changes.</p>
|
|
`)
|
|
//line templates/recent_changes.qtpl:30
|
|
} else {
|
|
//line templates/recent_changes.qtpl:30
|
|
qw422016.N().S(`
|
|
`)
|
|
//line templates/recent_changes.qtpl:31
|
|
for i, entry := range changes {
|
|
//line templates/recent_changes.qtpl:31
|
|
qw422016.N().S(`
|
|
<ul class="recent-changes__entry" role="article"
|
|
aria-setsize="`)
|
|
//line templates/recent_changes.qtpl:33
|
|
qw422016.N().D(n)
|
|
//line templates/recent_changes.qtpl:33
|
|
qw422016.N().S(`" aria-posinset="`)
|
|
//line templates/recent_changes.qtpl:33
|
|
qw422016.N().D(i)
|
|
//line templates/recent_changes.qtpl:33
|
|
qw422016.N().S(`">
|
|
`)
|
|
//line templates/recent_changes.qtpl:34
|
|
qw422016.N().S(entry)
|
|
//line templates/recent_changes.qtpl:34
|
|
qw422016.N().S(`
|
|
</ul>
|
|
`)
|
|
//line templates/recent_changes.qtpl:36
|
|
}
|
|
//line templates/recent_changes.qtpl:36
|
|
qw422016.N().S(`
|
|
`)
|
|
//line templates/recent_changes.qtpl:37
|
|
}
|
|
//line templates/recent_changes.qtpl:37
|
|
qw422016.N().S(`
|
|
</section>
|
|
</main>
|
|
`)
|
|
//line templates/recent_changes.qtpl:40
|
|
}
|
|
|
|
//line templates/recent_changes.qtpl:40
|
|
func WriteRecentChangesHTML(qq422016 qtio422016.Writer, changes []string, n int) {
|
|
//line templates/recent_changes.qtpl:40
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
//line templates/recent_changes.qtpl:40
|
|
StreamRecentChangesHTML(qw422016, changes, n)
|
|
//line templates/recent_changes.qtpl:40
|
|
qt422016.ReleaseWriter(qw422016)
|
|
//line templates/recent_changes.qtpl:40
|
|
}
|
|
|
|
//line templates/recent_changes.qtpl:40
|
|
func RecentChangesHTML(changes []string, n int) string {
|
|
//line templates/recent_changes.qtpl:40
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
//line templates/recent_changes.qtpl:40
|
|
WriteRecentChangesHTML(qb422016, changes, n)
|
|
//line templates/recent_changes.qtpl:40
|
|
qs422016 := string(qb422016.B)
|
|
//line templates/recent_changes.qtpl:40
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
//line templates/recent_changes.qtpl:40
|
|
return qs422016
|
|
//line templates/recent_changes.qtpl:40
|
|
}
|