mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-06 22:23:10 -04:00
Fix: Global view - No articles banner (#4563)
* Update global.phtml * Update app/views/index/global.phtml Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
This commit is contained in:
@@ -3,10 +3,13 @@
|
||||
$this->partial('nav_menu');
|
||||
|
||||
$class = '';
|
||||
$state_unread = false;
|
||||
|
||||
if (FreshRSS_Context::$user_conf->hide_read_feeds &&
|
||||
FreshRSS_Context::isStateEnabled(FreshRSS_Entry::STATE_NOT_READ) &&
|
||||
!FreshRSS_Context::isStateEnabled(FreshRSS_Entry::STATE_READ)) {
|
||||
$class = ' state_unread';
|
||||
$state_unread = true;
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -54,7 +57,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
if ($unreadArticles < 1) {
|
||||
if ($unreadArticles < 1 && $state_unread) {
|
||||
?>
|
||||
<div id="noArticlesToShow" class="prompt alert alert-warn">
|
||||
<h2 class="alert-head"><?= _t('index.feed.empty') ?></h2>
|
||||
|
||||
Reference in New Issue
Block a user