aboutsummaryrefslogtreecommitdiff
path: root/app/views/subscription
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-12-22 13:22:20 +0100
committerGravatar GitHub <noreply@github.com> 2018-12-22 13:22:20 +0100
commitf0a359619fa2936d66a2b96dd086d4686e7405fa (patch)
treeddad42a7f6813bd458f39d5203d083daad4cc1c5 /app/views/subscription
parente04804d0f67dd43fd3f072b9a127768ee7b7b56c (diff)
parent4a1a852f457d52fa47191e3f7e3e9073e1324cd9 (diff)
Merge pull request #2186 from FreshRSS/dev1.13.0
FreshRSS 1.13.0
Diffstat (limited to 'app/views/subscription')
-rw-r--r--app/views/subscription/index.phtml17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/views/subscription/index.phtml b/app/views/subscription/index.phtml
index 41dd8a7df..8b196cb00 100644
--- a/app/views/subscription/index.phtml
+++ b/app/views/subscription/index.phtml
@@ -52,6 +52,12 @@
<?php echo _t('sub.feed.moved_category_deleted', $this->default_category->name()); ?>
</p>
+ <?php if ($this->onlyFeedsWithError): ?>
+ <p class="alert alert-warn">
+ <?php echo _t('sub.feed.showing.error'); ?>
+ </p>
+ <?php endif; ?>
+
<div class="box">
<div class="box-title"><label for="new-category"><?php echo _t('sub.category.add'); ?></label></div>
@@ -122,6 +128,9 @@
<?php if (!empty($feeds)) { ?>
<?php
foreach ($feeds as $feed) {
+ if ($this->onlyFeedsWithError && !$feed->inError()) {
+ continue;
+ }
$error = $feed->inError() ? ' error' : '';
$empty = $feed->nbEntries() == 0 ? ' empty' : '';
?>
@@ -140,6 +149,14 @@
</ul>
</div>
<?php } ?>
+
+ <ul>
+ <?php if ($this->onlyFeedsWithError): ?>
+ <li><a href="<?php echo _url('subscription', 'index'); ?>"><?php echo _t('sub.feed.show.all'); ?></a></li>
+ <?php else: ?>
+ <li><a href="<?php echo _url('subscription', 'index', 'error', 1); ?>"><?php echo _t('sub.feed.show.error'); ?></a></li>
+ <?php endif; ?>
+ </ul>
</div>
<?php $class = isset($this->feed) ? ' class="active"' : ''; ?>