diff options
Diffstat (limited to 'template/html/users.html')
-rw-r--r-- | template/html/users.html | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/template/html/users.html b/template/html/users.html index 8bffc2f..fb20e85 100644 --- a/template/html/users.html +++ b/template/html/users.html @@ -1,58 +1,58 @@ -{{ define "title"}}{{ t "Users" }}{{ end }} +{{ define "title"}}{{ t "page.users.title" }}{{ end }} {{ define "content"}} <section class="page-header"> - <h1>{{ t "Users" }}</h1> + <h1>{{ t "page.users.title" }}</h1> <ul> <li> - <a href="{{ route "settings" }}">{{ t "Settings" }}</a> + <a href="{{ route "settings" }}">{{ t "menu.settings" }}</a> </li> <li> - <a href="{{ route "integrations" }}">{{ t "Integrations" }}</a> + <a href="{{ route "integrations" }}">{{ t "menu.integrations" }}</a> </li> <li> - <a href="{{ route "sessions" }}">{{ t "Sessions" }}</a> + <a href="{{ route "sessions" }}">{{ t "menu.sessions" }}</a> </li> <li> - <a href="{{ route "createUser" }}">{{ t "Add user" }}</a> + <a href="{{ route "createUser" }}">{{ t "menu.add_user" }}</a> </li> <li> - <a href="{{ route "about" }}">{{ t "About" }}</a> + <a href="{{ route "about" }}">{{ t "menu.about" }}</a> </li> </ul> </section> {{ if eq (len .users) 1 }} - <p class="alert">{{ t "You are the only user." }}</p> + <p class="alert">{{ t "alert.no_user" }}</p> {{ else }} <table> <tr> <th class="column-20">{{ t "Username" }}</th> - <th>{{ t "Administrator" }}</th> - <th>{{ t "Last Login" }}</th> - <th>{{ t "Actions" }}</th> + <th>{{ t "page.users.is_admin" }}</th> + <th>{{ t "page.users.last_login" }}</th> + <th>{{ t "page.users.actions" }}</th> </tr> {{ range .users }} {{ if ne .ID $.user.ID }} <tr> <td>{{ .Username }}</td> - <td>{{ if eq .IsAdmin true }}{{ t "Yes" }}{{ else }}{{ t "No" }}{{ end }}</td> + <td>{{ if eq .IsAdmin true }}{{ t "page.users.admin.yes" }}{{ else }}{{ t "page.users.admin.no" }}{{ end }}</td> <td> {{ if .LastLoginAt }} <time datetime="{{ isodate .LastLoginAt }}" title="{{ isodate .LastLoginAt }}">{{ elapsed $.user.Timezone .LastLoginAt }}</time> {{ else }} - {{ t "Never" }} + {{ t "page.users.never_logged" }} {{ end }} </td> <td> - <a href="{{ route "editUser" "userID" .ID }}">{{ t "Edit" }}</a>, + <a href="{{ route "editUser" "userID" .ID }}">{{ t "action.edit" }}</a>, <a href="#" data-confirm="true" - data-label-question="{{ t "Are you sure?" }}" - data-label-yes="{{ t "yes" }}" - data-label-no="{{ t "no" }}" - data-label-loading="{{ t "Work in progress..." }}" - data-url="{{ route "removeUser" "userID" .ID }}">{{ t "Remove" }}</a> + data-label-question="{{ t "confirm.question" }}" + data-label-yes="{{ t "confirm.yes" }}" + data-label-no="{{ t "confirm.no" }}" + data-label-loading="{{ t "confirm.loading" }}" + data-url="{{ route "removeUser" "userID" .ID }}">{{ t "action.remove" }}</a> </td> </tr> {{ end }} |