2019-04-26 04:55:05 +02:00
|
|
|
<div id="adminpage">
|
2017-12-01 06:40:55 +01:00
|
|
|
<h1>{{$title}} - {{$page}}</h1>
|
2021-03-27 18:28:09 +01:00
|
|
|
|
2021-08-20 09:47:53 +02:00
|
|
|
<h2>{{$logname}}</h2>
|
2021-03-27 18:28:09 +01:00
|
|
|
{{if $error }}
|
|
|
|
<div id="admin-error-message-wrapper" class="alert alert-warning">
|
|
|
|
<p>{{$error nofilter}}</p>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2021-05-24 21:47:10 +02:00
|
|
|
<form>
|
|
|
|
<p>
|
2021-10-01 16:45:34 +02:00
|
|
|
<input type="search" name="q" value="{{$q}}" placeholder="{{$l10n.Search}}"></input>
|
|
|
|
<input type="submit" value="{{$l10n.Search}}">
|
2022-03-12 04:40:27 +01:00
|
|
|
<a href="{{$baseurl}}/admin/logs/view">{{$l10n.Show_all}}</a>
|
2021-05-24 21:47:10 +02:00
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-10-01 16:45:34 +02:00
|
|
|
<th>{{$l10n.Date}}</th>
|
2021-05-24 21:47:10 +02:00
|
|
|
<th>
|
|
|
|
<select name="level" onchange="this.form.submit()">
|
|
|
|
{{foreach $filtersvalues.level as $v }}
|
|
|
|
<option {{if $filters.level == $v}}selected{{/if}} value="{{$v}}">
|
|
|
|
{{if $v == ""}}Level{{/if}}
|
|
|
|
{{$v}}
|
|
|
|
</option>
|
|
|
|
{{/foreach}}
|
|
|
|
</select>
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
<select name="context" onchange="this.form.submit()">
|
|
|
|
{{foreach $filtersvalues.context as $v }}
|
|
|
|
<option {{if $filters.context == $v}}selected{{/if}} value="{{$v}}">
|
|
|
|
{{if $v == ""}}Context{{/if}}
|
|
|
|
{{$v}}
|
|
|
|
</option>
|
|
|
|
{{/foreach}}
|
|
|
|
</select>
|
|
|
|
</th>
|
2021-10-01 16:45:34 +02:00
|
|
|
<th>{{$l10n.Message}}</th>
|
2021-03-27 18:28:09 +01:00
|
|
|
</tr>
|
2021-05-24 21:47:10 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{foreach $data as $row}}
|
2021-08-20 09:47:53 +02:00
|
|
|
<tr id="ev-{{$row->id}}" class="log-event"
|
|
|
|
role="button" tabIndex="0"
|
2021-10-01 16:45:34 +02:00
|
|
|
aria-label="{{$l10n.View_details}}" aria-haspopup="true" aria-expanded="false"
|
2021-08-20 09:47:53 +02:00
|
|
|
style="cursor:pointer;"
|
2021-10-01 16:45:34 +02:00
|
|
|
title="{{$l10n.Click_to_view_details}}">
|
2021-05-24 21:47:10 +02:00
|
|
|
<td>{{$row->date}}</td>
|
|
|
|
<td>{{$row->level}}</td>
|
|
|
|
<td>{{$row->context}}</td>
|
|
|
|
<td>{{$row->message}}</td>
|
2021-03-27 18:28:09 +01:00
|
|
|
</tr>
|
2021-10-01 16:45:34 +02:00
|
|
|
<tr class="hidden" data-id="ev-{{$row->id}}"><th colspan="4">{{$l10n.Event_details}}</th></tr>
|
2021-08-20 09:47:53 +02:00
|
|
|
{{foreach $row->getData() as $k=>$v}}
|
2021-05-24 21:47:10 +02:00
|
|
|
<tr class="hidden" data-id="ev-{{$row->id}}">
|
|
|
|
<th>{{$k}}</th>
|
|
|
|
<td colspan="3">
|
|
|
|
<pre>{{$v nofilter}}</pre>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/foreach}}
|
2021-10-01 16:45:34 +02:00
|
|
|
<tr class="hidden" data-id="ev-{{$row->id}}"><th colspan="4">{{$l10n.Source}}</th></tr>
|
2021-08-20 09:47:53 +02:00
|
|
|
{{foreach $row->getSource() as $k=>$v}}
|
2021-05-24 21:47:10 +02:00
|
|
|
<tr class="hidden" data-id="ev-{{$row->id}}">
|
|
|
|
<th>{{$k}}</th>
|
|
|
|
<td colspan="3">{{$v}}</td>
|
|
|
|
</tr>
|
|
|
|
{{/foreach}}
|
2021-03-27 18:28:09 +01:00
|
|
|
{{/foreach}}
|
2021-05-24 21:47:10 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</form>
|
2021-03-27 18:28:09 +01:00
|
|
|
{{/if}}
|
2017-12-01 06:40:55 +01:00
|
|
|
</div>
|