{* SPDX-FileCopyrightText: © 2021 Olivier Meunier SPDX-License-Identifier: AGPL-3.0-only *} {{ extends "../profile/base" }} {{ import "/_libs/list" }} {{ block title() }}{{ gettext("Users") }}{{ end }} {{ block mainContent() }}

{{ yield title() }}

{{ gettext("Add a new user") }}

{{ if .Users }} {{ include "/_libs/pagination" .Pagination }} {{ yield list(class="my-6") content}} {{ range .Users }} {{ yield list_item(class="flex gap-2 items-center hfw:bg-gray-100 max-md:block") content }} {{ .Username }} ({{ .Group }}) {{ gettext("Created on: %s", date(.Created, "%e %B %Y %H:%M")) }}
{{ gettext("Last update: %s", date(.Updated, "%e %B %Y %H:%M")) }} {{- if !.LastLogin.IsZero() -}}
{{ gettext("Last login: %s", date(.LastLogin, "%e %B %Y %H:%M")) }} {{- end }}
{{- if .IsDeleted -}}
{{ gettext("This user will be removed in a few seconds.") }}
{{- end -}} {{ end }} {{ end }} {{ end }}
{{ include "/_libs/pagination" .Pagination }} {{ end }} {{ end }}