Skip to content

Commit

Permalink
refactor: move footer info to top
Browse files Browse the repository at this point in the history
It is useful when reporting errors.
  • Loading branch information
kenjis committed Mar 14, 2024
1 parent e55d478 commit 7d3315f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
5 changes: 1 addition & 4 deletions app/Views/errors/html/debug.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,10 @@ p.lead {
display: inline;
}

.footer {
.environment {
background: var(--dark-bg-color);
color: var(--light-text-color);
}
.footer .container {
border-top: 1px solid #e7e7e7;
margin-top: 1rem;
text-align: center;
}

Expand Down
19 changes: 6 additions & 13 deletions app/Views/errors/html/error_exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@

<!-- 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">
<h1><?= esc($title), esc($exception->getCode() ? ' #' . $exception->getCode() : '') ?></h1>
<p>
Expand Down Expand Up @@ -401,18 +407,5 @@
</div> <!-- /container -->
<?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>
</html>

0 comments on commit 7d3315f

Please sign in to comment.