2014-07-23 15:52:50 +02:00
|
|
|
<?php $this->partial('aside_stats'); ?>
|
|
|
|
|
2014-09-27 10:10:43 +02:00
|
|
|
<div class="post">
|
2014-09-21 12:12:35 +02:00
|
|
|
<a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('back_to_rss_feeds'); ?></a>
|
2014-07-23 15:52:50 +02:00
|
|
|
|
2014-09-21 12:12:35 +02:00
|
|
|
<h1><?php echo _t('stats_idle'); ?></h1>
|
2014-07-23 15:52:50 +02:00
|
|
|
|
2014-09-21 12:12:35 +02:00
|
|
|
<?php
|
2014-09-27 10:10:43 +02:00
|
|
|
$current_url = urlencode(Minz_Url::display(
|
|
|
|
array('c' => 'stats', 'a' => 'idle'),
|
|
|
|
'php', true
|
|
|
|
));
|
|
|
|
$nothing = true;
|
2014-09-21 12:12:35 +02:00
|
|
|
foreach ($this->idleFeeds as $period => $feeds) {
|
|
|
|
if (!empty($feeds)) {
|
2014-09-27 10:10:43 +02:00
|
|
|
$nothing = false;
|
2014-09-21 12:12:35 +02:00
|
|
|
?>
|
2014-07-23 15:52:50 +02:00
|
|
|
<div class="stat">
|
2014-09-21 12:12:35 +02:00
|
|
|
<h2><?php echo _t($period); ?></h2>
|
2014-07-23 15:52:50 +02:00
|
|
|
|
2014-09-27 10:10:43 +02:00
|
|
|
<form id="form-delete" method="post" style="display: none"></form>
|
|
|
|
|
|
|
|
<?php foreach ($feeds as $feed) { ?>
|
|
|
|
<ul class="horizontal-list">
|
|
|
|
<li class="item">
|
|
|
|
<div class="stick">
|
|
|
|
<a class="btn" href="<?php echo _url('index', 'index', 'get', 'f_' . $feed['id']); ?>"><?php echo _i('link'); ?> <?php echo _t('filter'); ?></a>
|
|
|
|
<a class="btn" href="<?php echo _url('configure', 'feed', 'id', $feed['id']); ?>"><?php echo _i('configure'); ?> <?php echo _t('administration'); ?></a>
|
|
|
|
<button class="btn btn-attention confirm" form="form-delete" formaction="<?php echo _url('feed', 'delete', 'id', $feed['id'], 'r', $current_url); ?>"><?php echo _t('delete'); ?></button>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<li class="item">
|
|
|
|
<span title="<?php echo timestamptodate($feed['last_date'], false); ?>"><?php echo $feed['name']; ?> (<?php echo _t('number_articles', $feed['nb_articles']); ?>)</span>
|
|
|
|
</li>
|
2014-07-23 15:52:50 +02:00
|
|
|
</ul>
|
2014-09-27 10:10:43 +02:00
|
|
|
<?php } ?>
|
2014-07-23 15:52:50 +02:00
|
|
|
</div>
|
2014-09-21 12:12:35 +02:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
}
|
2014-09-27 10:10:43 +02:00
|
|
|
|
|
|
|
if ($nothing) {
|
2014-09-21 12:12:35 +02:00
|
|
|
?>
|
2014-09-27 10:10:43 +02:00
|
|
|
<p class="alert alert-warn">
|
|
|
|
<span class="alert-head"><?php echo _t('stats_no_idle'); ?></span>
|
|
|
|
</p>
|
|
|
|
<?php } ?>
|
2014-07-23 15:52:50 +02:00
|
|
|
</div>
|