szurubooru/src/Views/log-view.phtml

32 lines
849 B
PHTML
Raw Normal View History

<?php
2014-02-27 15:04:36 +01:00
CustomAssetViewDecorator::setSubTitle('logs (' . $name . ')');
?>
2014-01-27 09:17:36 +01:00
<?php if (empty($this->context->transport->lines)): ?>
2014-04-27 15:59:29 +02:00
<p class="alert alert-warning">
This log is empty. <a href="<?= \Chibi\UrlHelper::route('log', 'list') ?>">Go back</a>
</p>
2013-11-17 14:39:50 +01:00
<?php else: ?>
<?php
2014-02-27 15:04:36 +01:00
CustomAssetViewDecorator::addStylesheet('logs.css');
CustomAssetViewDecorator::addScript('logs.js');
?>
2014-04-27 15:59:29 +02:00
<form method="get"
action="<?= \Chibi\UrlHelper::route('log', 'view', ['name' => $this->context->transport->name]) ?>">
2013-11-17 14:39:50 +01:00
Keep only lines that contain:
2014-04-27 15:59:29 +02:00
<input type="text"
name="query"
value="<?= htmlspecialchars($this->context->transport->filter) ?>"
placeholder="any text&hellip;"/>
2013-11-17 14:39:50 +01:00
</form>
2014-01-27 09:17:36 +01:00
<div class="paginator-content">
2014-04-27 15:59:29 +02:00
<code><?= $this->context->transport->lines ?></code>
2014-01-27 09:17:36 +01:00
</div>
<?php $this->renderFile('paginator') ?>
2013-11-17 14:39:50 +01:00
<?php endif ?>