refactor: move footer info to top

It is useful when reporting errors.
This commit is contained in:
kenjis 2024-03-15 08:53:22 +09:00
parent 58aa7326bc
commit 9c38271a30
No known key found for this signature in database
GPG Key ID: BD254878922AF198
2 changed files with 7 additions and 17 deletions

View File

@ -65,13 +65,10 @@ p.lead {
display: inline; display: inline;
} }
.footer { .environment {
background: var(--dark-bg-color); background: var(--dark-bg-color);
color: var(--light-text-color); color: var(--light-text-color);
}
.footer .container {
border-top: 1px solid #e7e7e7; border-top: 1px solid #e7e7e7;
margin-top: 1rem;
text-align: center; text-align: center;
} }

View File

@ -23,6 +23,12 @@ $errorId = uniqid('error', true);
<!-- Header --> <!-- Header -->
<div class="header"> <div class="header">
<div class="environment">
Displayed at <?= esc(date('H:i:sa')) ?> &mdash;
PHP: <?= esc(PHP_VERSION) ?> &mdash;
CodeIgniter: <?= esc(CodeIgniter::CI_VERSION) ?> --
Environment: <?= ENVIRONMENT ?>
</div>
<div class="container"> <div class="container">
<h1><?= esc($title), esc($exception->getCode() ? ' #' . $exception->getCode() : '') ?></h1> <h1><?= esc($title), esc($exception->getCode() ? ' #' . $exception->getCode() : '') ?></h1>
<p> <p>
@ -401,18 +407,5 @@ $errorId = uniqid('error', true);
</div> <!-- /container --> </div> <!-- /container -->
<?php endif; ?> <?php endif; ?>
<div class="footer">
<div class="container">
<p>
Displayed at <?= esc(date('H:i:sa')) ?> &mdash;
PHP: <?= esc(PHP_VERSION) ?> &mdash;
CodeIgniter: <?= esc(CodeIgniter::CI_VERSION) ?> --
Environment: <?= ENVIRONMENT ?>
</p>
</div>
</div>
</body> </body>
</html> </html>