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