{% import "fmt" %} {% import "github.com/bouncepaw/mycorrhiza/cfg" %} {% import "github.com/bouncepaw/mycorrhiza/l18n" %} {% import "github.com/bouncepaw/mycorrhiza/user" %} {% import "github.com/bouncepaw/mycorrhiza/util" %} {% func AdminPanelHTML(lc *l18n.Localizer) %}
{%s lc.Get("admin.users_name") %} | {%s lc.Get("admin.users_group") %} | {%s lc.Get("admin.users_registered") %} | |
---|---|---|---|
{%s u.Name %} | {%s u.Group %} | {% if u.RegisteredAt.IsZero() %} {%s lc.Get("admin.users_notime") %} {% else %} {%s u.RegisteredAt.UTC().Format("2006-01-02 15:04") %} {% endif %} | {%s lc.Get("admin.users_edit") %} |
{%s lc.Get("admin.user_delete_tip") %}
{%s lc.Get("admin.user_delete") %}{%s= lc.Get("admin.user_delete_warn", &l18n.Replacements{"name": fmt.Sprintf("%s", u.Name)}) %}