aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar maTh <math-home@web.de> 2021-11-30 22:20:43 +0100
committerGravatar GitHub <noreply@github.com> 2021-11-30 22:20:43 +0100
commitc5d444e8df908cd5b2e3aa8fe994ee1be685c131 (patch)
treedee15271dcea60196ec9917e4aaeabff4454b7fc
parent42162c04a01c1faaf24c709cf87e7f7a36b72101 (diff)
Fix JS error: new-article missed (#3999)
-rw-r--r--app/views/index/normal.phtml3
-rw-r--r--app/views/index/reader.phtml3
2 files changed, 6 insertions, 0 deletions
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml
index 4c2b25fbc..045020ab7 100644
--- a/app/views/index/normal.phtml
+++ b/app/views/index/normal.phtml
@@ -115,6 +115,9 @@ $today = @strtotime('today');
ob_end_clean(); //Discard the articles headers, as we have no articles
?>
<main id="stream" class="normal">
+ <div id="new-article">
+ <a href="<?= Minz_Url::display(Minz_Request::currentRequest()) ?>"><?= _t('gen.js.new_article'); /* TODO: move string in JS*/ ?></a>
+ </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>
diff --git a/app/views/index/reader.phtml b/app/views/index/reader.phtml
index e4dac65c4..f58839d8f 100644
--- a/app/views/index/reader.phtml
+++ b/app/views/index/reader.phtml
@@ -83,6 +83,9 @@ $content_width = FreshRSS_Context::$user_conf->content_width;
ob_end_clean(); //Discard the articles headers, as we have no articles
?>
<main id="stream" class="reader">
+ <div id="new-article">
+ <a href="<?= Minz_Url::display(Minz_Request::currentRequest()) ?>"><?= _t('gen.js.new_article'); /* TODO: move string in JS*/ ?></a>
+ </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>