1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-13 05:50:27 +00:00

Move some files around

This commit is contained in:
bouncepaw 2021-01-24 17:52:40 +05:00
parent 2a5d7d580c
commit b662eb5219
7 changed files with 299 additions and 299 deletions

View File

@ -1,4 +1,4 @@
# 🍄 MycorrhizaWiki 0.12 # 🍄 MycorrhizaWiki 0.13
A wiki engine. A wiki engine.
[Main wiki](https://mycorrhiza.lesarbr.es) [Main wiki](https://mycorrhiza.lesarbr.es)

View File

@ -1,169 +1,169 @@
// Code generated by qtc from "http_mutators.qtpl". DO NOT EDIT. // Code generated by qtc from "mutators.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details. // See https://github.com/valyala/quicktemplate for details.
//line templates/http_mutators.qtpl:1 //line templates/mutators.qtpl:1
package templates package templates
//line templates/http_mutators.qtpl:1 //line templates/mutators.qtpl:1
import "net/http" import "net/http"
//line templates/http_mutators.qtpl:3 //line templates/mutators.qtpl:3
import ( import (
qtio422016 "io" qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate" qt422016 "github.com/valyala/quicktemplate"
) )
//line templates/http_mutators.qtpl:3 //line templates/mutators.qtpl:3
var ( var (
_ = qtio422016.Copy _ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer _ = qt422016.AcquireByteBuffer
) )
//line templates/http_mutators.qtpl:3 //line templates/mutators.qtpl:3
func StreamEditHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, textAreaFill, warning string) { func StreamEditHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, textAreaFill, warning string) {
//line templates/http_mutators.qtpl:3 //line templates/mutators.qtpl:3
qw422016.N().S(` qw422016.N().S(`
`) `)
//line templates/http_mutators.qtpl:4 //line templates/mutators.qtpl:4
qw422016.N().S(navHTML(rq, hyphaName, "edit")) qw422016.N().S(navHTML(rq, hyphaName, "edit"))
//line templates/http_mutators.qtpl:4 //line templates/mutators.qtpl:4
qw422016.N().S(` qw422016.N().S(`
<main class="edit edit_no-preview"> <main class="edit edit_no-preview">
<h1>Edit `) <h1>Edit `)
//line templates/http_mutators.qtpl:6 //line templates/mutators.qtpl:6
qw422016.E().S(hyphaName) qw422016.E().S(hyphaName)
//line templates/http_mutators.qtpl:6 //line templates/mutators.qtpl:6
qw422016.N().S(`</h1> qw422016.N().S(`</h1>
`) `)
//line templates/http_mutators.qtpl:7 //line templates/mutators.qtpl:7
qw422016.N().S(warning) qw422016.N().S(warning)
//line templates/http_mutators.qtpl:7 //line templates/mutators.qtpl:7
qw422016.N().S(` qw422016.N().S(`
<form method="post" class="edit-form" <form method="post" class="edit-form"
action="/upload-text/`) action="/upload-text/`)
//line templates/http_mutators.qtpl:9 //line templates/mutators.qtpl:9
qw422016.E().S(hyphaName) qw422016.E().S(hyphaName)
//line templates/http_mutators.qtpl:9 //line templates/mutators.qtpl:9
qw422016.N().S(`"> qw422016.N().S(`">
<textarea name="text">`) <textarea name="text">`)
//line templates/http_mutators.qtpl:10 //line templates/mutators.qtpl:10
qw422016.E().S(textAreaFill) qw422016.E().S(textAreaFill)
//line templates/http_mutators.qtpl:10 //line templates/mutators.qtpl:10
qw422016.N().S(`</textarea> qw422016.N().S(`</textarea>
<br/> <br/>
<input type="submit" name="action" value="Save" class="edit-form__save"/> <input type="submit" name="action" value="Save" class="edit-form__save"/>
<input type="submit" name="action" value="Preview" class="edit-form__preview"> <input type="submit" name="action" value="Preview" class="edit-form__preview">
<a href="/page/`) <a href="/page/`)
//line templates/http_mutators.qtpl:14 //line templates/mutators.qtpl:14
qw422016.E().S(hyphaName) qw422016.E().S(hyphaName)
//line templates/http_mutators.qtpl:14 //line templates/mutators.qtpl:14
qw422016.N().S(`" class="edit-form__cancel">Cancel</a> qw422016.N().S(`" class="edit-form__cancel">Cancel</a>
</form> </form>
</main> </main>
`) `)
//line templates/http_mutators.qtpl:17 //line templates/mutators.qtpl:17
} }
//line templates/http_mutators.qtpl:17 //line templates/mutators.qtpl:17
func WriteEditHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, textAreaFill, warning string) { func WriteEditHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, textAreaFill, warning string) {
//line templates/http_mutators.qtpl:17 //line templates/mutators.qtpl:17
qw422016 := qt422016.AcquireWriter(qq422016) qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/http_mutators.qtpl:17 //line templates/mutators.qtpl:17
StreamEditHTML(qw422016, rq, hyphaName, textAreaFill, warning) StreamEditHTML(qw422016, rq, hyphaName, textAreaFill, warning)
//line templates/http_mutators.qtpl:17 //line templates/mutators.qtpl:17
qt422016.ReleaseWriter(qw422016) qt422016.ReleaseWriter(qw422016)
//line templates/http_mutators.qtpl:17 //line templates/mutators.qtpl:17
} }
//line templates/http_mutators.qtpl:17 //line templates/mutators.qtpl:17
func EditHTML(rq *http.Request, hyphaName, textAreaFill, warning string) string { func EditHTML(rq *http.Request, hyphaName, textAreaFill, warning string) string {
//line templates/http_mutators.qtpl:17 //line templates/mutators.qtpl:17
qb422016 := qt422016.AcquireByteBuffer() qb422016 := qt422016.AcquireByteBuffer()
//line templates/http_mutators.qtpl:17 //line templates/mutators.qtpl:17
WriteEditHTML(qb422016, rq, hyphaName, textAreaFill, warning) WriteEditHTML(qb422016, rq, hyphaName, textAreaFill, warning)
//line templates/http_mutators.qtpl:17 //line templates/mutators.qtpl:17
qs422016 := string(qb422016.B) qs422016 := string(qb422016.B)
//line templates/http_mutators.qtpl:17 //line templates/mutators.qtpl:17
qt422016.ReleaseByteBuffer(qb422016) qt422016.ReleaseByteBuffer(qb422016)
//line templates/http_mutators.qtpl:17 //line templates/mutators.qtpl:17
return qs422016 return qs422016
//line templates/http_mutators.qtpl:17 //line templates/mutators.qtpl:17
} }
//line templates/http_mutators.qtpl:19 //line templates/mutators.qtpl:19
func StreamPreviewHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, textAreaFill, warning string, renderedPage string) { func StreamPreviewHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, textAreaFill, warning string, renderedPage string) {
//line templates/http_mutators.qtpl:19 //line templates/mutators.qtpl:19
qw422016.N().S(` qw422016.N().S(`
`) `)
//line templates/http_mutators.qtpl:20 //line templates/mutators.qtpl:20
qw422016.N().S(navHTML(rq, hyphaName, "edit")) qw422016.N().S(navHTML(rq, hyphaName, "edit"))
//line templates/http_mutators.qtpl:20 //line templates/mutators.qtpl:20
qw422016.N().S(` qw422016.N().S(`
<main class="edit edit_with-preview"> <main class="edit edit_with-preview">
<h1>Edit `) <h1>Edit `)
//line templates/http_mutators.qtpl:22 //line templates/mutators.qtpl:22
qw422016.E().S(hyphaName) qw422016.E().S(hyphaName)
//line templates/http_mutators.qtpl:22 //line templates/mutators.qtpl:22
qw422016.N().S(` (preview)</h1> qw422016.N().S(` (preview)</h1>
`) `)
//line templates/http_mutators.qtpl:23 //line templates/mutators.qtpl:23
qw422016.N().S(warning) qw422016.N().S(warning)
//line templates/http_mutators.qtpl:23 //line templates/mutators.qtpl:23
qw422016.N().S(` qw422016.N().S(`
<form method="post" class="edit-form" <form method="post" class="edit-form"
action="/upload-text/`) action="/upload-text/`)
//line templates/http_mutators.qtpl:25 //line templates/mutators.qtpl:25
qw422016.E().S(hyphaName) qw422016.E().S(hyphaName)
//line templates/http_mutators.qtpl:25 //line templates/mutators.qtpl:25
qw422016.N().S(`"> qw422016.N().S(`">
<textarea name="text">`) <textarea name="text">`)
//line templates/http_mutators.qtpl:26 //line templates/mutators.qtpl:26
qw422016.E().S(textAreaFill) qw422016.E().S(textAreaFill)
//line templates/http_mutators.qtpl:26 //line templates/mutators.qtpl:26
qw422016.N().S(`</textarea> qw422016.N().S(`</textarea>
<br/> <br/>
<input type="submit" name="action" value="Save" class="edit-form__save"/> <input type="submit" name="action" value="Save" class="edit-form__save"/>
<input type="submit" name="action" value="Preview" class="edit-form__preview"> <input type="submit" name="action" value="Preview" class="edit-form__preview">
<a href="/page/`) <a href="/page/`)
//line templates/http_mutators.qtpl:30 //line templates/mutators.qtpl:30
qw422016.E().S(hyphaName) qw422016.E().S(hyphaName)
//line templates/http_mutators.qtpl:30 //line templates/mutators.qtpl:30
qw422016.N().S(`" class="edit-form__cancel">Cancel</a> qw422016.N().S(`" class="edit-form__cancel">Cancel</a>
</form> </form>
<p class="warning">Note that the hypha is not saved yet. You can preview the changes </p> <p class="warning">Note that the hypha is not saved yet. You can preview the changes </p>
<section class="edit__preview">`) <section class="edit__preview">`)
//line templates/http_mutators.qtpl:33 //line templates/mutators.qtpl:33
qw422016.N().S(renderedPage) qw422016.N().S(renderedPage)
//line templates/http_mutators.qtpl:33 //line templates/mutators.qtpl:33
qw422016.N().S(`</section> qw422016.N().S(`</section>
</main> </main>
`) `)
//line templates/http_mutators.qtpl:35 //line templates/mutators.qtpl:35
} }
//line templates/http_mutators.qtpl:35 //line templates/mutators.qtpl:35
func WritePreviewHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, textAreaFill, warning string, renderedPage string) { func WritePreviewHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, textAreaFill, warning string, renderedPage string) {
//line templates/http_mutators.qtpl:35 //line templates/mutators.qtpl:35
qw422016 := qt422016.AcquireWriter(qq422016) qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/http_mutators.qtpl:35 //line templates/mutators.qtpl:35
StreamPreviewHTML(qw422016, rq, hyphaName, textAreaFill, warning, renderedPage) StreamPreviewHTML(qw422016, rq, hyphaName, textAreaFill, warning, renderedPage)
//line templates/http_mutators.qtpl:35 //line templates/mutators.qtpl:35
qt422016.ReleaseWriter(qw422016) qt422016.ReleaseWriter(qw422016)
//line templates/http_mutators.qtpl:35 //line templates/mutators.qtpl:35
} }
//line templates/http_mutators.qtpl:35 //line templates/mutators.qtpl:35
func PreviewHTML(rq *http.Request, hyphaName, textAreaFill, warning string, renderedPage string) string { func PreviewHTML(rq *http.Request, hyphaName, textAreaFill, warning string, renderedPage string) string {
//line templates/http_mutators.qtpl:35 //line templates/mutators.qtpl:35
qb422016 := qt422016.AcquireByteBuffer() qb422016 := qt422016.AcquireByteBuffer()
//line templates/http_mutators.qtpl:35 //line templates/mutators.qtpl:35
WritePreviewHTML(qb422016, rq, hyphaName, textAreaFill, warning, renderedPage) WritePreviewHTML(qb422016, rq, hyphaName, textAreaFill, warning, renderedPage)
//line templates/http_mutators.qtpl:35 //line templates/mutators.qtpl:35
qs422016 := string(qb422016.B) qs422016 := string(qb422016.B)
//line templates/http_mutators.qtpl:35 //line templates/mutators.qtpl:35
qt422016.ReleaseByteBuffer(qb422016) qt422016.ReleaseByteBuffer(qb422016)
//line templates/http_mutators.qtpl:35 //line templates/mutators.qtpl:35
return qs422016 return qs422016
//line templates/http_mutators.qtpl:35 //line templates/mutators.qtpl:35
} }

