mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
refactor: move footer info to top
It is useful when reporting errors.
This commit is contained in:
parent
58aa7326bc
commit
9c38271a30
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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')) ?> —
|
||||||
|
PHP: <?= esc(PHP_VERSION) ?> —
|
||||||
|
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')) ?> —
|
|
||||||
PHP: <?= esc(PHP_VERSION) ?> —
|
|
||||||
CodeIgniter: <?= esc(CodeIgniter::CI_VERSION) ?> --
|
|
||||||
Environment: <?= ENVIRONMENT ?>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user