f0ckv2/views/settings.html

44 lines
954 B
HTML
Raw Normal View History

2021-12-24 10:16:29 +00:00
@include(main/header)
<h1>Settings</h1>
<h2>Account</h2>
<table class="table">
<tbody>
<tr>
<td>UserID</td>
<td>{{ session.id }}</td>
</tr>
<tr>
<td>level</td>
<td>{{ session.level }}</td>
</tr>
<tr>
<td>username</td>
<td>{!! session.user !!}</td>
</tr>
</tbody>
</table>
<h2>Sessions</h2>
<table class="table">
<thead>
<tr>
<th>id</th>
<th>browser</th>
<th>created_at</th>
<th>last_used</th>
<th>last_action</th>
</tr>
</thead>
<tbody>
@each(sessions as sess)
<tr>
<td>{{ sess.id }}</td>
<td>{{ sess.browser }}</td>
<td>{{ new Date(sess.created_at * 1e3).toLocaleString("de-DE") }}</td>
<td>{{ new Date(sess.last_used * 1e3).toLocaleString("de-DE") }}</td>
<td><a href="{{ sess.last_action }}" target="_blank">{{ sess.last_action }}</a></td>
</tr>
@endeach
</tbody>
</table>
@include(main/footer)