View File

@ -1,256 +1,256 @@
// Code generated by qtc from "http_readers.qtpl". DO NOT EDIT. // Code generated by qtc from "readers.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details. // See https://github.com/valyala/quicktemplate for details.
//line templates/http_readers.qtpl:1 //line templates/readers.qtpl:1
package templates package templates
//line templates/http_readers.qtpl:1 //line templates/readers.qtpl:1
import "net/http" import "net/http"
//line templates/http_readers.qtpl:2 //line templates/readers.qtpl:2
import "path" import "path"
//line templates/http_readers.qtpl:3 //line templates/readers.qtpl:3
import "github.com/bouncepaw/mycorrhiza/user" import "github.com/bouncepaw/mycorrhiza/user"
//line templates/http_readers.qtpl:5 //line templates/readers.qtpl:5
import ( import (
qtio422016 "io" qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate" qt422016 "github.com/valyala/quicktemplate"
) )
//line templates/http_readers.qtpl:5 //line templates/readers.qtpl:5
var ( var (
_ = qtio422016.Copy _ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer _ = qt422016.AcquireByteBuffer
) )
//line templates/http_readers.qtpl:5 //line templates/readers.qtpl:5
func StreamHistoryHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, list string) { func StreamHistoryHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, list string) {
//line templates/http_readers.qtpl:5 //line templates/readers.qtpl:5
qw422016.N().S(` qw422016.N().S(`
`) `)
//line templates/http_readers.qtpl:6 //line templates/readers.qtpl:6
streamnavHTML(qw422016, rq, hyphaName, "history") streamnavHTML(qw422016, rq, hyphaName, "history")
//line templates/http_readers.qtpl:6 //line templates/readers.qtpl:6
qw422016.N().S(` qw422016.N().S(`
<main> <main>
<article class="history"> <article class="history">
<h1>History of `) <h1>History of `)
//line templates/http_readers.qtpl:9 //line templates/readers.qtpl:9
qw422016.E().S(hyphaName) qw422016.E().S(hyphaName)
//line templates/http_readers.qtpl:9 //line templates/readers.qtpl:9
qw422016.N().S(`</h1> qw422016.N().S(`</h1>
`) `)
//line templates/http_readers.qtpl:10 //line templates/readers.qtpl:10
qw422016.N().S(list) qw422016.N().S(list)
//line templates/http_readers.qtpl:10 //line templates/readers.qtpl:10
qw422016.N().S(` qw422016.N().S(`
</article> </article>
</main> </main>
`) `)
//line templates/http_readers.qtpl:13 //line templates/readers.qtpl:13
} }
//line templates/http_readers.qtpl:13 //line templates/readers.qtpl:13
func WriteHistoryHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, list string) { func WriteHistoryHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, list string) {
//line templates/http_readers.qtpl:13 //line templates/readers.qtpl:13
qw422016 := qt422016.AcquireWriter(qq422016) qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/http_readers.qtpl:13 //line templates/readers.qtpl:13
StreamHistoryHTML(qw422016, rq, hyphaName, list) StreamHistoryHTML(qw422016, rq, hyphaName, list)
//line templates/http_readers.qtpl:13 //line templates/readers.qtpl:13
qt422016.ReleaseWriter(qw422016) qt422016.ReleaseWriter(qw422016)
//line templates/http_readers.qtpl:13 //line templates/readers.qtpl:13
} }
//line templates/http_readers.qtpl:13 //line templates/readers.qtpl:13
func HistoryHTML(rq *http.Request, hyphaName, list string) string { func HistoryHTML(rq *http.Request, hyphaName, list string) string {
//line templates/http_readers.qtpl:13 //line templates/readers.qtpl:13
qb422016 := qt422016.AcquireByteBuffer() qb422016 := qt422016.AcquireByteBuffer()
//line templates/http_readers.qtpl:13 //line templates/readers.qtpl:13
WriteHistoryHTML(qb422016, rq, hyphaName, list) WriteHistoryHTML(qb422016, rq, hyphaName, list)
//line templates/http_readers.qtpl:13 //line templates/readers.qtpl:13
qs422016 := string(qb422016.B) qs422016 := string(qb422016.B)
//line templates/http_readers.qtpl:13 //line templates/readers.qtpl:13
qt422016.ReleaseByteBuffer(qb422016) qt422016.ReleaseByteBuffer(qb422016)
//line templates/http_readers.qtpl:13 //line templates/readers.qtpl:13
return qs422016 return qs422016
//line templates/http_readers.qtpl:13 //line templates/readers.qtpl:13
} }
//line templates/http_readers.qtpl:15 //line templates/readers.qtpl:15
func StreamRevisionHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, tree, revHash string) { func StreamRevisionHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, tree, revHash string) {
//line templates/http_readers.qtpl:15 //line templates/readers.qtpl:15
qw422016.N().S(` qw422016.N().S(`
`) `)
//line templates/http_readers.qtpl:16 //line templates/readers.qtpl:16
streamnavHTML(qw422016, rq, hyphaName, "revision", revHash) streamnavHTML(qw422016, rq, hyphaName, "revision", revHash)
//line templates/http_readers.qtpl:16 //line templates/readers.qtpl:16
qw422016.N().S(` qw422016.N().S(`
<main> <main>
<article> <article>
<p>Please note that viewing binary parts of hyphae is not supported in history for now.</p> <p>Please note that viewing binary parts of hyphae is not supported in history for now.</p>
`) `)
//line templates/http_readers.qtpl:20 //line templates/readers.qtpl:20
qw422016.N().S(naviTitle) qw422016.N().S(naviTitle)
//line templates/http_readers.qtpl:20 //line templates/readers.qtpl:20
qw422016.N().S(` qw422016.N().S(`
`) `)
//line templates/http_readers.qtpl:21 //line templates/readers.qtpl:21
qw422016.N().S(contents) qw422016.N().S(contents)
//line templates/http_readers.qtpl:21 //line templates/readers.qtpl:21
qw422016.N().S(` qw422016.N().S(`
</article> </article>
<hr/> <hr/>
<aside> <aside>
`) `)
//line templates/http_readers.qtpl:25 //line templates/readers.qtpl:25
qw422016.N().S(tree) qw422016.N().S(tree)
//line templates/http_readers.qtpl:25 //line templates/readers.qtpl:25
qw422016.N().S(` qw422016.N().S(`
</aside> </aside>
</main> </main>
`) `)
//line templates/http_readers.qtpl:28 //line templates/readers.qtpl:28
} }
//line templates/http_readers.qtpl:28 //line templates/readers.qtpl:28
func WriteRevisionHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, tree, revHash string) { func WriteRevisionHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, tree, revHash string) {
//line templates/http_readers.qtpl:28 //line templates/readers.qtpl:28
qw422016 := qt422016.AcquireWriter(qq422016) qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/http_readers.qtpl:28 //line templates/readers.qtpl:28
StreamRevisionHTML(qw422016, rq, hyphaName, naviTitle, contents, tree, revHash) StreamRevisionHTML(qw422016, rq, hyphaName, naviTitle, contents, tree, revHash)
//line templates/http_readers.qtpl:28 //line templates/readers.qtpl:28
qt422016.ReleaseWriter(qw422016) qt422016.ReleaseWriter(qw422016)
//line templates/http_readers.qtpl:28 //line templates/readers.qtpl:28
} }
//line templates/http_readers.qtpl:28 //line templates/readers.qtpl:28
func RevisionHTML(rq *http.Request, hyphaName, naviTitle, contents, tree, revHash string) string { func RevisionHTML(rq *http.Request, hyphaName, naviTitle, contents, tree, revHash string) string {
//line templates/http_readers.qtpl:28 //line templates/readers.qtpl:28
qb422016 := qt422016.AcquireByteBuffer() qb422016 := qt422016.AcquireByteBuffer()
//line templates/http_readers.qtpl:28 //line templates/readers.qtpl:28
WriteRevisionHTML(qb422016, rq, hyphaName, naviTitle, contents, tree, revHash) WriteRevisionHTML(qb422016, rq, hyphaName, naviTitle, contents, tree, revHash)
//line templates/http_readers.qtpl:28 //line templates/readers.qtpl:28
qs422016 := string(qb422016.B) qs422016 := string(qb422016.B)
//line templates/http_readers.qtpl:28 //line templates/readers.qtpl:28
qt422016.ReleaseByteBuffer(qb422016) qt422016.ReleaseByteBuffer(qb422016)
//line templates/http_readers.qtpl:28 //line templates/readers.qtpl:28
return qs422016 return qs422016
//line templates/http_readers.qtpl:28 //line templates/readers.qtpl:28
} }
// If `contents` == "", a helpful message is shown instead. // If `contents` == "", a helpful message is shown instead.
//line templates/http_readers.qtpl:31 //line templates/readers.qtpl:31
func StreamPageHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName string, hasAmnt bool) { func StreamPageHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName string, hasAmnt bool) {
//line templates/http_readers.qtpl:31 //line templates/readers.qtpl:31
qw422016.N().S(` qw422016.N().S(`
`) `)
//line templates/http_readers.qtpl:32 //line templates/readers.qtpl:32
streamnavHTML(qw422016, rq, hyphaName, "page") streamnavHTML(qw422016, rq, hyphaName, "page")
//line templates/http_readers.qtpl:32 //line templates/readers.qtpl:32
qw422016.N().S(` qw422016.N().S(`
<main> <main>
<article> <article>
`) `)
//line templates/http_readers.qtpl:35 //line templates/readers.qtpl:35
qw422016.N().S(naviTitle) qw422016.N().S(naviTitle)
//line templates/http_readers.qtpl:35 //line templates/readers.qtpl:35
qw422016.N().S(` qw422016.N().S(`
`) `)
//line templates/http_readers.qtpl:36 //line templates/readers.qtpl:36
if contents == "" { if contents == "" {
//line templates/http_readers.qtpl:36 //line templates/readers.qtpl:36
qw422016.N().S(` qw422016.N().S(`
<p>This hypha has no text. Why not <a href="/edit/`) <p>This hypha has no text. Why not <a href="/edit/`)
//line templates/http_readers.qtpl:37 //line templates/readers.qtpl:37
qw422016.E().S(hyphaName) qw422016.E().S(hyphaName)
//line templates/http_readers.qtpl:37 //line templates/readers.qtpl:37
qw422016.N().S(`">create it</a>?</p> qw422016.N().S(`">create it</a>?</p>
`) `)
//line templates/http_readers.qtpl:38 //line templates/readers.qtpl:38
} else { } else {
//line templates/http_readers.qtpl:38 //line templates/readers.qtpl:38
qw422016.N().S(` qw422016.N().S(`
`) `)
//line templates/http_readers.qtpl:39 //line templates/readers.qtpl:39
qw422016.N().S(contents) qw422016.N().S(contents)
//line templates/http_readers.qtpl:39 //line templates/readers.qtpl:39
qw422016.N().S(` qw422016.N().S(`
`) `)
//line templates/http_readers.qtpl:40 //line templates/readers.qtpl:40
} }
//line templates/http_readers.qtpl:40 //line templates/readers.qtpl:40
qw422016.N().S(` qw422016.N().S(`
</article> </article>
<section class="prevnext"> <section class="prevnext">
`) `)
//line templates/http_readers.qtpl:43 //line templates/readers.qtpl:43
if prevHyphaName != "" { if prevHyphaName != "" {
//line templates/http_readers.qtpl:43 //line templates/readers.qtpl:43
qw422016.N().S(` qw422016.N().S(`
<a class="prevnext__el prevnext__prev" href="/page/`) <a class="prevnext__el prevnext__prev" href="/page/`)
//line templates/http_readers.qtpl:44 //line templates/readers.qtpl:44
qw422016.E().S(prevHyphaName) qw422016.E().S(prevHyphaName)
//line templates/http_readers.qtpl:44 //line templates/readers.qtpl:44
qw422016.N().S(`" rel="prev">← `) qw422016.N().S(`" rel="prev">← `)
//line templates/http_readers.qtpl:44 //line templates/readers.qtpl:44
qw422016.E().S(path.Base(prevHyphaName)) qw422016.E().S(path.Base(prevHyphaName))
//line templates/http_readers.qtpl:44 //line templates/readers.qtpl:44
qw422016.N().S(`</a> qw422016.N().S(`</a>
`) `)
//line templates/http_readers.qtpl:45 //line templates/readers.qtpl:45
} }
//line templates/http_readers.qtpl:45 //line templates/readers.qtpl:45
qw422016.N().S(` qw422016.N().S(`
`) `)
//line templates/http_readers.qtpl:46 //line templates/readers.qtpl:46
if nextHyphaName != "" { if nextHyphaName != "" {
//line templates/http_readers.qtpl:46 //line templates/readers.qtpl:46
qw422016.N().S(` qw422016.N().S(`
<a class="prevnext__el prevnext__next" href="/page/`) <a class="prevnext__el prevnext__next" href="/page/`)
//line templates/http_readers.qtpl:47 //line templates/readers.qtpl:47
qw422016.E().S(nextHyphaName) qw422016.E().S(nextHyphaName)
//line templates/http_readers.qtpl:47 //line templates/readers.qtpl:47
qw422016.N().S(`" rel="next">`) qw422016.N().S(`" rel="next">`)
//line templates/http_readers.qtpl:47 //line templates/readers.qtpl:47
qw422016.E().S(path.Base(nextHyphaName)) qw422016.E().S(path.Base(nextHyphaName))
//line templates/http_readers.qtpl:47 //line templates/readers.qtpl:47
qw422016.N().S(` </a> qw422016.N().S(` </a>
`) `)
//line templates/http_readers.qtpl:48 //line templates/readers.qtpl:48
} }
//line templates/http_readers.qtpl:48 //line templates/readers.qtpl:48
qw422016.N().S(` qw422016.N().S(`
</section> </section>
`) `)
//line templates/http_readers.qtpl:50 //line templates/readers.qtpl:50
if u := user.FromRequest(rq); !user.AuthUsed || u.Group != "anon" { if u := user.FromRequest(rq); !user.AuthUsed || u.Group != "anon" {
//line templates/http_readers.qtpl:50 //line templates/readers.qtpl:50
qw422016.N().S(` qw422016.N().S(`
<form action="/upload-binary/`) <form action="/upload-binary/`)
//line templates/http_readers.qtpl:51 //line templates/readers.qtpl:51
qw422016.E().S(hyphaName) qw422016.E().S(hyphaName)
//line templates/http_readers.qtpl:51 //line templates/readers.qtpl:51
qw422016.N().S(`" qw422016.N().S(`"
method="post" enctype="multipart/form-data" method="post" enctype="multipart/form-data"
class="upload-amnt"> class="upload-amnt">
`) `)
//line templates/http_readers.qtpl:54 //line templates/readers.qtpl:54
if hasAmnt { if hasAmnt {
//line templates/http_readers.qtpl:54 //line templates/readers.qtpl:54
qw422016.N().S(` qw422016.N().S(`
<a class="upload-amnt__unattach" href="/unattach-ask/`) <a class="upload-amnt__unattach" href="/unattach-ask/`)
//line templates/http_readers.qtpl:55 //line templates/readers.qtpl:55
qw422016.E().S(hyphaName) qw422016.E().S(hyphaName)
//line templates/http_readers.qtpl:55 //line templates/readers.qtpl:55
qw422016.N().S(`">Unattach current attachment?</a> qw422016.N().S(`">Unattach current attachment?</a>
`) `)
//line templates/http_readers.qtpl:56 //line templates/readers.qtpl:56
} }
//line templates/http_readers.qtpl:56 //line templates/readers.qtpl:56
qw422016.N().S(` qw422016.N().S(`
<label for="upload-binary__input">Upload a new attachment</label> <label for="upload-binary__input">Upload a new attachment</label>
<br> <br>
@ -258,44 +258,44 @@ func StreamPageHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, navi
<input type="submit"/> <input type="submit"/>
</form> </form>
`) `)
//line templates/http_readers.qtpl:62 //line templates/readers.qtpl:62
} }
//line templates/http_readers.qtpl:62 //line templates/readers.qtpl:62
qw422016.N().S(` qw422016.N().S(`
<aside> <aside>
`) `)
//line templates/http_readers.qtpl:64 //line templates/readers.qtpl:64
qw422016.N().S(tree) qw422016.N().S(tree)
//line templates/http_readers.qtpl:64 //line templates/readers.qtpl:64
qw422016.N().S(` qw422016.N().S(`
</aside> </aside>
</main> </main>
`) `)
//line templates/http_readers.qtpl:67 //line templates/readers.qtpl:67
} }
//line templates/http_readers.qtpl:67 //line templates/readers.qtpl:67
func WritePageHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName string, hasAmnt bool) { func WritePageHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName string, hasAmnt bool) {
//line templates/http_readers.qtpl:67 //line templates/readers.qtpl:67
qw422016 := qt422016.AcquireWriter(qq422016) qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/http_readers.qtpl:67 //line templates/readers.qtpl:67
StreamPageHTML(qw422016, rq, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName, hasAmnt) StreamPageHTML(qw422016, rq, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName, hasAmnt)
//line templates/http_readers.qtpl:67 //line templates/readers.qtpl:67
qt422016.ReleaseWriter(qw422016) qt422016.ReleaseWriter(qw422016)
//line templates/http_readers.qtpl:67 //line templates/readers.qtpl:67
} }
//line templates/http_readers.qtpl:67 //line templates/readers.qtpl:67
func PageHTML(rq *http.Request, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName string, hasAmnt bool) string { func PageHTML(rq *http.Request, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName string, hasAmnt bool) string {
//line templates/http_readers.qtpl:67 //line templates/readers.qtpl:67
qb422016 := qt422016.AcquireByteBuffer() qb422016 := qt422016.AcquireByteBuffer()
//line templates/http_readers.qtpl:67 //line templates/readers.qtpl:67
WritePageHTML(qb422016, rq, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName, hasAmnt) WritePageHTML(qb422016, rq, hyphaName, naviTitle, contents, tree, prevHyphaName, nextHyphaName, hasAmnt)
//line templates/http_readers.qtpl:67 //line templates/readers.qtpl:67
qs422016 := string(qb422016.B) qs422016 := string(qb422016.B)
//line templates/http_readers.qtpl:67 //line templates/readers.qtpl:67
qt422016.ReleaseByteBuffer(qb422016) qt422016.ReleaseByteBuffer(qb422016)
//line templates/http_readers.qtpl:67 //line templates/readers.qtpl:67
return qs422016 return qs422016
//line templates/http_readers.qtpl:67 //line templates/readers.qtpl:67
} }

