mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-12-02 22:58:05 +00:00
Link the user panel from the admin panel
This commit is contained in:
@@ -1,5 +1,43 @@
|
||||
{% import "github.com/bouncepaw/mycorrhiza/user" %}
|
||||
|
||||
{% 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>
|
||||
<li><a href="/admin/users">Manage users</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" class="btn">
|
||||
</fieldset>
|
||||
</form>
|
||||
<form action="/reindex" method="GET" style="float:left">
|
||||
<fieldset>
|
||||
<legend>Reindex hyphae</legend>
|
||||
<input type="submit" class="btn">
|
||||
</fieldset>
|
||||
</form>
|
||||
<form action="/admin/reindex-users" method="POST" style="float:left">
|
||||
<fieldset>
|
||||
<legend>Reindex users</legend>
|
||||
<input type="submit" class="btn">
|
||||
</fieldset>
|
||||
</form>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
{% endfunc %}
|
||||
|
||||
{% func AdminUsersPanelHTML(userList []*user.User) %}
|
||||
<div class="layout">
|
||||
<main class="main-width">
|
||||
|
||||
Reference in New Issue
Block a user