mirror of
https://github.com/miniflux/v2.git
synced 2024-09-11 05:33:18 +02:00
57 lines
1.9 KiB
HTML
57 lines
1.9 KiB
HTML
{{ define "title"}}{{ t "page.sessions.title" }}{{ end }}
|
|
|
|
{{ define "content"}}
|
|
<section class="page-header">
|
|
<h1>{{ t "page.sessions.title" }}</h1>
|
|
<ul>
|
|
<li>
|
|
<a href="{{ route "settings" }}">{{ t "menu.settings" }}</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ route "integrations" }}">{{ t "menu.integrations" }}</a>
|
|
</li>
|
|
{{ if .user.IsAdmin }}
|
|
<li>
|
|
<a href="{{ route "users" }}">{{ t "menu.users" }}</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ route "createUser" }}">{{ t "menu.add_user" }}</a>
|
|
</li>
|
|
{{ end }}
|
|
<li>
|
|
<a href="{{ route "about" }}">{{ t "menu.about" }}</a>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<table>
|
|
<tr>
|
|
<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 }}>
|
|
<td class="column-20" title="{{ isodate .CreatedAt }}">{{ elapsed $.user.Timezone .CreatedAt }}</td>
|
|
<td class="column-20" title="{{ .IP }}">{{ .IP }}</td>
|
|
<td title="{{ .UserAgent }}">{{ .UserAgent }}</td>
|
|
<td class="column-20">
|
|
{{ if eq .Token $.currentSessionToken }}
|
|
{{ t "page.sessions.table.current_session" }}
|
|
{{ else }}
|
|
<a href="#"
|
|
data-confirm="true"
|
|
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>
|
|
{{ end }}
|
|
</table>
|
|
|
|
{{ end }}
|