View File

@ -60,7 +60,7 @@
<section> <section>
<h1>About {%s util.SiteName %}</h1> <h1>About {%s util.SiteName %}</h1>
<ul> <ul>
<li><b><a href="https://mycorrhiza.lesarbr.es">MycorrhizaWiki</a> version:</b> β 0.12 indev</li> <li><b><a href="https://mycorrhiza.lesarbr.es">MycorrhizaWiki</a> version:</b> β 0.13 indev</li>
{%- if user.AuthUsed -%} {%- if user.AuthUsed -%}
<li><b>User count:</b> {%d user.Count() %}</li> <li><b>User count:</b> {%d user.Count() %}</li>
<li><b>Home page:</b> <a href="/">{%s util.HomePage %}</a></li> <li><b>Home page:</b> <a href="/">{%s util.HomePage %}</a></li>

View File

@ -1,31 +1,31 @@
// Code generated by qtc from "http_stuff.qtpl". DO NOT EDIT. // Code generated by qtc from "stuff.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details. // See https://github.com/valyala/quicktemplate for details.
//line templates/http_stuff.qtpl:1 //line templates/stuff.qtpl:1
package templates package templates
//line templates/http_stuff.qtpl:1 //line templates/stuff.qtpl:1
import "github.com/bouncepaw/mycorrhiza/util" import "github.com/bouncepaw/mycorrhiza/util"
//line templates/http_stuff.qtpl:2 //line templates/stuff.qtpl:2
import "github.com/bouncepaw/mycorrhiza/user" import "github.com/bouncepaw/mycorrhiza/user"
//line templates/http_stuff.qtpl:4 //line templates/stuff.qtpl:4
import ( import (
qtio422016 "io" qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate" qt422016 "github.com/valyala/quicktemplate"
) )
//line templates/http_stuff.qtpl:4 //line templates/stuff.qtpl:4
var ( var (
_ = qtio422016.Copy _ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer _ = qt422016.AcquireByteBuffer
) )
//line templates/http_stuff.qtpl:4 //line templates/stuff.qtpl:4
func StreamBaseHTML(qw422016 *qt422016.Writer, title, body string, u *user.User, headElements ...string) { func StreamBaseHTML(qw422016 *qt422016.Writer, title, body string, u *user.User, headElements ...string) {
//line templates/http_stuff.qtpl:4 //line templates/stuff.qtpl:4
qw422016.N().S(` qw422016.N().S(`
<!doctype html> <!doctype html>
<html> <html>
@ -33,18 +33,18 @@ func StreamBaseHTML(qw422016 *qt422016.Writer, title, body string, u *user.User,
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/static/common.css"> <link rel="stylesheet" type="text/css" href="/static/common.css">
<title>`) <title>`)
//line templates/http_stuff.qtpl:10 //line templates/stuff.qtpl:10
qw422016.E().S(title) qw422016.E().S(title)
//line templates/http_stuff.qtpl:10 //line templates/stuff.qtpl:10
qw422016.N().S(`</title> qw422016.N().S(`</title>
`) `)
//line templates/http_stuff.qtpl:11 //line templates/stuff.qtpl:11
for _, el := range headElements { for _, el := range headElements {
//line templates/http_stuff.qtpl:11 //line templates/stuff.qtpl:11
qw422016.N().S(el) qw422016.N().S(el)
//line templates/http_stuff.qtpl:11 //line templates/stuff.qtpl:11
} }
//line templates/http_stuff.qtpl:11 //line templates/stuff.qtpl:11
qw422016.N().S(` qw422016.N().S(`
</head> </head>
<body> <body>
@ -52,77 +52,77 @@ func StreamBaseHTML(qw422016 *qt422016.Writer, title, body string, u *user.User,
<nav class="header-links"> <nav class="header-links">
<ul class="header-links__list"> <ul class="header-links__list">
`) `)
//line templates/http_stuff.qtpl:17 //line templates/stuff.qtpl:17
for _, link := range util.HeaderLinks { for _, link := range util.HeaderLinks {
//line templates/http_stuff.qtpl:17 //line templates/stuff.qtpl:17
qw422016.N().S(` <li class="header-links__entry"><a class="header-links__link" href="`) qw422016.N().S(` <li class="header-links__entry"><a class="header-links__link" href="`)
//line templates/http_stuff.qtpl:18 //line templates/stuff.qtpl:18
qw422016.E().S(link.Href) qw422016.E().S(link.Href)
//line templates/http_stuff.qtpl:18 //line templates/stuff.qtpl:18
qw422016.N().S(`">`) qw422016.N().S(`">`)
//line templates/http_stuff.qtpl:18 //line templates/stuff.qtpl:18
qw422016.E().S(link.Display) qw422016.E().S(link.Display)
//line templates/http_stuff.qtpl:18 //line templates/stuff.qtpl:18
qw422016.N().S(`</a></li> qw422016.N().S(`</a></li>
`) `)
//line templates/http_stuff.qtpl:19 //line templates/stuff.qtpl:19
} }
//line templates/http_stuff.qtpl:19 //line templates/stuff.qtpl:19
qw422016.N().S(` `) qw422016.N().S(` `)
//line templates/http_stuff.qtpl:20 //line templates/stuff.qtpl:20
qw422016.N().S(userMenuHTML(u)) qw422016.N().S(userMenuHTML(u))
//line templates/http_stuff.qtpl:20 //line templates/stuff.qtpl:20
qw422016.N().S(` qw422016.N().S(`
</ul> </ul>
</nav> </nav>
</header> </header>
`) `)
//line templates/http_stuff.qtpl:24 //line templates/stuff.qtpl:24
qw422016.N().S(body) qw422016.N().S(body)
//line templates/http_stuff.qtpl:24 //line templates/stuff.qtpl:24
qw422016.N().S(` qw422016.N().S(`
</body> </body>
</html> </html>
`) `)
//line templates/http_stuff.qtpl:27 //line templates/stuff.qtpl:27
} }
//line templates/http_stuff.qtpl:27 //line templates/stuff.qtpl:27
func WriteBaseHTML(qq422016 qtio422016.Writer, title, body string, u *user.User, headElements ...string) { func WriteBaseHTML(qq422016 qtio422016.Writer, title, body string, u *user.User, headElements ...string) {
//line templates/http_stuff.qtpl:27 //line templates/stuff.qtpl:27
qw422016 := qt422016.AcquireWriter(qq422016) qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/http_stuff.qtpl:27 //line templates/stuff.qtpl:27
StreamBaseHTML(qw422016, title, body, u, headElements...) StreamBaseHTML(qw422016, title, body, u, headElements...)
//line templates/http_stuff.qtpl:27 //line templates/stuff.qtpl:27
qt422016.ReleaseWriter(qw422016) qt422016.ReleaseWriter(qw422016)
//line templates/http_stuff.qtpl:27 //line templates/stuff.qtpl:27
} }
//line templates/http_stuff.qtpl:27 //line templates/stuff.qtpl:27
func BaseHTML(title, body string, u *user.User, headElements ...string) string { func BaseHTML(title, body string, u *user.User, headElements ...string) string {
//line templates/http_stuff.qtpl:27 //line templates/stuff.qtpl:27
qb422016 := qt422016.AcquireByteBuffer() qb422016 := qt422016.AcquireByteBuffer()
//line templates/http_stuff.qtpl:27 //line templates/stuff.qtpl:27
WriteBaseHTML(qb422016, title, body, u, headElements...) WriteBaseHTML(qb422016, title, body, u, headElements...)
//line templates/http_stuff.qtpl:27 //line templates/stuff.qtpl:27
qs422016 := string(qb422016.B) qs422016 := string(qb422016.B)
//line templates/http_stuff.qtpl:27 //line templates/stuff.qtpl:27
qt422016.ReleaseByteBuffer(qb422016) qt422016.ReleaseByteBuffer(qb422016)
//line templates/http_stuff.qtpl:27 //line templates/stuff.qtpl:27
return qs422016 return qs422016
//line templates/http_stuff.qtpl:27 //line templates/stuff.qtpl:27
} }
//line templates/http_stuff.qtpl:29 //line templates/stuff.qtpl:29
func StreamHyphaListHTML(qw422016 *qt422016.Writer, tbody string, pageCount int) { func StreamHyphaListHTML(qw422016 *qt422016.Writer, tbody string, pageCount int) {
//line templates/http_stuff.qtpl:29 //line templates/stuff.qtpl:29
qw422016.N().S(` qw422016.N().S(`
<main> <main>
<h1>List of hyphae</h1> <h1>List of hyphae</h1>
<p>This wiki has `) <p>This wiki has `)
//line templates/http_stuff.qtpl:32 //line templates/stuff.qtpl:32
qw422016.N().D(pageCount) qw422016.N().D(pageCount)
//line templates/http_stuff.qtpl:32 //line templates/stuff.qtpl:32
qw422016.N().S(` hyphae.</p> qw422016.N().S(` hyphae.</p>
<table> <table>
<thead> <thead>
@ -133,203 +133,203 @@ func StreamHyphaListHTML(qw422016 *qt422016.Writer, tbody string, pageCount int)
</thead> </thead>
<tbody> <tbody>
`) `)
//line templates/http_stuff.qtpl:41 //line templates/stuff.qtpl:41
qw422016.N().S(tbody) qw422016.N().S(tbody)
//line templates/http_stuff.qtpl:41 //line templates/stuff.qtpl:41
qw422016.N().S(` qw422016.N().S(`
</tbody> </tbody>
</table> </table>
</main> </main>
`) `)
//line templates/http_stuff.qtpl:45 //line templates/stuff.qtpl:45
} }
//line templates/http_stuff.qtpl:45 //line templates/stuff.qtpl:45
func WriteHyphaListHTML(qq422016 qtio422016.Writer, tbody string, pageCount int) { func WriteHyphaListHTML(qq422016 qtio422016.Writer, tbody string, pageCount int) {
//line templates/http_stuff.qtpl:45 //line templates/stuff.qtpl:45
qw422016 := qt422016.AcquireWriter(qq422016) qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/http_stuff.qtpl:45 //line templates/stuff.qtpl:45
StreamHyphaListHTML(qw422016, tbody, pageCount) StreamHyphaListHTML(qw422016, tbody, pageCount)
//line templates/http_stuff.qtpl:45 //line templates/stuff.qtpl:45
qt422016.ReleaseWriter(qw422016) qt422016.ReleaseWriter(qw422016)
//line templates/http_stuff.qtpl:45 //line templates/stuff.qtpl:45
} }
//line templates/http_stuff.qtpl:45 //line templates/stuff.qtpl:45
func HyphaListHTML(tbody string, pageCount int) string { func HyphaListHTML(tbody string, pageCount int) string {
//line templates/http_stuff.qtpl:45 //line templates/stuff.qtpl:45
qb422016 := qt422016.AcquireByteBuffer() qb422016 := qt422016.AcquireByteBuffer()
//line templates/http_stuff.qtpl:45 //line templates/stuff.qtpl:45
WriteHyphaListHTML(qb422016, tbody, pageCount) WriteHyphaListHTML(qb422016, tbody, pageCount)
//line templates/http_stuff.qtpl:45 //line templates/stuff.qtpl:45
qs422016 := string(qb422016.B) qs422016 := string(qb422016.B)
//line templates/http_stuff.qtpl:45 //line templates/stuff.qtpl:45
qt422016.ReleaseByteBuffer(qb422016) qt422016.ReleaseByteBuffer(qb422016)
//line templates/http_stuff.qtpl:45 //line templates/stuff.qtpl:45
return qs422016 return qs422016
//line templates/http_stuff.qtpl:45 //line templates/stuff.qtpl:45
} }
//line templates/http_stuff.qtpl:47 //line templates/stuff.qtpl:47
func StreamHyphaListRowHTML(qw422016 *qt422016.Writer, hyphaName, binaryMime string, binaryPresent bool) { func StreamHyphaListRowHTML(qw422016 *qt422016.Writer, hyphaName, binaryMime string, binaryPresent bool) {
//line templates/http_stuff.qtpl:47 //line templates/stuff.qtpl:47
qw422016.N().S(` qw422016.N().S(`
<tr> <tr>
<td><a href="/page/`) <td><a href="/page/`)
//line templates/http_stuff.qtpl:49 //line templates/stuff.qtpl:49
qw422016.E().S(hyphaName) qw422016.E().S(hyphaName)
//line templates/http_stuff.qtpl:49 //line templates/stuff.qtpl:49
qw422016.N().S(`">`) qw422016.N().S(`">`)
//line templates/http_stuff.qtpl:49 //line templates/stuff.qtpl:49
qw422016.E().S(hyphaName) qw422016.E().S(hyphaName)
//line templates/http_stuff.qtpl:49 //line templates/stuff.qtpl:49
qw422016.N().S(`</a></td> qw422016.N().S(`</a></td>
`) `)
//line templates/http_stuff.qtpl:50 //line templates/stuff.qtpl:50
if binaryPresent { if binaryPresent {
//line templates/http_stuff.qtpl:50 //line templates/stuff.qtpl:50
qw422016.N().S(` qw422016.N().S(`
<td>`) <td>`)
//line templates/http_stuff.qtpl:51 //line templates/stuff.qtpl:51
qw422016.E().S(binaryMime) qw422016.E().S(binaryMime)
//line templates/http_stuff.qtpl:51 //line templates/stuff.qtpl:51
qw422016.N().S(`</td> qw422016.N().S(`</td>
`) `)
//line templates/http_stuff.qtpl:52 //line templates/stuff.qtpl:52
} else { } else {
//line templates/http_stuff.qtpl:52 //line templates/stuff.qtpl:52
qw422016.N().S(` qw422016.N().S(`
<td></td> <td></td>
`) `)
//line templates/http_stuff.qtpl:54 //line templates/stuff.qtpl:54
} }
//line templates/http_stuff.qtpl:54 //line templates/stuff.qtpl:54
qw422016.N().S(` qw422016.N().S(`
</tr> </tr>
`) `)
//line templates/http_stuff.qtpl:56 //line templates/stuff.qtpl:56
} }
//line templates/http_stuff.qtpl:56 //line templates/stuff.qtpl:56
func WriteHyphaListRowHTML(qq422016 qtio422016.Writer, hyphaName, binaryMime string, binaryPresent bool) { func WriteHyphaListRowHTML(qq422016 qtio422016.Writer, hyphaName, binaryMime string, binaryPresent bool) {
//line templates/http_stuff.qtpl:56 //line templates/stuff.qtpl:56
qw422016 := qt422016.AcquireWriter(qq422016) qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/http_stuff.qtpl:56 //line templates/stuff.qtpl:56
StreamHyphaListRowHTML(qw422016, hyphaName, binaryMime, binaryPresent) StreamHyphaListRowHTML(qw422016, hyphaName, binaryMime, binaryPresent)
//line templates/http_stuff.qtpl:56 //line templates/stuff.qtpl:56
qt422016.ReleaseWriter(qw422016) qt422016.ReleaseWriter(qw422016)
//line templates/http_stuff.qtpl:56 //line templates/stuff.qtpl:56
} }
//line templates/http_stuff.qtpl:56 //line templates/stuff.qtpl:56
func HyphaListRowHTML(hyphaName, binaryMime string, binaryPresent bool) string { func HyphaListRowHTML(hyphaName, binaryMime string, binaryPresent bool) string {
//line templates/http_stuff.qtpl:56 //line templates/stuff.qtpl:56
qb422016 := qt422016.AcquireByteBuffer() qb422016 := qt422016.AcquireByteBuffer()
//line templates/http_stuff.qtpl:56 //line templates/stuff.qtpl:56
WriteHyphaListRowHTML(qb422016, hyphaName, binaryMime, binaryPresent) WriteHyphaListRowHTML(qb422016, hyphaName, binaryMime, binaryPresent)
//line templates/http_stuff.qtpl:56 //line templates/stuff.qtpl:56
qs422016 := string(qb422016.B) qs422016 := string(qb422016.B)
//line templates/http_stuff.qtpl:56 //line templates/stuff.qtpl:56
qt422016.ReleaseByteBuffer(qb422016) qt422016.ReleaseByteBuffer(qb422016)
//line templates/http_stuff.qtpl:56 //line templates/stuff.qtpl:56
return qs422016 return qs422016
//line templates/http_stuff.qtpl:56 //line templates/stuff.qtpl:56
} }
//line templates/http_stuff.qtpl:58 //line templates/stuff.qtpl:58
func StreamAboutHTML(qw422016 *qt422016.Writer) { func StreamAboutHTML(qw422016 *qt422016.Writer) {
//line templates/http_stuff.qtpl:58 //line templates/stuff.qtpl:58
qw422016.N().S(` qw422016.N().S(`
<main> <main>
<section> <section>
<h1>About `) <h1>About `)
//line templates/http_stuff.qtpl:61 //line templates/stuff.qtpl:61
qw422016.E().S(util.SiteName) qw422016.E().S(util.SiteName)
//line templates/http_stuff.qtpl:61 //line templates/stuff.qtpl:61
qw422016.N().S(`</h1> qw422016.N().S(`</h1>
<ul> <ul>
<li><b><a href="https://mycorrhiza.lesarbr.es">MycorrhizaWiki</a> version:</b> β 0.12 indev</li> <li><b><a href="https://mycorrhiza.lesarbr.es">MycorrhizaWiki</a> version:</b> β 0.13 indev</li>
`) `)
//line templates/http_stuff.qtpl:64 //line templates/stuff.qtpl:64
if user.AuthUsed { if user.AuthUsed {
//line templates/http_stuff.qtpl:64 //line templates/stuff.qtpl:64
qw422016.N().S(` <li><b>User count:</b> `) qw422016.N().S(` <li><b>User count:</b> `)
//line templates/http_stuff.qtpl:65 //line templates/stuff.qtpl:65
qw422016.N().D(user.Count()) qw422016.N().D(user.Count())
//line templates/http_stuff.qtpl:65 //line templates/stuff.qtpl:65
qw422016.N().S(`</li> qw422016.N().S(`</li>
<li><b>Home page:</b> <a href="/">`) <li><b>Home page:</b> <a href="/">`)
//line templates/http_stuff.qtpl:66 //line templates/stuff.qtpl:66
qw422016.E().S(util.HomePage) qw422016.E().S(util.HomePage)
//line templates/http_stuff.qtpl:66 //line templates/stuff.qtpl:66
qw422016.N().S(`</a></li> qw422016.N().S(`</a></li>
<li><b>Administrators:</b>`) <li><b>Administrators:</b>`)
//line templates/http_stuff.qtpl:67 //line templates/stuff.qtpl:67
for i, username := range user.ListUsersWithGroup("admin") { for i, username := range user.ListUsersWithGroup("admin") {
//line templates/http_stuff.qtpl:68 //line templates/stuff.qtpl:68
if i > 0 { if i > 0 {
//line templates/http_stuff.qtpl:68 //line templates/stuff.qtpl:68
qw422016.N().S(`<span aria-hidden="true">, </span> qw422016.N().S(`<span aria-hidden="true">, </span>
`) `)
//line templates/http_stuff.qtpl:69 //line templates/stuff.qtpl:69
} }
//line templates/http_stuff.qtpl:69 //line templates/stuff.qtpl:69
qw422016.N().S(` <a href="/page/`) qw422016.N().S(` <a href="/page/`)
//line templates/http_stuff.qtpl:70 //line templates/stuff.qtpl:70
qw422016.E().S(util.UserHypha) qw422016.E().S(util.UserHypha)
//line templates/http_stuff.qtpl:70 //line templates/stuff.qtpl:70
qw422016.N().S(`/`) qw422016.N().S(`/`)
//line templates/http_stuff.qtpl:70 //line templates/stuff.qtpl:70
qw422016.E().S(username) qw422016.E().S(username)
//line templates/http_stuff.qtpl:70 //line templates/stuff.qtpl:70
qw422016.N().S(`">`) qw422016.N().S(`">`)
//line templates/http_stuff.qtpl:70 //line templates/stuff.qtpl:70
qw422016.E().S(username) qw422016.E().S(username)
//line templates/http_stuff.qtpl:70 //line templates/stuff.qtpl:70
qw422016.N().S(`</a>`) qw422016.N().S(`</a>`)
//line templates/http_stuff.qtpl:70 //line templates/stuff.qtpl:70
} }
//line templates/http_stuff.qtpl:70 //line templates/stuff.qtpl:70
qw422016.N().S(`</li> qw422016.N().S(`</li>
`) `)
//line templates/http_stuff.qtpl:71 //line templates/stuff.qtpl:71
} else { } else {
//line templates/http_stuff.qtpl:71 //line templates/stuff.qtpl:71
qw422016.N().S(` <li>This wiki does not use authorization</li> qw422016.N().S(` <li>This wiki does not use authorization</li>
`) `)
//line templates/http_stuff.qtpl:73 //line templates/stuff.qtpl:73
} }
//line templates/http_stuff.qtpl:73 //line templates/stuff.qtpl:73
qw422016.N().S(` </ul> qw422016.N().S(` </ul>
<p>See <a href="/list">/list</a> for information about hyphae on this wiki.</p> <p>See <a href="/list">/list</a> for information about hyphae on this wiki.</p>
</section> </section>
</main> </main>
`) `)
//line templates/http_stuff.qtpl:78 //line templates/stuff.qtpl:78
} }
//line templates/http_stuff.qtpl:78 //line templates/stuff.qtpl:78
func WriteAboutHTML(qq422016 qtio422016.Writer) { func WriteAboutHTML(qq422016 qtio422016.Writer) {
//line templates/http_stuff.qtpl:78 //line templates/stuff.qtpl:78
qw422016 := qt422016.AcquireWriter(qq422016) qw422016 := qt422016.AcquireWriter(qq422016)
//line templates/http_stuff.qtpl:78 //line templates/stuff.qtpl:78
StreamAboutHTML(qw422016) StreamAboutHTML(qw422016)
//line templates/http_stuff.qtpl:78 //line templates/stuff.qtpl:78
qt422016.ReleaseWriter(qw422016) qt422016.ReleaseWriter(qw422016)
//line templates/http_stuff.qtpl:78 //line templates/stuff.qtpl:78
} }
//line templates/http_stuff.qtpl:78 //line templates/stuff.qtpl:78
func AboutHTML() string { func AboutHTML() string {
//line templates/http_stuff.qtpl:78 //line templates/stuff.qtpl:78
qb422016 := qt422016.AcquireByteBuffer() qb422016 := qt422016.AcquireByteBuffer()
//line templates/http_stuff.qtpl:78 //line templates/stuff.qtpl:78
WriteAboutHTML(qb422016) WriteAboutHTML(qb422016)
//line templates/http_stuff.qtpl:78 //line templates/stuff.qtpl:78
qs422016 := string(qb422016.B) qs422016 := string(qb422016.B)
//line templates/http_stuff.qtpl:78 //line templates/stuff.qtpl:78
qt422016.ReleaseByteBuffer(qb422016) qt422016.ReleaseByteBuffer(qb422016)
//line templates/http_stuff.qtpl:78 //line templates/stuff.qtpl:78
return qs422016 return qs422016
//line templates/http_stuff.qtpl:78 //line templates/stuff.qtpl:78
} }