Skip to content

Commit 7d3315f

Browse files
committed
refactor: move footer info to top
It is useful when reporting errors.
1 parent e55d478 commit 7d3315f

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

app/Views/errors/html/debug.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,10 @@ p.lead {
6565
display: inline;
6666
}
6767

68-
.footer {
68+
.environment {
6969
background: var(--dark-bg-color);
7070
color: var(--light-text-color);
71-
}
72-
.footer .container {
7371
border-top: 1px solid #e7e7e7;
74-
margin-top: 1rem;
7572
text-align: center;
7673
}
7774

app/Views/errors/html/error_exception.php

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323

2424
<!-- Header -->
2525
<div class="header">
26+
<div class="environment">
27+
Displayed at <?= esc(date('H:i:sa')) ?> &mdash;
28+
PHP: <?= esc(PHP_VERSION) ?> &mdash;
29+
CodeIgniter: <?= esc(CodeIgniter::CI_VERSION) ?> --
30+
Environment: <?= ENVIRONMENT ?>
31+
</div>
2632
<div class="container">
2733
<h1><?= esc($title), esc($exception->getCode() ? ' #' . $exception->getCode() : '') ?></h1>
2834
<p>
@@ -401,18 +407,5 @@
401407
</div> <!-- /container -->
402408
<?php endif; ?>
403409

404-
<div class="footer">
405-
<div class="container">
406-
407-
<p>
408-
Displayed at <?= esc(date('H:i:sa')) ?> &mdash;
409-
PHP: <?= esc(PHP_VERSION) ?> &mdash;
410-
CodeIgniter: <?= esc(CodeIgniter::CI_VERSION) ?> --
411-
Environment: <?= ENVIRONMENT ?>
412-
</p>
413-
414-
</div>
415-
</div>
416-
417410
</body>
418411
</html>

0 commit comments

Comments
 (0)