1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00
freshrss_ynh/sources/app/views/index/logs.phtml

26 lines
1,011 B
PHTML
Raw Normal View History

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>