keycloak-theme/account/sessions.ftl

47 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2022-11-27 01:47:13 +00:00
<#import "template.ftl" as layout>
<@layout.mainLayout active='sessions' bodyClass='sessions'; section>
2022-11-28 14:06:30 +00:00
<div class="row">
<div class="col-md-10">
<h2>${msg("sessionsHtmlTitle")}</h2>
2022-11-27 01:47:13 +00:00
</div>
2022-11-28 14:06:30 +00:00
</div>
2022-11-27 01:47:13 +00:00
2022-11-28 14:06:30 +00:00
<table class="ps-table">
<thead>
<tr>
<td>${msg("ip")}</td>
<td>${msg("started")}</td>
<td>${msg("lastAccess")}</td>
<td>${msg("expires")}</td>
<td>${msg("clients")}</td>
</tr>
</thead>
2022-11-27 01:47:13 +00:00
2022-11-28 14:06:30 +00:00
<tbody>
<#list sessions.sessions as session>
<tr>
<td>${session.ipAddress}</td>
<td>${session.started?datetime}</td>
<td>${session.lastAccess?datetime}</td>
<td>${session.expires?datetime}</td>
<td>
<#list session.clients as client>
${client}<br/>
</#list>
</td>
</tr>
</#list>
</tbody>
</table>
2022-11-27 01:47:13 +00:00
2022-11-28 14:06:30 +00:00
<form action="${url.sessionsUrl}" method="post">
<input type="hidden" id="stateChecker" name="stateChecker" value="${stateChecker}">
<button
id="logout-all-sessions"
class="ps-button"
>${msg("doLogOutAllSessions")}</button>
</form>
2022-11-27 01:47:13 +00:00
</@layout.mainLayout>