35cdc0cf3a
Styles, scripts and page titles are no longer set from controllers level. Changed because it was breaking MVC pattern and led to spaghetti code. Also, optimized JS/CSS inclusions a bit.
17 lines
422 B
PHTML
17 lines
422 B
PHTML
<?php
|
|
$this->context->subTitle = 'latest logs';
|
|
?>
|
|
|
|
<?php if (empty($this->context->transport->logs)): ?>
|
|
<p class="alert alert-warning">No logs to show.</p>
|
|
<?php else: ?>
|
|
<ul>
|
|
<?php foreach ($this->context->transport->logs as $log): ?>
|
|
<li>
|
|
<a href="<?php echo \Chibi\UrlHelper::route('log', 'view', ['name' => $log]) ?>">
|
|
<?php echo $log ?>
|
|
</a>
|
|
</li>
|
|
<?php endforeach ?>
|
|
</ul>
|
|
<?php endif ?>
|