A free, self-hostable news aggregator…
fix normal and reader view (#4040)
maTh343c7bf3cb6f
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtmlindex 045020ab7..4adc7047e 100644--- a/app/views/index/normal.phtml+++ b/app/views/index/normal.phtml@@ -120,7 +120,9 @@ $today = @strtotime('today');</div><div class="prompt alert alert-warn"><h2 class="alert-head"><?= _t('index.feed.empty') ?></h2>- <p><a href="<?= _url('subscription', 'add') ?>"><?= _t('index.feed.add') ?></a></p>+ <?php if (FreshRSS_Auth::hasAccess()) { ?>+ <p><a href="<?= _url('subscription', 'add') ?>"><?= _t('index.feed.add') ?></a></p>+ <?php } ?></div></main><?php endif; ?>diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtmlindex 0e9fb4b3e..6b68ea08f 100644--- a/app/views/index/reader.phtml+++ b/app/views/index/reader.phtml@@ -84,7 +84,9 @@ $content_width = FreshRSS_Context::$user_conf->content_width;</div><div class="prompt alert alert-warn"><h2 class="alert-head"><?= _t('index.feed.empty') ?></h2>+ <?php if (FreshRSS_Auth::hasAccess()) { ?><p><a href="<?= _url('subscription', 'add') ?>"><?= _t('index.feed.add') ?></a></p>+ <?php } ?></div></main><?php endif; ?>