mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-12 05:20:26 +00:00
Move some files around
This commit is contained in:
parent
2a5d7d580c
commit
b662eb5219
@ -1,4 +1,4 @@
|
||||
# 🍄 MycorrhizaWiki 0.12
|
||||
# 🍄 MycorrhizaWiki 0.13
|
||||
A wiki engine.
|
||||
|
||||
[Main wiki](https://mycorrhiza.lesarbr.es)
|
||||
|
@ -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.
|
||||
|
||||
//line templates/http_mutators.qtpl:1
|
||||
//line templates/mutators.qtpl:1
|
||||
package templates
|
||||
|
||||
//line templates/http_mutators.qtpl:1
|
||||
//line templates/mutators.qtpl:1
|
||||
import "net/http"
|
||||
|
||||
//line templates/http_mutators.qtpl:3
|
||||
//line templates/mutators.qtpl:3
|
||||
import (
|
||||
qtio422016 "io"
|
||||
|
||||
qt422016 "github.com/valyala/quicktemplate"
|
||||
)
|
||||
|
||||
//line templates/http_mutators.qtpl:3
|
||||
//line templates/mutators.qtpl:3
|
||||
var (
|
||||
_ = qtio422016.Copy
|
||||
_ = 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) {
|
||||
//line templates/http_mutators.qtpl:3
|
||||
//line templates/mutators.qtpl:3
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line templates/http_mutators.qtpl:4
|
||||
//line templates/mutators.qtpl:4
|
||||
qw422016.N().S(navHTML(rq, hyphaName, "edit"))
|
||||
//line templates/http_mutators.qtpl:4
|
||||
//line templates/mutators.qtpl:4
|
||||
qw422016.N().S(`
|
||||
<main class="edit edit_no-preview">
|
||||
<h1>Edit `)
|
||||
//line templates/http_mutators.qtpl:6
|
||||
//line templates/mutators.qtpl:6
|
||||
qw422016.E().S(hyphaName)
|
||||
//line templates/http_mutators.qtpl:6
|
||||
//line templates/mutators.qtpl:6
|
||||
qw422016.N().S(`</h1>
|
||||
`)
|
||||
//line templates/http_mutators.qtpl:7
|
||||
//line templates/mutators.qtpl:7
|
||||
qw422016.N().S(warning)
|
||||
//line templates/http_mutators.qtpl:7
|
||||
//line templates/mutators.qtpl:7
|
||||
qw422016.N().S(`
|
||||
<form method="post" class="edit-form"
|
||||
action="/upload-text/`)
|
||||
//line templates/http_mutators.qtpl:9
|
||||
//line templates/mutators.qtpl:9
|
||||
qw422016.E().S(hyphaName)
|
||||
//line templates/http_mutators.qtpl:9
|
||||
//line templates/mutators.qtpl:9
|
||||
qw422016.N().S(`">
|
||||
<textarea name="text">`)
|
||||
//line templates/http_mutators.qtpl:10
|
||||
//line templates/mutators.qtpl:10
|
||||
qw422016.E().S(textAreaFill)
|
||||
//line templates/http_mutators.qtpl:10
|
||||
//line templates/mutators.qtpl:10
|
||||
qw422016.N().S(`</textarea>
|
||||
<br/>
|
||||
<input type="submit" name="action" value="Save" class="edit-form__save"/>
|
||||
<input type="submit" name="action" value="Preview" class="edit-form__preview">
|
||||
<a href="/page/`)
|
||||
//line templates/http_mutators.qtpl:14
|
||||
//line templates/mutators.qtpl:14
|
||||
qw422016.E().S(hyphaName)
|
||||
//line templates/http_mutators.qtpl:14
|
||||
//line templates/mutators.qtpl:14
|
||||
qw422016.N().S(`" class="edit-form__cancel">Cancel</a>
|
||||
</form>
|
||||
</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) {
|
||||
//line templates/http_mutators.qtpl:17
|
||||
//line templates/mutators.qtpl:17
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line templates/http_mutators.qtpl:17
|
||||
//line templates/mutators.qtpl:17
|
||||
StreamEditHTML(qw422016, rq, hyphaName, textAreaFill, warning)
|
||||
//line templates/http_mutators.qtpl:17
|
||||
//line templates/mutators.qtpl:17
|
||||
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 {
|
||||
//line templates/http_mutators.qtpl:17
|
||||
//line templates/mutators.qtpl:17
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line templates/http_mutators.qtpl:17
|
||||
//line templates/mutators.qtpl:17
|
||||
WriteEditHTML(qb422016, rq, hyphaName, textAreaFill, warning)
|
||||
//line templates/http_mutators.qtpl:17
|
||||
//line templates/mutators.qtpl:17
|
||||
qs422016 := string(qb422016.B)
|
||||
//line templates/http_mutators.qtpl:17
|
||||
//line templates/mutators.qtpl:17
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line templates/http_mutators.qtpl:17
|
||||
//line templates/mutators.qtpl:17
|
||||
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) {
|
||||
//line templates/http_mutators.qtpl:19
|
||||
//line templates/mutators.qtpl:19
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line templates/http_mutators.qtpl:20
|
||||
//line templates/mutators.qtpl:20
|
||||
qw422016.N().S(navHTML(rq, hyphaName, "edit"))
|
||||
//line templates/http_mutators.qtpl:20
|
||||
//line templates/mutators.qtpl:20
|
||||
qw422016.N().S(`
|
||||
<main class="edit edit_with-preview">
|
||||
<h1>Edit `)
|
||||
//line templates/http_mutators.qtpl:22
|
||||
//line templates/mutators.qtpl:22
|
||||
qw422016.E().S(hyphaName)
|
||||
//line templates/http_mutators.qtpl:22
|
||||
//line templates/mutators.qtpl:22
|
||||
qw422016.N().S(` (preview)</h1>
|
||||
`)
|
||||
//line templates/http_mutators.qtpl:23
|
||||
//line templates/mutators.qtpl:23
|
||||
qw422016.N().S(warning)
|
||||
//line templates/http_mutators.qtpl:23
|
||||
//line templates/mutators.qtpl:23
|
||||
qw422016.N().S(`
|
||||
<form method="post" class="edit-form"
|
||||
action="/upload-text/`)
|
||||
//line templates/http_mutators.qtpl:25
|
||||
//line templates/mutators.qtpl:25
|
||||
qw422016.E().S(hyphaName)
|
||||
//line templates/http_mutators.qtpl:25
|
||||
//line templates/mutators.qtpl:25
|
||||
qw422016.N().S(`">
|
||||
<textarea name="text">`)
|
||||
//line templates/http_mutators.qtpl:26
|
||||
//line templates/mutators.qtpl:26
|
||||
qw422016.E().S(textAreaFill)
|
||||
//line templates/http_mutators.qtpl:26
|
||||
//line templates/mutators.qtpl:26
|
||||
qw422016.N().S(`</textarea>
|
||||
<br/>
|
||||
<input type="submit" name="action" value="Save" class="edit-form__save"/>
|
||||
<input type="submit" name="action" value="Preview" class="edit-form__preview">
|
||||
<a href="/page/`)
|
||||
//line templates/http_mutators.qtpl:30
|
||||
//line templates/mutators.qtpl:30
|
||||
qw422016.E().S(hyphaName)
|
||||
//line templates/http_mutators.qtpl:30
|
||||
//line templates/mutators.qtpl:30
|
||||
qw422016.N().S(`" class="edit-form__cancel">Cancel</a>
|
||||
</form>
|
||||
<p class="warning">Note that the hypha is not saved yet. You can preview the changes ↓</p>
|
||||
<section class="edit__preview">`)
|
||||
//line templates/http_mutators.qtpl:33
|
||||
//line templates/mutators.qtpl:33
|
||||
qw422016.N().S(renderedPage)
|
||||
//line templates/http_mutators.qtpl:33
|
||||
//line templates/mutators.qtpl:33
|
||||
qw422016.N().S(`</section>
|
||||
</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) {
|
||||
//line templates/http_mutators.qtpl:35
|
||||
//line templates/mutators.qtpl:35
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line templates/http_mutators.qtpl:35
|
||||
//line templates/mutators.qtpl:35
|
||||
StreamPreviewHTML(qw422016, rq, hyphaName, textAreaFill, warning, renderedPage)
|
||||
//line templates/http_mutators.qtpl:35
|
||||
//line templates/mutators.qtpl:35
|
||||
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 {
|
||||
//line templates/http_mutators.qtpl:35
|
||||
//line templates/mutators.qtpl:35
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line templates/http_mutators.qtpl:35
|
||||
//line templates/mutators.qtpl:35
|
||||
WritePreviewHTML(qb422016, rq, hyphaName, textAreaFill, warning, renderedPage)
|
||||
//line templates/http_mutators.qtpl:35
|
||||
//line templates/mutators.qtpl:35
|
||||
qs422016 := string(qb422016.B)
|
||||
//line templates/http_mutators.qtpl:35
|
||||
//line templates/mutators.qtpl:35
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line templates/http_mutators.qtpl:35
|
||||
//line templates/mutators.qtpl:35
|
||||
return qs422016
|
||||
//line templates/http_mutators.qtpl:35
|
||||
//line templates/mutators.qtpl:35
|
||||
}
|
@ -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.
|
||||
|
||||
//line templates/http_readers.qtpl:1
|
||||
//line templates/readers.qtpl:1
|
||||
package templates
|
||||
|
||||
//line templates/http_readers.qtpl:1
|
||||
//line templates/readers.qtpl:1
|
||||
import "net/http"
|
||||
|
||||
//line templates/http_readers.qtpl:2
|
||||
//line templates/readers.qtpl:2
|
||||
import "path"
|
||||
|
||||
//line templates/http_readers.qtpl:3
|
||||
//line templates/readers.qtpl:3
|
||||
import "github.com/bouncepaw/mycorrhiza/user"
|
||||
|
||||
//line templates/http_readers.qtpl:5
|
||||
//line templates/readers.qtpl:5
|
||||
import (
|
||||
qtio422016 "io"
|
||||
|
||||
qt422016 "github.com/valyala/quicktemplate"
|
||||
)
|
||||
|
||||
//line templates/http_readers.qtpl:5
|
||||
//line templates/readers.qtpl:5
|
||||
var (
|
||||
_ = qtio422016.Copy
|
||||
_ = qt422016.AcquireByteBuffer
|
||||
)
|
||||
|
||||
//line templates/http_readers.qtpl:5
|
||||
//line templates/readers.qtpl:5
|
||||
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(`
|
||||
`)
|
||||
//line templates/http_readers.qtpl:6
|
||||
//line templates/readers.qtpl:6
|
||||
streamnavHTML(qw422016, rq, hyphaName, "history")
|
||||
//line templates/http_readers.qtpl:6
|
||||
//line templates/readers.qtpl:6
|
||||
qw422016.N().S(`
|
||||
<main>
|
||||
<article class="history">
|
||||
<h1>History of `)
|
||||
//line templates/http_readers.qtpl:9
|
||||
//line templates/readers.qtpl:9
|
||||
qw422016.E().S(hyphaName)
|
||||
//line templates/http_readers.qtpl:9
|
||||
//line templates/readers.qtpl:9
|
||||
qw422016.N().S(`</h1>
|
||||
`)
|
||||
//line templates/http_readers.qtpl:10
|
||||
//line templates/readers.qtpl:10
|
||||
qw422016.N().S(list)
|
||||
//line templates/http_readers.qtpl:10
|
||||
//line templates/readers.qtpl:10
|
||||
qw422016.N().S(`
|
||||
</article>
|
||||
</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) {
|
||||
//line templates/http_readers.qtpl:13
|
||||
//line templates/readers.qtpl:13
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line templates/http_readers.qtpl:13
|
||||
//line templates/readers.qtpl:13
|
||||
StreamHistoryHTML(qw422016, rq, hyphaName, list)
|
||||
//line templates/http_readers.qtpl:13
|
||||
//line templates/readers.qtpl:13
|
||||
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 {
|
||||
//line templates/http_readers.qtpl:13
|
||||
//line templates/readers.qtpl:13
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line templates/http_readers.qtpl:13
|
||||
//line templates/readers.qtpl:13
|
||||
WriteHistoryHTML(qb422016, rq, hyphaName, list)
|
||||
//line templates/http_readers.qtpl:13
|
||||
//line templates/readers.qtpl:13
|
||||
qs422016 := string(qb422016.B)
|
||||
//line templates/http_readers.qtpl:13
|
||||
//line templates/readers.qtpl:13
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line templates/http_readers.qtpl:13
|
||||
//line templates/readers.qtpl:13
|
||||
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) {
|
||||
//line templates/http_readers.qtpl:15
|
||||
//line templates/readers.qtpl:15
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line templates/http_readers.qtpl:16
|
||||
//line templates/readers.qtpl:16
|
||||
streamnavHTML(qw422016, rq, hyphaName, "revision", revHash)
|
||||
//line templates/http_readers.qtpl:16
|
||||
//line templates/readers.qtpl:16
|
||||
qw422016.N().S(`
|
||||
<main>
|
||||
<article>
|
||||
<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)
|
||||
//line templates/http_readers.qtpl:20
|
||||
//line templates/readers.qtpl:20
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line templates/http_readers.qtpl:21
|
||||
//line templates/readers.qtpl:21
|
||||
qw422016.N().S(contents)
|
||||
//line templates/http_readers.qtpl:21
|
||||
//line templates/readers.qtpl:21
|
||||
qw422016.N().S(`
|
||||
</article>
|
||||
<hr/>
|
||||
<aside>
|
||||
`)
|
||||
//line templates/http_readers.qtpl:25
|
||||
//line templates/readers.qtpl:25
|
||||
qw422016.N().S(tree)
|
||||
//line templates/http_readers.qtpl:25
|
||||
//line templates/readers.qtpl:25
|
||||
qw422016.N().S(`
|
||||
</aside>
|
||||
</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) {
|
||||
//line templates/http_readers.qtpl:28
|
||||
//line templates/readers.qtpl:28
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line templates/http_readers.qtpl:28
|
||||
//line templates/readers.qtpl:28
|
||||
StreamRevisionHTML(qw422016, rq, hyphaName, naviTitle, contents, tree, revHash)
|
||||
//line templates/http_readers.qtpl:28
|
||||
//line templates/readers.qtpl:28
|
||||
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 {
|
||||
//line templates/http_readers.qtpl:28
|
||||
//line templates/readers.qtpl:28
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line templates/http_readers.qtpl:28
|
||||
//line templates/readers.qtpl:28
|
||||
WriteRevisionHTML(qb422016, rq, hyphaName, naviTitle, contents, tree, revHash)
|
||||
//line templates/http_readers.qtpl:28
|
||||
//line templates/readers.qtpl:28
|
||||
qs422016 := string(qb422016.B)
|
||||
//line templates/http_readers.qtpl:28
|
||||
//line templates/readers.qtpl:28
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line templates/http_readers.qtpl:28
|
||||
//line templates/readers.qtpl:28
|
||||
return qs422016
|
||||
//line templates/http_readers.qtpl:28
|
||||
//line templates/readers.qtpl:28
|
||||
}
|
||||
|
||||
// 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) {
|
||||
//line templates/http_readers.qtpl:31
|
||||
//line templates/readers.qtpl:31
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line templates/http_readers.qtpl:32
|
||||
//line templates/readers.qtpl:32
|
||||
streamnavHTML(qw422016, rq, hyphaName, "page")
|
||||
//line templates/http_readers.qtpl:32
|
||||
//line templates/readers.qtpl:32
|
||||
qw422016.N().S(`
|
||||
<main>
|
||||
<article>
|
||||
`)
|
||||
//line templates/http_readers.qtpl:35
|
||||
//line templates/readers.qtpl:35
|
||||
qw422016.N().S(naviTitle)
|
||||
//line templates/http_readers.qtpl:35
|
||||
//line templates/readers.qtpl:35
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line templates/http_readers.qtpl:36
|
||||
//line templates/readers.qtpl:36
|
||||
if contents == "" {
|
||||
//line templates/http_readers.qtpl:36
|
||||
//line templates/readers.qtpl:36
|
||||
qw422016.N().S(`
|
||||
<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)
|
||||
//line templates/http_readers.qtpl:37
|
||||
//line templates/readers.qtpl:37
|
||||
qw422016.N().S(`">create it</a>?</p>
|
||||
`)
|
||||
//line templates/http_readers.qtpl:38
|
||||
//line templates/readers.qtpl:38
|
||||
} else {
|
||||
//line templates/http_readers.qtpl:38
|
||||
//line templates/readers.qtpl:38
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line templates/http_readers.qtpl:39
|
||||
//line templates/readers.qtpl:39
|
||||
qw422016.N().S(contents)
|
||||
//line templates/http_readers.qtpl:39
|
||||
//line templates/readers.qtpl:39
|
||||
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(`
|
||||
</article>
|
||||
<section class="prevnext">
|
||||
`)
|
||||
//line templates/http_readers.qtpl:43
|
||||
//line templates/readers.qtpl:43
|
||||
if prevHyphaName != "" {
|
||||
//line templates/http_readers.qtpl:43
|
||||
//line templates/readers.qtpl:43
|
||||
qw422016.N().S(`
|
||||
<a class="prevnext__el prevnext__prev" href="/page/`)
|
||||
//line templates/http_readers.qtpl:44
|
||||
//line templates/readers.qtpl:44
|
||||
qw422016.E().S(prevHyphaName)
|
||||
//line templates/http_readers.qtpl:44
|
||||
//line templates/readers.qtpl:44
|
||||
qw422016.N().S(`" rel="prev">← `)
|
||||
//line templates/http_readers.qtpl:44
|
||||
//line templates/readers.qtpl:44
|
||||
qw422016.E().S(path.Base(prevHyphaName))
|
||||
//line templates/http_readers.qtpl:44
|
||||
//line templates/readers.qtpl:44
|
||||
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(`
|
||||
`)
|
||||
//line templates/http_readers.qtpl:46
|
||||
//line templates/readers.qtpl:46
|
||||
if nextHyphaName != "" {
|
||||
//line templates/http_readers.qtpl:46
|
||||
//line templates/readers.qtpl:46
|
||||
qw422016.N().S(`
|
||||
<a class="prevnext__el prevnext__next" href="/page/`)
|
||||
//line templates/http_readers.qtpl:47
|
||||
//line templates/readers.qtpl:47
|
||||
qw422016.E().S(nextHyphaName)
|
||||
//line templates/http_readers.qtpl:47
|
||||
//line templates/readers.qtpl:47
|
||||
qw422016.N().S(`" rel="next">`)
|
||||
//line templates/http_readers.qtpl:47
|
||||
//line templates/readers.qtpl:47
|
||||
qw422016.E().S(path.Base(nextHyphaName))
|
||||
//line templates/http_readers.qtpl:47
|
||||
//line templates/readers.qtpl:47
|
||||
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(`
|
||||
</section>
|
||||
`)
|
||||
//line templates/http_readers.qtpl:50
|
||||
//line templates/readers.qtpl:50
|
||||
if u := user.FromRequest(rq); !user.AuthUsed || u.Group != "anon" {
|
||||
//line templates/http_readers.qtpl:50
|
||||
//line templates/readers.qtpl:50
|
||||
qw422016.N().S(`
|
||||
<form action="/upload-binary/`)
|
||||
//line templates/http_readers.qtpl:51
|
||||
//line templates/readers.qtpl:51
|
||||
qw422016.E().S(hyphaName)
|
||||
//line templates/http_readers.qtpl:51
|
||||
//line templates/readers.qtpl:51
|
||||
qw422016.N().S(`"
|
||||
method="post" enctype="multipart/form-data"
|
||||
class="upload-amnt">
|
||||
`)
|
||||
//line templates/http_readers.qtpl:54
|
||||
//line templates/readers.qtpl:54
|
||||
if hasAmnt {
|
||||
//line templates/http_readers.qtpl:54
|
||||
//line templates/readers.qtpl:54
|
||||
qw422016.N().S(`
|
||||
<a class="upload-amnt__unattach" href="/unattach-ask/`)
|
||||
//line templates/http_readers.qtpl:55
|
||||
//line templates/readers.qtpl:55
|
||||
qw422016.E().S(hyphaName)
|
||||
//line templates/http_readers.qtpl:55
|
||||
//line templates/readers.qtpl:55
|
||||
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(`
|
||||
<label for="upload-binary__input">Upload a new attachment</label>
|
||||
<br>
|
||||
@ -258,44 +258,44 @@ func StreamPageHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, navi
|
||||
<input type="submit"/>
|
||||
</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(`
|
||||
<aside>
|
||||
`)
|
||||
//line templates/http_readers.qtpl:64
|
||||
//line templates/readers.qtpl:64
|
||||
qw422016.N().S(tree)
|
||||
//line templates/http_readers.qtpl:64
|
||||
//line templates/readers.qtpl:64
|
||||
qw422016.N().S(`
|
||||
</aside>
|
||||
</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) {
|
||||
//line templates/http_readers.qtpl:67
|
||||
//line templates/readers.qtpl:67
|
||||
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)
|
||||
//line templates/http_readers.qtpl:67
|
||||
//line templates/readers.qtpl:67
|
||||
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 {
|
||||
//line templates/http_readers.qtpl:67
|
||||
//line templates/readers.qtpl:67
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line templates/http_readers.qtpl:67
|
||||
//line templates/readers.qtpl:67
|
||||
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)
|
||||
//line templates/http_readers.qtpl:67
|
||||
//line templates/readers.qtpl:67
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line templates/http_readers.qtpl:67
|
||||
//line templates/readers.qtpl:67
|
||||
return qs422016
|
||||
//line templates/http_readers.qtpl:67
|
||||
//line templates/readers.qtpl:67
|
||||
}
|
@ -60,7 +60,7 @@
|
||||
<section>
|
||||
<h1>About {%s util.SiteName %}</h1>
|
||||
<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 -%}
|
||||
<li><b>User count:</b> {%d user.Count() %}</li>
|
||||
<li><b>Home page:</b> <a href="/">{%s util.HomePage %}</a></li>
|
@ -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.
|
||||
|
||||
//line templates/http_stuff.qtpl:1
|
||||
//line templates/stuff.qtpl:1
|
||||
package templates
|
||||
|
||||
//line templates/http_stuff.qtpl:1
|
||||
//line templates/stuff.qtpl:1
|
||||
import "github.com/bouncepaw/mycorrhiza/util"
|
||||
|
||||
//line templates/http_stuff.qtpl:2
|
||||
//line templates/stuff.qtpl:2
|
||||
import "github.com/bouncepaw/mycorrhiza/user"
|
||||
|
||||
//line templates/http_stuff.qtpl:4
|
||||
//line templates/stuff.qtpl:4
|
||||
import (
|
||||
qtio422016 "io"
|
||||
|
||||
qt422016 "github.com/valyala/quicktemplate"
|
||||
)
|
||||
|
||||
//line templates/http_stuff.qtpl:4
|
||||
//line templates/stuff.qtpl:4
|
||||
var (
|
||||
_ = qtio422016.Copy
|
||||
_ = 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) {
|
||||
//line templates/http_stuff.qtpl:4
|
||||
//line templates/stuff.qtpl:4
|
||||
qw422016.N().S(`
|
||||
<!doctype 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">
|
||||
<link rel="stylesheet" type="text/css" href="/static/common.css">
|
||||
<title>`)
|
||||
//line templates/http_stuff.qtpl:10
|
||||
//line templates/stuff.qtpl:10
|
||||
qw422016.E().S(title)
|
||||
//line templates/http_stuff.qtpl:10
|
||||
//line templates/stuff.qtpl:10
|
||||
qw422016.N().S(`</title>
|
||||
`)
|
||||
//line templates/http_stuff.qtpl:11
|
||||
//line templates/stuff.qtpl:11
|
||||
for _, el := range headElements {
|
||||
//line templates/http_stuff.qtpl:11
|
||||
//line templates/stuff.qtpl:11
|
||||
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(`
|
||||
</head>
|
||||
<body>
|
||||
@ -52,77 +52,77 @@ func StreamBaseHTML(qw422016 *qt422016.Writer, title, body string, u *user.User,
|
||||
<nav class="header-links">
|
||||
<ul class="header-links__list">
|
||||
`)
|
||||
//line templates/http_stuff.qtpl:17
|
||||
//line templates/stuff.qtpl:17
|
||||
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="`)
|
||||
//line templates/http_stuff.qtpl:18
|
||||
//line templates/stuff.qtpl:18
|
||||
qw422016.E().S(link.Href)
|
||||
//line templates/http_stuff.qtpl:18
|
||||
//line templates/stuff.qtpl:18
|
||||
qw422016.N().S(`">`)
|
||||
//line templates/http_stuff.qtpl:18
|
||||
//line templates/stuff.qtpl:18
|
||||
qw422016.E().S(link.Display)
|
||||
//line templates/http_stuff.qtpl:18
|
||||
//line templates/stuff.qtpl:18
|
||||
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(` `)
|
||||
//line templates/http_stuff.qtpl:20
|
||||
//line templates/stuff.qtpl:20
|
||||
qw422016.N().S(userMenuHTML(u))
|
||||
//line templates/http_stuff.qtpl:20
|
||||
//line templates/stuff.qtpl:20
|
||||
qw422016.N().S(`
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
`)
|
||||
//line templates/http_stuff.qtpl:24
|
||||
//line templates/stuff.qtpl:24
|
||||
qw422016.N().S(body)
|
||||
//line templates/http_stuff.qtpl:24
|
||||
//line templates/stuff.qtpl:24
|
||||
qw422016.N().S(`
|
||||
</body>
|
||||
</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) {
|
||||
//line templates/http_stuff.qtpl:27
|
||||
//line templates/stuff.qtpl:27
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line templates/http_stuff.qtpl:27
|
||||
//line templates/stuff.qtpl:27
|
||||
StreamBaseHTML(qw422016, title, body, u, headElements...)
|
||||
//line templates/http_stuff.qtpl:27
|
||||
//line templates/stuff.qtpl:27
|
||||
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 {
|
||||
//line templates/http_stuff.qtpl:27
|
||||
//line templates/stuff.qtpl:27
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line templates/http_stuff.qtpl:27
|
||||
//line templates/stuff.qtpl:27
|
||||
WriteBaseHTML(qb422016, title, body, u, headElements...)
|
||||
//line templates/http_stuff.qtpl:27
|
||||
//line templates/stuff.qtpl:27
|
||||
qs422016 := string(qb422016.B)
|
||||
//line templates/http_stuff.qtpl:27
|
||||
//line templates/stuff.qtpl:27
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line templates/http_stuff.qtpl:27
|
||||
//line templates/stuff.qtpl:27
|
||||
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) {
|
||||
//line templates/http_stuff.qtpl:29
|
||||
//line templates/stuff.qtpl:29
|
||||
qw422016.N().S(`
|
||||
<main>
|
||||
<h1>List of hyphae</h1>
|
||||
<p>This wiki has `)
|
||||
//line templates/http_stuff.qtpl:32
|
||||
//line templates/stuff.qtpl:32
|
||||
qw422016.N().D(pageCount)
|
||||
//line templates/http_stuff.qtpl:32
|
||||
//line templates/stuff.qtpl:32
|
||||
qw422016.N().S(` hyphae.</p>
|
||||
<table>
|
||||
<thead>
|
||||
@ -133,203 +133,203 @@ func StreamHyphaListHTML(qw422016 *qt422016.Writer, tbody string, pageCount int)
|
||||
</thead>
|
||||
<tbody>
|
||||
`)
|
||||
//line templates/http_stuff.qtpl:41
|
||||
//line templates/stuff.qtpl:41
|
||||
qw422016.N().S(tbody)
|
||||
//line templates/http_stuff.qtpl:41
|
||||
//line templates/stuff.qtpl:41
|
||||
qw422016.N().S(`
|
||||
</tbody>
|
||||
</table>
|
||||
</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) {
|
||||
//line templates/http_stuff.qtpl:45
|
||||
//line templates/stuff.qtpl:45
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line templates/http_stuff.qtpl:45
|
||||
//line templates/stuff.qtpl:45
|
||||
StreamHyphaListHTML(qw422016, tbody, pageCount)
|
||||
//line templates/http_stuff.qtpl:45
|
||||
//line templates/stuff.qtpl:45
|
||||
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 {
|
||||
//line templates/http_stuff.qtpl:45
|
||||
//line templates/stuff.qtpl:45
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line templates/http_stuff.qtpl:45
|
||||
//line templates/stuff.qtpl:45
|
||||
WriteHyphaListHTML(qb422016, tbody, pageCount)
|
||||
//line templates/http_stuff.qtpl:45
|
||||
//line templates/stuff.qtpl:45
|
||||
qs422016 := string(qb422016.B)
|
||||
//line templates/http_stuff.qtpl:45
|
||||
//line templates/stuff.qtpl:45
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line templates/http_stuff.qtpl:45
|
||||
//line templates/stuff.qtpl:45
|
||||
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) {
|
||||
//line templates/http_stuff.qtpl:47
|
||||
//line templates/stuff.qtpl:47
|
||||
qw422016.N().S(`
|
||||
<tr>
|
||||
<td><a href="/page/`)
|
||||
//line templates/http_stuff.qtpl:49
|
||||
//line templates/stuff.qtpl:49
|
||||
qw422016.E().S(hyphaName)
|
||||
//line templates/http_stuff.qtpl:49
|
||||
//line templates/stuff.qtpl:49
|
||||
qw422016.N().S(`">`)
|
||||
//line templates/http_stuff.qtpl:49
|
||||
//line templates/stuff.qtpl:49
|
||||
qw422016.E().S(hyphaName)
|
||||
//line templates/http_stuff.qtpl:49
|
||||
//line templates/stuff.qtpl:49
|
||||
qw422016.N().S(`</a></td>
|
||||
`)
|
||||
//line templates/http_stuff.qtpl:50
|
||||
//line templates/stuff.qtpl:50
|
||||
if binaryPresent {
|
||||
//line templates/http_stuff.qtpl:50
|
||||
//line templates/stuff.qtpl:50
|
||||
qw422016.N().S(`
|
||||
<td>`)
|
||||
//line templates/http_stuff.qtpl:51
|
||||
//line templates/stuff.qtpl:51
|
||||
qw422016.E().S(binaryMime)
|
||||
//line templates/http_stuff.qtpl:51
|
||||
//line templates/stuff.qtpl:51
|
||||
qw422016.N().S(`</td>
|
||||
`)
|
||||
//line templates/http_stuff.qtpl:52
|
||||
//line templates/stuff.qtpl:52
|
||||
} else {
|
||||
//line templates/http_stuff.qtpl:52
|
||||
//line templates/stuff.qtpl:52
|
||||
qw422016.N().S(`
|
||||
<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(`
|
||||
</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) {
|
||||
//line templates/http_stuff.qtpl:56
|
||||
//line templates/stuff.qtpl:56
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line templates/http_stuff.qtpl:56
|
||||
//line templates/stuff.qtpl:56
|
||||
StreamHyphaListRowHTML(qw422016, hyphaName, binaryMime, binaryPresent)
|
||||
//line templates/http_stuff.qtpl:56
|
||||
//line templates/stuff.qtpl:56
|
||||
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 {
|
||||
//line templates/http_stuff.qtpl:56
|
||||
//line templates/stuff.qtpl:56
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line templates/http_stuff.qtpl:56
|
||||
//line templates/stuff.qtpl:56
|
||||
WriteHyphaListRowHTML(qb422016, hyphaName, binaryMime, binaryPresent)
|
||||
//line templates/http_stuff.qtpl:56
|
||||
//line templates/stuff.qtpl:56
|
||||
qs422016 := string(qb422016.B)
|
||||
//line templates/http_stuff.qtpl:56
|
||||
//line templates/stuff.qtpl:56
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line templates/http_stuff.qtpl:56
|
||||
//line templates/stuff.qtpl:56
|
||||
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) {
|
||||
//line templates/http_stuff.qtpl:58
|
||||
//line templates/stuff.qtpl:58
|
||||
qw422016.N().S(`
|
||||
<main>
|
||||
<section>
|
||||
<h1>About `)
|
||||
//line templates/http_stuff.qtpl:61
|
||||
//line templates/stuff.qtpl:61
|
||||
qw422016.E().S(util.SiteName)
|
||||
//line templates/http_stuff.qtpl:61
|
||||
//line templates/stuff.qtpl:61
|
||||
qw422016.N().S(`</h1>
|
||||
<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 {
|
||||
//line templates/http_stuff.qtpl:64
|
||||
//line templates/stuff.qtpl:64
|
||||
qw422016.N().S(` <li><b>User count:</b> `)
|
||||
//line templates/http_stuff.qtpl:65
|
||||
//line templates/stuff.qtpl:65
|
||||
qw422016.N().D(user.Count())
|
||||
//line templates/http_stuff.qtpl:65
|
||||
//line templates/stuff.qtpl:65
|
||||
qw422016.N().S(`</li>
|
||||
<li><b>Home page:</b> <a href="/">`)
|
||||
//line templates/http_stuff.qtpl:66
|
||||
//line templates/stuff.qtpl:66
|
||||
qw422016.E().S(util.HomePage)
|
||||
//line templates/http_stuff.qtpl:66
|
||||
//line templates/stuff.qtpl:66
|
||||
qw422016.N().S(`</a></li>
|
||||
<li><b>Administrators:</b>`)
|
||||
//line templates/http_stuff.qtpl:67
|
||||
//line templates/stuff.qtpl:67
|
||||
for i, username := range user.ListUsersWithGroup("admin") {
|
||||
//line templates/http_stuff.qtpl:68
|
||||
//line templates/stuff.qtpl:68
|
||||
if i > 0 {
|
||||
//line templates/http_stuff.qtpl:68
|
||||
//line templates/stuff.qtpl:68
|
||||
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/`)
|
||||
//line templates/http_stuff.qtpl:70
|
||||
//line templates/stuff.qtpl:70
|
||||
qw422016.E().S(util.UserHypha)
|
||||
//line templates/http_stuff.qtpl:70
|
||||
//line templates/stuff.qtpl:70
|
||||
qw422016.N().S(`/`)
|
||||
//line templates/http_stuff.qtpl:70
|
||||
//line templates/stuff.qtpl:70
|
||||
qw422016.E().S(username)
|
||||
//line templates/http_stuff.qtpl:70
|
||||
//line templates/stuff.qtpl:70
|
||||
qw422016.N().S(`">`)
|
||||
//line templates/http_stuff.qtpl:70
|
||||
//line templates/stuff.qtpl:70
|
||||
qw422016.E().S(username)
|
||||
//line templates/http_stuff.qtpl:70
|
||||
//line templates/stuff.qtpl:70
|
||||
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>
|
||||
`)
|
||||
//line templates/http_stuff.qtpl:71
|
||||
//line templates/stuff.qtpl:71
|
||||
} else {
|
||||
//line templates/http_stuff.qtpl:71
|
||||
//line templates/stuff.qtpl:71
|
||||
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>
|
||||
<p>See <a href="/list">/list</a> for information about hyphae on this wiki.</p>
|
||||
</section>
|
||||
</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) {
|
||||
//line templates/http_stuff.qtpl:78
|
||||
//line templates/stuff.qtpl:78
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line templates/http_stuff.qtpl:78
|
||||
//line templates/stuff.qtpl:78
|
||||
StreamAboutHTML(qw422016)
|
||||
//line templates/http_stuff.qtpl:78
|
||||
//line templates/stuff.qtpl:78
|
||||
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 {
|
||||
//line templates/http_stuff.qtpl:78
|
||||
//line templates/stuff.qtpl:78
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line templates/http_stuff.qtpl:78
|
||||
//line templates/stuff.qtpl:78
|
||||
WriteAboutHTML(qb422016)
|
||||
//line templates/http_stuff.qtpl:78
|
||||
//line templates/stuff.qtpl:78
|
||||
qs422016 := string(qb422016.B)
|
||||
//line templates/http_stuff.qtpl:78
|
||||
//line templates/stuff.qtpl:78
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line templates/http_stuff.qtpl:78
|
||||
//line templates/stuff.qtpl:78
|
||||
return qs422016
|
||||
//line templates/http_stuff.qtpl:78
|
||||
//line templates/stuff.qtpl:78
|
||||
}
|
Loading…
Reference in New Issue
Block a user