highlight active session
This commit is contained in:
parent
5c483e7c8d
commit
ef54c7ccce
@ -9,7 +9,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>level</td>
|
||||
<td>{{ session.level }}</td>
|
||||
<td>{{ session.level }}/100</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>username</td>
|
||||
@ -22,20 +22,20 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>id</th>
|
||||
<th>browser</th>
|
||||
<th>created_at</th>
|
||||
<th>last_used</th>
|
||||
<th>last_action</th>
|
||||
<th> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@each(sessions as sess)
|
||||
<tr>
|
||||
<td>{{ sess.id }}</td>
|
||||
<td>{{ sess.browser }}</td>
|
||||
<tr@if(sess.id === session.sess_id) style="background-color: rgb(0, 89, 0)"@endif>
|
||||
<td tooltip="{{ sess.browser }}" flow="right">{{ sess.id }}</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>
|
||||
<td>logout</td>
|
||||
</tr>
|
||||
@endeach
|
||||
</tbody>
|
||||
|
Loading…
Reference in New Issue
Block a user