Changed footer appearance

This commit is contained in:
Marcin Kurczewski 2014-02-16 12:30:34 +01:00
parent 1a3f77175b
commit 620d1204f7
2 changed files with 6 additions and 9 deletions

View file

@ -133,11 +133,9 @@ body {
footer {
footer .main-wrapper {
text-align: center;
margin: 1em 0;
padding-top: 0.5em;
border-top: 1px solid #eee;
margin-top: 1em;
font-size: small;
color: silver;
}

View file

@ -35,16 +35,15 @@ LayoutHelper::addScript('core.js');
<footer>
<div class="main-wrapper">
<hr>
<span>Load: <?php echo sprintf('%.05f', microtime(true) - $this->context->startTime) ?>s</span>
<span>Queries: <?php echo count(Database::getLogs()) ?></span>
<span><a href="<?php echo SZURU_LINK ?>">szurubooru v<?php echo SZURU_VERSION ?></a></span>
<?php if (PrivilegesHelper::confirm(Privilege::ListLogs)): ?>
<span><a href="<?php echo \Chibi\UrlHelper::route('log', 'list') ?>">Logs</a></span>
<?php endif ?>
</div>
<?php if ($this->config->misc->debugQueries): ?>
<hr>
<div class="main-wrapper">
<?php if ($this->config->misc->debugQueries): ?>
<pre class="debug">
<?php foreach (Database::getLogs() as $query)
{
@ -54,8 +53,8 @@ LayoutHelper::addScript('core.js');
printf('<p>%s [%s]</p>', htmlspecialchars($query->getSql()), join(', ', $bindings));
} ?>
</pre>
</div>
<?php endif ?>
</div>
</footer>
<div id="small-screen"></div>