diff options
| author | 2021-12-07 23:20:58 +0100 | |
|---|---|---|
| committer | 2021-12-07 23:20:58 +0100 | |
| commit | 343c7bf3cb6f3c634801d29f1e779b1cb805b638 (patch) | |
| tree | e571f32dcc16f1d975f39724236c4934fd2abbb2 | |
| parent | 1d624d041fb12162eaae3a428e8eca57dc91d50a (diff) | |
fix normal and reader view (#4040)
| -rw-r--r-- | app/views/index/normal.phtml | 4 | ||||
| -rw-r--r-- | app/views/index/reader.phtml | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml index 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.phtml index 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; ?> |
