2021-03-27 18:36:55 +01:00
|
|
|
<div id="adminpage">
|
|
|
|
<h1>{{$title}} - {{$page}}</h1>
|
|
|
|
|
2021-08-20 09:47:53 +02:00
|
|
|
<h2>{{$logname}}</h2>
|
2021-03-27 18:36:55 +01:00
|
|
|
{{if $error }}
|
|
|
|
<div id="admin-error-message-wrapper" class="alert alert-warning">
|
|
|
|
<p>{{$error nofilter}}</p>
|
|
|
|
</div>
|
2021-05-25 14:10:36 +02:00
|
|
|
{{else}}
|
|
|
|
<form method="get" class="row">
|
2021-10-01 16:45:34 +02:00
|
|
|
<div class="col-xs-8">
|
2021-05-25 14:10:36 +02:00
|
|
|
<div class="form-group form-group-search">
|
|
|
|
<input accesskey="s" id="nav-search-input-field" class="form-control form-search"
|
2021-10-01 16:45:34 +02:00
|
|
|
type="text" name="q" data-toggle="tooltip" title="{{$l10n.Search_in_logs}}"
|
|
|
|
placeholder="{{$l10n.Search}}" value="{{$q}}">
|
2021-05-25 14:10:36 +02:00
|
|
|
<button class="btn btn-default btn-sm form-button-search"
|
2021-10-01 16:45:34 +02:00
|
|
|
type="submit">{{$l10n.Search}}</button>
|
2021-05-25 14:10:36 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-10-01 16:45:34 +02:00
|
|
|
<div class="xol-xs-4">
|
2022-03-12 04:40:27 +01:00
|
|
|
<a href="{{$baseurl}}/admin/logs/view" class="btn btn-default">{{$l10n.Show_all}}</a>
|
2021-05-25 14:10:36 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
2021-03-27 18:36:55 +01:00
|
|
|
<table class="table table-hover">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-10-01 16:45:34 +02:00
|
|
|
<th>{{$l10n.Date}}</th>
|
2021-05-25 14:10:36 +02:00
|
|
|
<th class="dropdown">
|
|
|
|
<a class="dropdown-toggle text-nowrap" type="button" id="level" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
2021-10-01 16:45:34 +02:00
|
|
|
{{$l10n.Level}} {{if $filters.level}}({{$filters.level}}){{/if}}<span class="caret"></span>
|
2021-05-25 14:10:36 +02:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu" aria-labelledby="level">
|
|
|
|
{{foreach $filtersvalues.level as $v }}
|
|
|
|
<li {{if $filters.level == $v}}class="active"{{/if}}>
|
2022-03-12 04:40:27 +01:00
|
|
|
<a href="{{$baseurl}}/admin/logs/view?level={{$v}}" data-filter="level" data-filter-value="{{$v}}">
|
2021-10-01 16:45:34 +02:00
|
|
|
{{if $v == ""}}{{$l10n.ALL}}{{/if}}{{$v}}
|
2021-05-25 14:10:36 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{/foreach}}
|
|
|
|
</ul>
|
|
|
|
</th>
|
|
|
|
<th class="dropdown">
|
|
|
|
<a class="dropdown-toggle text-nowrap" type="button" id="context" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
2021-10-01 16:45:34 +02:00
|
|
|
{{$l10n.Context}} {{if $filters.context}}({{$filters.context}}){{/if}}<span class="caret"></span>
|
2021-05-25 14:10:36 +02:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu" aria-labelledby="context">
|
|
|
|
{{foreach $filtersvalues.context as $v }}
|
|
|
|
<li {{if $filters.context == $v}}class="active"{{/if}}>
|
2022-03-12 04:40:27 +01:00
|
|
|
<a href="{{$baseurl}}/admin/logs/view?context={{$v}}" data-filter="context" data-filter-value="{{$v}}">
|
2021-10-01 16:45:34 +02:00
|
|
|
{{if $v == ""}}{{$l10n.ALL}}{{/if}}{{$v}}
|
2021-05-25 14:10:36 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{/foreach}}
|
|
|
|
</ul>
|
|
|
|
</th>
|
2021-10-01 16:45:34 +02:00
|
|
|
<th>{{$l10n.Message}}</th>
|
2021-03-27 18:36:55 +01:00
|
|
|
</tr>
|
|
|
|
</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-03-27 18:36:55 +01:00
|
|
|
data-data="{{$row->data}}" data-source="{{$row->source}}">
|
|
|
|
<td>{{$row->date}}</td>
|
|
|
|
<td class="
|
|
|
|
{{if $row->level == "CRITICAL"}}bg-danger
|
|
|
|
{{elseif $row->level == "ERROR"}}bg-danger
|
|
|
|
{{elseif $row->level == "WARNING"}}bg-warinig
|
|
|
|
{{elseif $row->level == "NOTICE"}}bg-info
|
|
|
|
{{elseif $row->level == "DEBUG"}}text-muted
|
|
|
|
{{/if}}
|
2021-05-25 14:10:36 +02:00
|
|
|
">{{$row->level}}</td>
|
2021-03-27 18:36:55 +01:00
|
|
|
<td>{{$row->context}}</td>
|
|
|
|
<td style="width:80%">{{$row->message}}</td>
|
|
|
|
</tr>
|
|
|
|
{{/foreach}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-05-25 14:10:36 +02:00
|
|
|
{{/if}}
|
2021-03-27 18:36:55 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="logdetail" class="modal fade" tabindex="-1" role="dialog">
|
|
|
|
<div class="modal-dialog modal-lg" style="width:90%" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
2021-10-01 16:45:34 +02:00
|
|
|
<h4 class="modal-title">{{$l10n.Event_details}}</h4>
|
2021-03-27 18:36:55 +01:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<table class="table main-data">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-10-01 16:45:34 +02:00
|
|
|
<th>{{$l10n.Date}}</th>
|
|
|
|
<th>{{$l10n.Level}}</th>
|
|
|
|
<th>{{$l10n.Context}}</th>
|
|
|
|
<th>{{$l10n.Message}}</th>
|
2021-03-27 18:36:55 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody><tr></tr></tbody>
|
|
|
|
</table>
|
|
|
|
<table class="table source-data">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-10-01 16:45:34 +02:00
|
|
|
<th>{{$l10n.File}}</th>
|
|
|
|
<th>{{$l10n.Line}}</th>
|
|
|
|
<th>{{$l10n.Function}}</th>
|
|
|
|
<th>{{$l10n.UID}}</th>
|
|
|
|
<th>{{$l10n.Process_ID}}</th>
|
2021-03-27 18:36:55 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td data-value="file"></td>
|
|
|
|
<td data-value="line"></td>
|
|
|
|
<td data-value="function" style="width:70%"></td>
|
|
|
|
<td data-value="uid"></td>
|
|
|
|
<td data-value="process_id"></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2022-11-01 14:17:25 +01:00
|
|
|
<h3 class="event-data-header">{{$l10n.Data}}</h3>
|
2021-03-27 18:36:55 +01:00
|
|
|
<div class="event-source">
|
|
|
|
</div>
|
|
|
|
<div class="event-data">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2021-05-25 14:10:36 +02:00
|
|
|
<button type="button" class="btn btn-default" data-previous><</button>
|
|
|
|
<button type="button" class="btn btn-default" data-next>></button>
|
2021-10-01 16:45:34 +02:00
|
|
|
<button type="button" class="btn btn-primary" data-dismiss="modal">{{$l10n.Close}}</button>
|
2021-03-27 18:36:55 +01:00
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|