{% import "net/http" %} {% import "github.com/bouncepaw/mycorrhiza/cfg" %} {% func RegisterHTML(rq *http.Request) %}
{% if cfg.AllowRegistration %} {% elseif cfg.UseAuth %}

Registrations are currently closed. Administrators can make an account for you by hand; contact them.

← Go back

{% else %}

Authentication is disabled. You can make edits anonymously.

← Go back

{% endif %}
{% endfunc %} {% func LoginHTML() %}
{% if cfg.UseAuth %} {% else %}

Authentication is disabled. You can make edits anonymously.

← Go home

{% endif %}
{% endfunc %} {% func LoginErrorHTML(err string) %}
{% switch err %} {% case "unknown username" %}

Unknown username.

{% case "wrong password" %}

Wrong password.

{% default %}

{%s err %}

{% endswitch %}

← Try again

{% endfunc %} {% func LogoutHTML(can bool) %}
{% if can %}

Log out?

Confirm

Cancel

{% else %}

You cannot log out because you are not logged in.

Login

← Home

{% endif %}
{% endfunc %} {% func LockHTML() %} 🔒 Locked

🔒

Locked

{% endfunc %}