aboutsummaryrefslogtreecommitdiff
path: root/app/views/stats/idle.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/stats/idle.phtml')
-rw-r--r--app/views/stats/idle.phtml20
1 files changed, 13 insertions, 7 deletions
diff --git a/app/views/stats/idle.phtml b/app/views/stats/idle.phtml
index 356fea20f..2ba5237f7 100644
--- a/app/views/stats/idle.phtml
+++ b/app/views/stats/idle.phtml
@@ -1,19 +1,25 @@
<?php $this->partial('aside_stats'); ?>
<div class="post content">
- <a href="<?php echo _url ('index', 'index'); ?>"><?php echo _t ('back_to_rss_feeds'); ?></a>
+ <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('back_to_rss_feeds'); ?></a>
- <h1><?php echo _t ('stats_idle'); ?></h1>
+ <h1><?php echo _t('stats_idle'); ?></h1>
- <?php foreach ($this->idleFeeds as $period => $feeds){ ?>
+ <?php
+ foreach ($this->idleFeeds as $period => $feeds) {
+ if (!empty($feeds)) {
+ ?>
<div class="stat">
- <h2><?php echo _t ($period); ?></h2>
+ <h2><?php echo _t($period); ?></h2>
<ul>
- <?php foreach ($feeds as $feed){ ?>
- <li><?php echo $feed; ?></li>
+ <?php foreach ($feeds as $feed) { ?>
+ <li><a href="<?php echo _url('configure', 'feed', 'id', $feed['id']); ?>" title="<?php echo date('Y-m-d', $feed['last_date']); ?>"><?php echo $feed['name']; ?></a></li>
<?php } ?>
</ul>
</div>
- <?php } ?>
+ <?php
+ }
+ }
+ ?>
</div>