aboutsummaryrefslogtreecommitdiff
path: root/app/views/index
diff options
context:
space:
mode:
authorGravatar maTh <1645099+math-GH@users.noreply.github.com> 2024-03-17 22:49:12 +0100
committerGravatar GitHub <noreply@github.com> 2024-03-17 22:49:12 +0100
commit6bd6494ad48c4894befed44e9c3f753c123aca5d (patch)
treec275e183b49904f0e85386380f4f1f685e710ee8 /app/views/index
parentd7bc70e3fb9785ee74e3d446d7a11858a083fe6a (diff)
fixed HTML: <fieldset> + <legend> (#6202)
* legend tags cleaned * formgroup -> fieldset tag * add bookmarklet class * Update logs.phtml * Update logs.phtml * fixed log table text alignment
Diffstat (limited to 'app/views/index')
-rw-r--r--app/views/index/logs.phtml86
1 files changed, 42 insertions, 44 deletions
diff --git a/app/views/index/logs.phtml b/app/views/index/logs.phtml
index 7913405ca..ec8bf3881 100644
--- a/app/views/index/logs.phtml
+++ b/app/views/index/logs.phtml
@@ -10,56 +10,54 @@
<h1><?= _t('index.log') ?></h1>
-
<?php
/** @var array<FreshRSS_Log> $items */
$items = $this->logsPaginator->items();
?>
<?php if (!empty($items)) { ?>
- <?php $this->logsPaginator->render('logs_pagination.phtml', 'page'); ?>
- <div id="loglist-wrapper" class="table-wrapper scrollbar-thin">
- <table id="loglist">
- <thead>
- <th><?= _t('conf.logs.loglist.level') ?></th>
- <th><?= _t('conf.logs.loglist.timestamp') ?></th>
- <th><?= _t('conf.logs.loglist.message') ?></th>
- </thead>
- <tbody>
- <?php foreach ($items as $log) { ?>
- <tr class="log-item log-<?= $log->level() ?>">
- <td class="log-level">
- <?= _i($log->level()) ?>
- </td>
- <td class="log-date">
- <time datetime="<?= date('Y-m-d H:i:s', @strtotime($log->date()) ?: 0) ?>">
- <?= date('Y-m-d H:i:s', @strtotime($log->date()) ?: 0) ?>
- </time>
- </td>
- <td class="log-message">
- <?= htmlspecialchars($log->info(), ENT_NOQUOTES, 'UTF-8') ?>
- </td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- </div>
- <?php $this->logsPaginator->render('logs_pagination.phtml', 'page'); ?>
-
-
+ <form method="post" action="<?= _url('index', 'logs') ?>">
+ <?php $this->logsPaginator->render('logs_pagination.phtml', 'page'); ?>
+
+ <div id="loglist-wrapper" class="table-wrapper scrollbar-thin">
+ <table id="loglist">
+ <thead>
+ <th><?= _t('conf.logs.loglist.level') ?></th>
+ <th><?= _t('conf.logs.loglist.timestamp') ?></th>
+ <th><?= _t('conf.logs.loglist.message') ?></th>
+ </thead>
+ <tbody>
+ <?php foreach ($items as $log) { ?>
+ <tr class="log-item log-<?= $log->level() ?>">
+ <td class="log-level">
+ <?= _i($log->level()) ?>
+ </td>
+ <td class="log-date">
+ <time datetime="<?= date('Y-m-d H:i:s', @strtotime($log->date()) ?: 0) ?>">
+ <?= date('Y-m-d H:i:s', @strtotime($log->date()) ?: 0) ?>
+ </time>
+ </td>
+ <td class="log-message">
+ <?= htmlspecialchars($log->info(), ENT_NOQUOTES, 'UTF-8') ?>
+ </td>
+ </tr>
+ <?php } ?>
+ </tbody>
+ </table>
+ </div>
+ <?php $this->logsPaginator->render('logs_pagination.phtml', 'page'); ?>
+
+ <div class="form-group form-actions">
+ <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
+ <input type="hidden" name="clearLogs" />
+ <div class="group-controls">
+ <button type="submit" class="btn btn-attention"><?= _t('index.log.clear') ?></button>
+ </div>
+ </div>
+ </form>
- <form method="post" action="<?= _url('index', 'logs') ?>">
- <div class="form-group form-actions">
- <input type="hidden" name="_csrf" value="<?= FreshRSS_Auth::csrfToken() ?>" />
- <input type="hidden" name="clearLogs" />
- <div class="group-controls">
- <button type="submit" class="btn btn-attention"><?= _t('index.log.clear') ?></button>
- </div>
- </div>
- </form>
-
- <?php } else { ?>
- <p class="alert alert-warn"><?= _t('index.log.empty') ?></p>
+ <?php
+ } else { ?>
+ <p class="alert alert-warn"><?= _t('index.log.empty') ?></p>
<?php } ?>
-
</main>