2014-02-01 11:17:02 +01:00
|
|
|
<?php
|
2014-04-29 21:35:29 +02:00
|
|
|
Assets::setSubTitle('logs (' . $this->context->transport->name . ')');
|
2014-02-01 11:17:02 +01:00
|
|
|
?>
|
|
|
|
|
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">
|
2014-04-29 21:35:29 +02:00
|
|
|
This log is empty. <a href="<?= \Chibi\Router::linkTo(['LogController', 'listAction']) ?>">Go back</a>
|
2014-04-27 15:59:29 +02:00
|
|
|
</p>
|
2013-11-17 14:39:50 +01:00
|
|
|
<?php else: ?>
|
2014-02-01 11:17:02 +01:00
|
|
|
<?php
|
2014-04-29 21:35:29 +02:00
|
|
|
Assets::addStylesheet('logs.css');
|
|
|
|
Assets::addScript('logs.js');
|
2014-02-01 11:17:02 +01:00
|
|
|
?>
|
|
|
|
|
2014-04-27 15:59:29 +02:00
|
|
|
<form method="get"
|
2014-04-29 21:35:29 +02:00
|
|
|
action="<?= \Chibi\Router::linkTo(['LogController', 'viewAction'], ['name' => $this->context->transport->name]) ?>">
|
2014-04-27 15:59:29 +02:00
|
|
|
|
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…"/>
|
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>
|
|
|
|
|
2014-04-29 21:35:29 +02:00
|
|
|
<?php \Chibi\View::render('paginator', $this->context) ?>
|
2013-11-17 14:39:50 +01:00
|
|
|
<?php endif ?>
|