2021-12-26 22:11:16 +00:00
|
|
|
@include(snippets/header)
|
2021-12-24 10:16:29 +00:00
|
|
|
<h1>Settings</h1>
|
2022-03-28 15:32:00 +00:00
|
|
|
@if(session.avatar)<a href="//f0ck.me/{{ session.avatar }}"><img id="img_avatar" src="/t/{{ session.avatar }}.webp" /></a>@endif
|
2021-12-24 10:16:29 +00:00
|
|
|
<h2>Account</h2>
|
|
|
|
<table class="table">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>UserID</td>
|
|
|
|
<td>{{ session.id }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>level</td>
|
2021-12-26 16:25:52 +00:00
|
|
|
<td>{{ session.level }}/100</td>
|
2021-12-24 10:16:29 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>username</td>
|
|
|
|
<td>{!! session.user !!}</td>
|
|
|
|
</tr>
|
2022-01-02 05:52:52 +00:00
|
|
|
<tr>
|
|
|
|
<td>avatar</td>
|
2022-03-28 15:32:00 +00:00
|
|
|
<td><input type="text" class="input" name="i_avatar" value="{{ session.avatar }}" /><input type="submit" id="s_avatar" value="save" /></td>
|
2022-01-02 05:52:52 +00:00
|
|
|
</tr>
|
2021-12-24 10:16:29 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<h2>Sessions</h2>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2022-03-23 04:58:48 +00:00
|
|
|
<th></th>
|
2021-12-24 10:16:29 +00:00
|
|
|
<th>id</th>
|
|
|
|
<th>created_at</th>
|
|
|
|
<th>last_used</th>
|
|
|
|
<th>last_action</th>
|
2021-12-26 16:25:52 +00:00
|
|
|
<th> </th>
|
2021-12-24 10:16:29 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@each(sessions as sess)
|
2021-12-26 16:25:52 +00:00
|
|
|
<tr@if(sess.id === session.sess_id) style="background-color: rgb(0, 89, 0)"@endif>
|
2022-03-23 04:58:48 +00:00
|
|
|
<td>{{ sess.kmsi ? '⚓' : '' }}</td>
|
2021-12-26 16:25:52 +00:00
|
|
|
<td tooltip="{{ sess.browser }}" flow="right">{{ sess.id }}</td>
|
2021-12-24 10:16:29 +00:00
|
|
|
<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>
|
2022-01-04 20:04:05 +00:00
|
|
|
<td><a href="#" onclick="alert('not yet implemented!');">logout</a></td>
|
2021-12-24 10:16:29 +00:00
|
|
|
</tr>
|
|
|
|
@endeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-12-26 22:11:16 +00:00
|
|
|
@include(snippets/footer)
|