aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html/sessions.html
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-09-21 18:53:29 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-09-21 22:23:23 -0700
commitbeb7a0cfcb6a5a76d680707a4c458eee51d87c07 (patch)
treef6e23ffbffcdd58f8438e2d2711acb4fa86bb83b /template/html/sessions.html
parentf244df62936eea307a5fc3f27fb9968527d402ac (diff)
Use unique translation IDs instead of English text as key
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>