{% import "github.com/bouncepaw/mycorrhiza/cfg" %} {% import "github.com/bouncepaw/mycorrhiza/user" %} {% import "github.com/bouncepaw/mycorrhiza/util" %} {% func AdminPanelHTML() %}

Administrative functions

Safe things

Dangerous things

Shutdown wiki
Reindex hyphae
{% endfunc %} {% func AdminUsersPanelHTML(userList []*user.User) %}

Manage users

Create a new user

{% for _, u := range userList %} {% endfor %}
Name Group Registered at
{%s u.Name %} {%s u.Group %} {% if u.RegisteredAt.IsZero() %} unknown {% else %} {%s u.RegisteredAt.UTC().Format("2006-01-02 15:04") %} {% endif %} Edit
{% endfunc %} {% func AdminUserNewHTML(formData util.FormData) %}

New user

{% if formData.HasError() %}
Error: {%s formData.Error() %}
{% endif %}
Cancel
{% endfunc %} {% func AdminUsersUserHTML(u *user.User) %}

{%s u.Name %}

Cancel
{% endfunc %}