mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-18 13:24:37 -04:00
Before, when deleting a feed from the statistics idle page, there was an error in the redirection process. Now, the redirection works properly and redirects to the idle page.
49 lines
1.6 KiB
PHTML
49 lines
1.6 KiB
PHTML
<?php $this->partial('aside_stats'); ?>
|
|
|
|
<div class="post">
|
|
<a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.back_to_rss_feeds'); ?></a>
|
|
|
|
<h1><?php echo _t('admin.stats.idle'); ?></h1>
|
|
|
|
<?php
|
|
$current_url = Minz_Url::display(
|
|
array('c' => 'stats', 'a' => 'idle'),
|
|
'php', true
|
|
);
|
|
$nothing = true;
|
|
foreach ($this->idleFeeds as $period => $feeds) {
|
|
if (!empty($feeds)) {
|
|
$nothing = false;
|
|
?>
|
|
<div class="stat">
|
|
<h2><?php echo _t('gen.date.' . $period); ?></h2>
|
|
|
|
<form id="form-delete" method="post" aria-hidden="true"></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('gen.action.filter'); ?></a>
|
|
<a class="btn" href="<?php echo _url('subscription', 'index', 'id', $feed['id']); ?>"><?php echo _i('configure'); ?> <?php echo _t('gen.action.manage'); ?></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('gen.action.remove'); ?></button>
|
|
</div>
|
|
</li>
|
|
<li class="item">
|
|
<span title="<?php echo timestamptodate($feed['last_date'], false); ?>"><?php echo $feed['name']; ?> (<?php echo _t('admin.stats.number_entries', $feed['nb_articles']); ?>)</span>
|
|
</li>
|
|
</ul>
|
|
<?php } ?>
|
|
</div>
|
|
<?php
|
|
}
|
|
}
|
|
|
|
if ($nothing) {
|
|
?>
|
|
<p class="alert alert-warn">
|
|
<span class="alert-head"><?php echo _t('admin.stats.no_idle'); ?></span>
|
|
</p>
|
|
<?php } ?>
|
|
</div>
|