Add hints to each log page. Fix preview screens for event and request logs.

This commit is contained in:
Sam Georges 2014-07-30 18:12:19 +10:00
parent 0da5f513d3
commit ba3931acf5
13 changed files with 85 additions and 4 deletions

View File

@ -0,0 +1,4 @@
<p>
<?= e(trans('backend::lang.access_log.hint', ['days' => 60])) ?>
</p>

View File

@ -1 +1,5 @@
<div class="padded-container list-header">
<?= $this->makeHintPartial('backend_accesslogs_hint', 'hint') ?>
</div>
<?= $this->listRender() ?> <?= $this->listRender() ?>

View File

@ -3,3 +3,8 @@
<?= Form::open() ?> <?= Form::open() ?>
<?= $this->widget->reportContainer->render() ?> <?= $this->widget->reportContainer->render() ?>
<?= Form::close() ?> <?= Form::close() ?>
<?php
traceLog('moo');

View File

@ -188,6 +188,7 @@ return [
'locale_comment' => 'Select your desired locale for language use.', 'locale_comment' => 'Select your desired locale for language use.',
], ],
'access_log' => [ 'access_log' => [
'hint' => 'This log displays a list of successful sign in attempts by administrators. Records are kept for a total of :days days.',
'menu_label' => 'Access Log', 'menu_label' => 'Access Log',
'menu_description' => 'View a list of successful back-end user sign ins.', 'menu_description' => 'View a list of successful back-end user sign ins.',
'created_at' => 'Date & Time', 'created_at' => 'Date & Time',

View File

@ -0,0 +1,4 @@
<p>
<?= e(trans('system::lang.event_log.hint')) ?>
</p>

View File

@ -1 +1,5 @@
<div class="padded-container list-header">
<?= $this->makeHintPartial('system_eventlogs_hint', 'hint') ?>
</div>
<?= $this->listRender() ?> <?= $this->listRender() ?>

View File

@ -14,6 +14,11 @@
<?php else: ?> <?php else: ?>
<p class="flash-message static error"><?= e($this->fatalError) ?></p> <p class="flash-message static error"><?= e($this->fatalError) ?></p>
<p><a href="<?= Backend::url('system/eventlogs') ?>" class="btn btn-default">Return to event log list</a></p>
<?php endif ?> <?php endif ?>
<p>
<a href="<?= Backend::url('system/eventlogs') ?>" class="btn btn-default oc-icon-chevron-left">
<?= e(trans('system::lang.event_log.return_link')) ?>
</a>
</p>

View File

@ -0,0 +1,4 @@
<p>
<?= e(trans('system::lang.request_log.hint')) ?>
</p>

View File

@ -1 +1,5 @@
<div class="padded-container list-header">
<?= $this->makeHintPartial('system_requestlogs_hint', 'hint') ?>
</div>
<?= $this->listRender() ?> <?= $this->listRender() ?>

View File

@ -14,6 +14,11 @@
<?php else: ?> <?php else: ?>
<p class="flash-message static error"><?= e($this->fatalError) ?></p> <p class="flash-message static error"><?= e($this->fatalError) ?></p>
<p><a href="<?= Backend::url('system/requestlogs') ?>" class="btn btn-default">Return to request log list</a></p>
<?php endif ?> <?php endif ?>
<p>
<a href="<?= Backend::url('system/requestlogs') ?>" class="btn btn-default oc-icon-chevron-left">
<?= e(trans('system::lang.request_log.return_link')) ?>
</a>
</p>

View File

@ -177,21 +177,26 @@ return [
'extract_failed' => "Unable to extract core file ':file'.", 'extract_failed' => "Unable to extract core file ':file'.",
], ],
'event_log' => [ 'event_log' => [
'hint' => 'This log displays a list of potential errors that occur in the application, such as exceptions and debugging information.',
'menu_label' => 'Event Log', 'menu_label' => 'Event Log',
'menu_description' => 'View system log messages with their recorded time and details.', 'menu_description' => 'View system log messages with their recorded time and details.',
'empty_link' => 'Empty event log', 'empty_link' => 'Empty event log',
'empty_loading' => 'Emptying event log...', 'empty_loading' => 'Emptying event log...',
'empty_success' => 'Successfully emptied the event log.', 'empty_success' => 'Successfully emptied the event log.',
'return_link' => 'Return to event log',
'id' => 'ID', 'id' => 'ID',
'created_at' => 'Date & Time', 'created_at' => 'Date & Time',
'message' => 'Message', 'message' => 'Message',
'level' => 'Level',
], ],
'request_log' => [ 'request_log' => [
'hint' => 'This log displays a list of browser requests that may require attention. For example, if a visitor opens a CMS page that cannot be found, a record is created with the status code 404.',
'menu_label' => 'Request Log', 'menu_label' => 'Request Log',
'menu_description' => 'View bad or redirected requests, such as Page not found (404).', 'menu_description' => 'View bad or redirected requests, such as Page not found (404).',
'empty_link' => 'Empty request log', 'empty_link' => 'Empty request log',
'empty_loading' => 'Emptying request log...', 'empty_loading' => 'Emptying request log...',
'empty_success' => 'Successfully emptied the request log.', 'empty_success' => 'Successfully emptied the request log.',
'return_link' => 'Return to request log',
'count' => 'Counter', 'count' => 'Counter',
'referer' => 'Referer', 'referer' => 'Referer',
'url' => 'URL', 'url' => 'URL',

View File

@ -0,0 +1,17 @@
# ===================================
# Field Definitions
# ===================================
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

View File

@ -0,0 +1,19 @@
# ===================================
# Field Definitions
# ===================================
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