mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-12-06 08:28:07 +00:00
Link the user panel from the admin panel
This commit is contained in:
@@ -130,43 +130,6 @@ for u := range user.YieldUsers() {
|
||||
</div>
|
||||
{% endfunc %}
|
||||
|
||||
{% func AdminPanelHTML() %}
|
||||
<div class="layout">
|
||||
<main class="main-width">
|
||||
<h1>Administrative 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>
|
||||
<form action="/admin/reindex-users" method="POST" style="float:left">
|
||||
<fieldset>
|
||||
<legend>Reindex users</legend>
|
||||
<input type="submit">
|
||||
</fieldset>
|
||||
</form>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
{% endfunc %}
|
||||
|
||||
{% func omnipresentScripts() %}
|
||||
{% for _, scriptPath := range cfg.OmnipresentScripts %}
|
||||
<script src="{%s scriptPath %}"></script>
|
||||
|
||||
Reference in New Issue
Block a user