33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
|
<!--
|
||
|
SPDX-FileCopyrightText: 2023 jordi fita mas <jordi@tandem.blog>
|
||
|
SPDX-License-Identifier: AGPL-3.0-only
|
||
|
-->
|
||
|
{{ define "title" -}}
|
||
|
{{( pgettext "Login Attempts" "title" )}}
|
||
|
{{- end }}
|
||
|
|
||
|
{{ define "content" -}}
|
||
|
{{- /*gotype: dev.tandem.ws/tandem/camper/pkg/user.loginAttemptIndex*/ -}}
|
||
|
<h2>{{( pgettext "Login Attempts" "title" )}}</h2>
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th scope="col">{{( pgettext "Date" "header" )}}</th>
|
||
|
<th scope="col">{{( pgettext "Email" "header" )}}</th>
|
||
|
<th scope="col">{{( pgettext "IP Address" "header" )}}</th>
|
||
|
<th scope="col">{{( pgettext "Success" "header" )}}</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{{ range . -}}
|
||
|
<tr>
|
||
|
<td>{{ .Date }}</td>
|
||
|
<td>{{ .UserName }}</td>
|
||
|
<td>{{ .IPAddress }}</td>
|
||
|
<td>{{ if .Success }}{{( gettext "Yes" )}}{{ else }}{{( gettext "No" )}}{{ end }}</td>
|
||
|
</tr>
|
||
|
{{- end }}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
{{- end }}
|