mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-13 22:00:27 +00:00
81 lines
1.9 KiB
Go
81 lines
1.9 KiB
Go
// Code generated by qtc from "admin.qtpl". DO NOT EDIT.
|
|
// See https://github.com/valyala/quicktemplate for details.
|
|
|
|
//line templates/admin.qtpl:1
|
|
package templates
|
|
|
|
//line templates/admin.qtpl:1
|
|
import (
|
|
qtio422016 "io"
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
)
|
|
|
|
//line templates/admin.qtpl:1
|
|
var (
|
|
_ = qtio422016.Copy
|
|
_ = qt422016.AcquireByteBuffer
|
|
)
|
|
|
|
//line templates/admin.qtpl:1
|
|
func StreamAdminPanelHTML(qw422016 *qt422016.Writer) {
|
|
//line templates/admin.qtpl:1
|
|
qw422016.N().S(`
|
|
<div class="layout">
|
|
<main class="main-width">
|
|
<h1>Admininstrative functions</h1>
|
|
<section>
|
|
<h2>Safe things</h2>
|
|
<ul>
|
|
<li><a href="/about">About this wiki<a></li>
|
|
<li><a href="/user-list">User list</a></li>
|
|
<li><a href="/update-header-links">Update header links</a></li>
|
|
</ul>
|
|
</section>
|
|
<section>
|
|
<h2>Dangerous things</h2>
|
|
<form action="/admin/shutdown" method="POST" style="float:left">
|
|
<fieldset>
|
|
<legend>Shutdown wiki</legend>
|
|
<input type="submit">
|
|
</fieldset>
|
|
</form>
|
|
<form action="/reindex" method="GET" style="float:left">
|
|
<fieldset>
|
|
<legend>Reindex hyphae</legend>
|
|
<input type="submit">
|
|
</fieldset>
|
|
</form>
|
|
</section>
|
|
</main>
|
|
</div>
|
|
`)
|
|
//line templates/admin.qtpl:30
|
|
}
|
|
|
|
//line templates/admin.qtpl:30
|
|
func WriteAdminPanelHTML(qq422016 qtio422016.Writer) {
|
|
//line templates/admin.qtpl:30
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
//line templates/admin.qtpl:30
|
|
StreamAdminPanelHTML(qw422016)
|
|
//line templates/admin.qtpl:30
|
|
qt422016.ReleaseWriter(qw422016)
|
|
//line templates/admin.qtpl:30
|
|
}
|
|
|
|
//line templates/admin.qtpl:30
|
|
func AdminPanelHTML() string {
|
|
//line templates/admin.qtpl:30
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
//line templates/admin.qtpl:30
|
|
WriteAdminPanelHTML(qb422016)
|
|
//line templates/admin.qtpl:30
|
|
qs422016 := string(qb422016.B)
|
|
//line templates/admin.qtpl:30
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
//line templates/admin.qtpl:30
|
|
return qs422016
|
|
//line templates/admin.qtpl:30
|
|
}
|