aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/sessions.html
diff options
context:
space:
mode:
Diffstat (limited to 'template/html/sessions.html')
-rw-r--r--template/html/sessions.html34
1 files changed, 17 insertions, 17 deletions
diff --git a/template/html/sessions.html b/template/html/sessions.html
index 6e639d6..c28d7ac 100644
--- a/template/html/sessions.html
+++ b/template/html/sessions.html
@@ -1,35 +1,35 @@
-{{ define "title"}}{{ t "Sessions" }}{{ end }}
+{{ define "title"}}{{ t "page.sessions.title" }}{{ end }}
{{ define "content"}}
<section class="page-header">
- <h1>{{ t "Sessions" }}</h1>
+ <h1>{{ t "page.sessions.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>
{{ if .user.IsAdmin }}
<li>
- <a href="{{ route "users" }}">{{ t "Users" }}</a>
+ <a href="{{ route "users" }}">{{ t "menu.users" }}</a>
</li>
<li>
- <a href="{{ route "createUser" }}">{{ t "Add user" }}</a>
+ <a href="{{ route "createUser" }}">{{ t "menu.add_user" }}</a>
</li>
{{ end }}
<li>
- <a href="{{ route "about" }}">{{ t "About" }}</a>
+ <a href="{{ route "about" }}">{{ t "menu.about" }}</a>
</li>
</ul>
</section>
<table>
<tr>
- <th>{{ t "Date" }}</th>
- <th>{{ t "IP Address" }}</th>
- <th>{{ t "User Agent" }}</th>
- <th>{{ t "Actions" }}</th>
+ <th>{{ t "page.sessions.table.date" }}</th>
+ <th>{{ t "page.sessions.table.ip" }}</th>
+ <th>{{ t "page.sessions.table.user_agent" }}</th>
+ <th>{{ t "page.sessions.table.actions" }}</th>
</tr>
{{ range .sessions }}
<tr {{ if eq .Token $.currentSessionToken }}class="row-highlighted"{{ end }}>
@@ -38,15 +38,15 @@
<td title="{{ .UserAgent }}">{{ .UserAgent }}</td>
<td class="column-20">
{{ if eq .Token $.currentSessionToken }}
- {{ t "Current session" }}
+ {{ t "page.sessions.table.current_session" }}
{{ else }}
<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 "removeSession" "sessionID" .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 "removeSession" "sessionID" .ID }}">{{ t "action.remove" }}</a>
{{ end }}
</td>
</tr>