2014-07-23 15:52:50 +02:00
|
|
|
<div class="post content">
|
2015-02-08 18:55:48 +01:00
|
|
|
<a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.back_to_rss_feeds'); ?></a>
|
2014-07-23 15:52:50 +02:00
|
|
|
|
2015-02-08 18:55:48 +01:00
|
|
|
<h1><?php echo _t('index.log'); ?></h1>
|
|
|
|
<form method="post" action="<?php echo _url('index', 'logs'); ?>"><p>
|
2014-07-23 15:52:50 +02:00
|
|
|
<input type="hidden" name="clearLogs" />
|
2015-02-08 18:55:48 +01:00
|
|
|
<button type="submit" class="btn"><?php echo _t('index.log.clear'); ?></button>
|
2014-07-23 15:52:50 +02:00
|
|
|
</p></form>
|
|
|
|
|
2015-02-08 18:55:48 +01:00
|
|
|
<?php $items = $this->logsPaginator->items(); ?>
|
2014-07-23 15:52:50 +02:00
|
|
|
|
2015-02-08 18:55:48 +01:00
|
|
|
<?php if (!empty($items)) { ?>
|
2014-07-23 15:52:50 +02:00
|
|
|
<div class="logs">
|
2015-02-08 18:55:48 +01:00
|
|
|
<?php $this->logsPaginator->render('logs_pagination.phtml', 'page'); ?>
|
2014-07-23 15:52:50 +02:00
|
|
|
|
|
|
|
<?php foreach ($items as $log) { ?>
|
2015-02-08 18:55:48 +01:00
|
|
|
<div class="log <?php echo $log->level(); ?>"><span class="date"><?php echo @date('Y-m-d H:i:s', @strtotime($log->date())); ?></span><?php echo htmlspecialchars($log->info(), ENT_NOQUOTES, 'UTF-8'); ?></div>
|
2014-07-23 15:52:50 +02:00
|
|
|
<?php } ?>
|
|
|
|
|
2015-02-08 18:55:48 +01:00
|
|
|
<?php $this->logsPaginator->render('logs_pagination.phtml','page'); ?>
|
2014-07-23 15:52:50 +02:00
|
|
|
</div>
|
|
|
|
<?php } else { ?>
|
2015-02-08 18:55:48 +01:00
|
|
|
<p class="alert alert-warn"><?php echo _t('index.log.empty'); ?></p>
|
2014-07-23 15:52:50 +02:00
|
|
|
<?php } ?>
|
|
|
|
</div>
|