Преглед изворни кода

fix normal and reader view (#4040)

maTh пре 4 година
родитељ
комит
343c7bf3cb
2 измењених фајлова са 5 додато и 1 уклоњено
  1. 3 1
      app/views/index/normal.phtml
  2. 2 0
      app/views/index/reader.phtml

+ 3 - 1
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; ?>

+ 2 - 0
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; ?>