Improve event and request log preview pages
This commit is contained in:
parent
8b7bbd1062
commit
25e01ed449
|
|
@ -9499,6 +9499,13 @@ table.table.data tr.list-tree-level-25 td.list-cell-index-1 {
|
|||
.control-simplelist ul {
|
||||
padding-left: 15px;
|
||||
}
|
||||
.control-simplelist.form-control ul {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.control-simplelist.form-control li {
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
.control-simplelist.with-icons ul,
|
||||
.control-simplelist.with-checkboxes ul,
|
||||
.control-simplelist.is-selectable ul {
|
||||
|
|
|
|||
|
|
@ -33,6 +33,14 @@
|
|||
|
||||
ul { padding-left: 15px; }
|
||||
|
||||
&.form-control {
|
||||
ul { margin-bottom: 0; }
|
||||
li {
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
&.with-icons, &.with-checkboxes, &.is-selectable {
|
||||
ul {
|
||||
list-style-type: none;
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
<?= Str::limit($value, 100) ?>
|
||||
|
|
@ -7,7 +7,24 @@
|
|||
|
||||
<?php if (!$this->fatalError): ?>
|
||||
|
||||
<div class="layout-item stretch layout-column form-preview">
|
||||
<div class="scoreboard">
|
||||
<div data-control="toolbar">
|
||||
<div class="scoreboard-item title-value">
|
||||
<h4><?= e(trans('system::lang.event_log.id_label')) ?></h4>
|
||||
<p>#<?= $formModel->id ?></p>
|
||||
</div>
|
||||
<div class="scoreboard-item title-value">
|
||||
<h4><?= e(trans('system::lang.event_log.level')) ?></h4>
|
||||
<p><?= $formModel->level ?></p>
|
||||
</div>
|
||||
<div class="scoreboard-item title-value">
|
||||
<h4><?= e(trans('system::lang.event_log.created_at')) ?></h4>
|
||||
<p><?= $formModel->created_at->toDayDateTimeString() ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layout-item stretch layout-column">
|
||||
<?= $this->formRenderPreview() ?>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
<?php if (count($formModel->referer) > 0): ?>
|
||||
<ul>
|
||||
<?php foreach ($formModel->referer as $referer): ?>
|
||||
<li><?= $referer ?></li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<p><em>There were no detected referers to this URL.</em></p>
|
||||
<?php endif ?>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<?php if (count($formModel->referer) > 0): ?>
|
||||
<div class="form-control control-simplelist with-icons">
|
||||
<ul>
|
||||
<?php foreach ((array) $formModel->referer as $referer): ?>
|
||||
<li class="oc-icon-file-o"><?= $referer ?></li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="form-control"><em>There were no detected referers to this URL.</em></div>
|
||||
<?php endif ?>
|
||||
|
|
@ -7,7 +7,28 @@
|
|||
|
||||
<?php if (!$this->fatalError): ?>
|
||||
|
||||
<div class="layout-item stretch layout-column form-preview">
|
||||
<div class="scoreboard">
|
||||
<div data-control="toolbar">
|
||||
<div class="scoreboard-item title-value">
|
||||
<h4><?= e(trans('system::lang.request_log.id_label')) ?></h4>
|
||||
<p>#<?= $formModel->id ?></p>
|
||||
</div>
|
||||
<div class="scoreboard-item title-value">
|
||||
<h4><?= e(trans('system::lang.request_log.status_code')) ?></h4>
|
||||
<p><?= $formModel->status_code ?></p>
|
||||
</div>
|
||||
<div class="scoreboard-item title-value">
|
||||
<h4><?= e(trans('system::lang.request_log.count')) ?></h4>
|
||||
<p><?= $formModel->count ?></p>
|
||||
</div>
|
||||
<div class="scoreboard-item title-value">
|
||||
<h4><?= e(trans('system::lang.request_log.referer')) ?></h4>
|
||||
<p><?= $formModel->referer ? count($formModel->referer) : 0 ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layout-item stretch layout-column">
|
||||
<?= $this->formRenderPreview() ?>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -185,6 +185,7 @@ return [
|
|||
'empty_success' => 'Successfully emptied the event log.',
|
||||
'return_link' => 'Return to event log',
|
||||
'id' => 'ID',
|
||||
'id_label' => 'Event ID',
|
||||
'created_at' => 'Date & Time',
|
||||
'message' => 'Message',
|
||||
'level' => 'Level',
|
||||
|
|
@ -197,6 +198,8 @@ return [
|
|||
'empty_loading' => 'Emptying request log...',
|
||||
'empty_success' => 'Successfully emptied the request log.',
|
||||
'return_link' => 'Return to request log',
|
||||
'id' => 'ID',
|
||||
'id_label' => 'Log ID',
|
||||
'count' => 'Counter',
|
||||
'referer' => 'Referers',
|
||||
'url' => 'URL',
|
||||
|
|
|
|||
|
|
@ -14,3 +14,5 @@ columns:
|
|||
message:
|
||||
label: system::lang.event_log.message
|
||||
searchable: yes
|
||||
type: partial
|
||||
path: message_column
|
||||
|
|
@ -4,14 +4,5 @@
|
|||
|
||||
fields:
|
||||
|
||||
id:
|
||||
label: system::lang.event_log.id
|
||||
span: auto
|
||||
|
||||
level:
|
||||
label: system::lang.event_log.level
|
||||
span: auto
|
||||
|
||||
message:
|
||||
label: system::lang.event_log.message
|
||||
type: textarea
|
||||
|
|
|
|||
|
|
@ -4,17 +4,10 @@
|
|||
|
||||
fields:
|
||||
|
||||
status_code:
|
||||
label: system::lang.request_log.status_code
|
||||
span: auto
|
||||
|
||||
count:
|
||||
label: system::lang.request_log.count
|
||||
span: auto
|
||||
|
||||
url:
|
||||
label: system::lang.request_log.url
|
||||
|
||||
referer:
|
||||
label: system::lang.request_log.referer
|
||||
type: partial
|
||||
path: referer_field
|
||||
Loading…
Reference in New Issue