1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-01-07 02:10:26 +00:00
mycorrhiza/views/stuff.qtpl.go

181 lines
4.5 KiB
Go
Raw Normal View History

2021-01-24 12:52:40 +00:00
// Code generated by qtc from "stuff.qtpl". DO NOT EDIT.
2020-08-31 17:52:26 +00:00
// See https://github.com/valyala/quicktemplate for details.
//line views/stuff.qtpl:1
package views
2020-08-31 17:52:26 +00:00
//line views/stuff.qtpl:1
2021-10-01 05:14:23 +00:00
import "github.com/bouncepaw/mycorrhiza/cfg"
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:2
2021-09-06 17:46:34 +00:00
import "github.com/bouncepaw/mycorrhiza/l18n"
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:4
2020-08-31 17:52:26 +00:00
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:4
2020-08-31 17:52:26 +00:00
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:4
2022-03-20 21:24:40 +00:00
func StreamHelp(qw422016 *qt422016.Writer, content, lang string, lc *l18n.Localizer) {
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:4
qw422016.N().S(`
<div class="layout">
<main class="main-width help">
<article>
`)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:8
qw422016.N().S(content)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:8
qw422016.N().S(`
</article>
</main>
`)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:11
2022-03-20 21:24:40 +00:00
qw422016.N().S(helpTopics(lang, lc))
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:11
qw422016.N().S(`
</div>
`)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:13
}
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:13
2022-03-20 21:24:40 +00:00
func WriteHelp(qq422016 qtio422016.Writer, content, lang string, lc *l18n.Localizer) {
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:13
qw422016 := qt422016.AcquireWriter(qq422016)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:13
2022-03-20 21:24:40 +00:00
StreamHelp(qw422016, content, lang, lc)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:13
qt422016.ReleaseWriter(qw422016)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:13
}
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:13
2022-03-20 21:24:40 +00:00
func Help(content, lang string, lc *l18n.Localizer) string {
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:13
qb422016 := qt422016.AcquireByteBuffer()
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:13
2022-03-20 21:24:40 +00:00
WriteHelp(qb422016, content, lang, lc)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:13
qs422016 := string(qb422016.B)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:13
qt422016.ReleaseByteBuffer(qb422016)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:13
return qs422016
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:13
}
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:15
2022-03-20 21:24:40 +00:00
func StreamHelpEmptyError(qw422016 *qt422016.Writer, lc *l18n.Localizer) {
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:15
qw422016.N().S(`
2021-09-06 17:46:34 +00:00
<h1>`)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:16
2021-09-06 17:46:34 +00:00
qw422016.E().S(lc.Get("help.empty_error_title"))
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:16
2021-09-06 17:46:34 +00:00
qw422016.N().S(`</h1>
<p>`)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:17
2021-09-06 17:46:34 +00:00
qw422016.E().S(lc.Get("help.empty_error_line_1"))
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:17
2021-09-06 17:46:34 +00:00
qw422016.N().S(`</p>
<p>`)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:18
2021-09-06 17:46:34 +00:00
qw422016.E().S(lc.Get("help.empty_error_line_2a"))
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:18
2021-09-06 17:46:34 +00:00
qw422016.N().S(` <a class="wikilink wikilink_external wikilink_https" href="https://github.com/bouncepaw/mycorrhiza">`)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:18
2021-09-06 17:46:34 +00:00
qw422016.E().S(lc.Get("help.empty_error_link"))
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:18
2021-09-06 17:46:34 +00:00
qw422016.N().S(`</a> `)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:18
2021-09-06 17:46:34 +00:00
qw422016.E().S(lc.Get("help.empty_error_line_2b"))
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:18
2021-09-06 17:46:34 +00:00
qw422016.N().S(`</p>
`)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:19
}
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:19
2022-03-20 21:24:40 +00:00
func WriteHelpEmptyError(qq422016 qtio422016.Writer, lc *l18n.Localizer) {
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:19
2021-09-06 17:46:34 +00:00
qw422016 := qt422016.AcquireWriter(qq422016)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:19
2022-03-20 21:24:40 +00:00
StreamHelpEmptyError(qw422016, lc)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:19
2021-09-06 17:46:34 +00:00
qt422016.ReleaseWriter(qw422016)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:19
2021-09-06 17:46:34 +00:00
}
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:19
2022-03-20 21:24:40 +00:00
func HelpEmptyError(lc *l18n.Localizer) string {
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:19
qb422016 := qt422016.AcquireByteBuffer()
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:19
2022-03-20 21:24:40 +00:00
WriteHelpEmptyError(qb422016, lc)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:19
qs422016 := string(qb422016.B)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:19
qt422016.ReleaseByteBuffer(qb422016)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:19
return qs422016
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:19
}
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:21
2022-03-22 13:40:40 +00:00
func streamcommonScripts(qw422016 *qt422016.Writer) {
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:21
qw422016.N().S(`
`)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:22
2021-07-01 09:45:29 +00:00
for _, scriptPath := range cfg.CommonScripts {
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:22
qw422016.N().S(`
<script src="`)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:23
qw422016.E().S(scriptPath)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:23
qw422016.N().S(`"></script>
`)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:24
}
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:24
qw422016.N().S(`
`)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:25
}
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:25
2022-03-22 13:40:40 +00:00
func writecommonScripts(qq422016 qtio422016.Writer) {
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:25
qw422016 := qt422016.AcquireWriter(qq422016)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:25
2022-03-22 13:40:40 +00:00
streamcommonScripts(qw422016)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:25
qt422016.ReleaseWriter(qw422016)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:25
}
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:25
2022-03-22 13:40:40 +00:00
func commonScripts() string {
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:25
qb422016 := qt422016.AcquireByteBuffer()
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:25
2022-03-22 13:40:40 +00:00
writecommonScripts(qb422016)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:25
qs422016 := string(qb422016.B)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:25
qt422016.ReleaseByteBuffer(qb422016)
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:25
return qs422016
2022-04-02 16:58:57 +00:00
//line views/stuff.qtpl:25
2020-08-31 17:52:26 +00:00
}