Added information about memory usage to footer

This commit is contained in:
Marcin Kurczewski 2014-05-14 19:38:42 +02:00
parent 1bc219a162
commit d082d74716
2 changed files with 20 additions and 8 deletions

View file

@ -145,6 +145,12 @@ footer span:not(:last-of-type):after {
footer a {
color: silver;
}
footer .left {
float: left;
}
footer .right {
float: right;
}

View file

@ -38,14 +38,20 @@ Assets::addScript('core.js');
<footer>
<div class="main-wrapper">
<hr>
<span>Load:&nbsp;<?= sprintf('%.05f', microtime(true) - $this->context->startTime) ?>s</span>
<span>Queries:&nbsp;<?= count(\Chibi\Database::getLogs()) ?></span>
<hr/>
<div class="left">
<span><a href="<?= SZURU_LINK ?>">szurubooru&nbsp;v<?= SZURU_VERSION ?></a></span>
<?php if (Access::check(new Privilege(Privilege::ListLogs))): ?>
<span><a href="<?= \Chibi\Router::linkTo(['LogController', 'listView']) ?>">Logs</a></span>
<?php endif ?>
<hr>
</div>
<div class="right">
<span><?= TextHelper::useBytesUnits(memory_get_usage()) ?></span>
<span><?= sprintf('%.04f', microtime(true) - $this->context->startTime) ?>s</span>
<span><?= count(\Chibi\Database::getLogs()) ?> queries</span>
</div>
<div class="clear"></div>
<hr/>
</div>
</footer>