A free, self-hostable news aggregator…
Improve "no feed to display" box
Marien Fressinaud64b3d140f64d
diff --git a/app/i18n/de.php b/app/i18n/de.phpindex 6caa3cd84..6f485214b 100644--- a/app/i18n/de.php+++ b/app/i18n/de.php@@ -169,7 +169,7 @@ return array ('not_yet_implemented' => 'Noch nicht implementiert','access_protected_feeds' => 'Die Verbindung erlaubt Zugriff zu HTTP-geschützten RSS Feeds','no_selected_feed' => 'Kein Feed ausgewählt.',- 'think_to_add' => '<a href="./?c=configure&a=feed">Sie können Feeds hinzufügen</a>.',+ 'think_to_add' => 'Sie können Feeds hinzufügen.','current_user' => 'Aktuelle Nutzung','default_user' => 'Nutzername des Standardnutzers <small>(maximal 16 Zeichen - alphanumerisch)</small>',diff --git a/app/i18n/en.php b/app/i18n/en.phpindex b9588c8b8..8a24d010b 100644--- a/app/i18n/en.php+++ b/app/i18n/en.php@@ -237,7 +237,7 @@ return array ('not_yet_implemented' => 'Not yet implemented','access_protected_feeds' => 'Connection allows to access HTTP protected RSS feeds','no_selected_feed' => 'No feed selected.',- 'think_to_add' => '<a href="./?c=configure&a=feed">You may add some feeds</a>.',+ 'think_to_add' => 'You may add some feeds.','current_user' => 'Current user','default_user' => 'Username of the default user <small>(maximum 16 alphanumeric characters)</small>',diff --git a/app/i18n/fr.php b/app/i18n/fr.phpindex 4cc9c8598..f1e531f96 100644--- a/app/i18n/fr.php+++ b/app/i18n/fr.php@@ -237,7 +237,7 @@ return array ('not_yet_implemented' => 'Pas encore implémenté','access_protected_feeds' => 'La connexion permet d’accéder aux flux protégés par une authentification HTTP.','no_selected_feed' => 'Aucun flux sélectionné.',- 'think_to_add' => '<a href="./?c=configure&a=feed">Vous pouvez ajouter des flux</a>.',+ 'think_to_add' => 'Vous pouvez ajouter des flux.','current_user' => 'Utilisateur actuel','password_form' => 'Mot de passe<br /><small>(pour connexion par formulaire)</small>',diff --git a/app/views/helpers/view/global_view.phtml b/app/views/helpers/view/global_view.phtmlindex db937eeae..48aa5d46f 100644--- a/app/views/helpers/view/global_view.phtml+++ b/app/views/helpers/view/global_view.phtml@@ -1,5 +1,6 @@<?php $this->partial ('nav_menu'); ?>+<?php if (!empty($this->entries)) { ?><div id="stream" class="global categories"><?php$arUrl = array('c' => 'index', 'a' => 'index', 'params' => array());@@ -43,3 +44,10 @@<div id="panel"<?php echo $this->conf->display_posts ? '' : ' class="hide_posts"'; ?>><a class="close" href="#"><?php echo FreshRSS_Themes::icon('close'); ?></a></div>++<?php } else { ?>+<div class="prompt alert alert-warn">+ <h2><?php echo _t('no_feed_to_display'); ?></h2>+ <a href="<?php echo _url('configure', 'feed'); ?>"><?php echo _t('think_to_add'); ?></a><br /><br />+</div>+<?php } ?>diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtmlindex 87bf2e22a..6659a9a6b 100644--- a/app/views/helpers/view/normal_view.phtml+++ b/app/views/helpers/view/normal_view.phtml@@ -183,8 +183,8 @@ if (!empty($this->entries)) {<?php $this->partial ('nav_entries'); ?><?php } else { ?>-<div id="stream" class="alert alert-warn normal">- <span class="alert-head"><?php echo Minz_Translate::t ('no_feed_to_display'); ?></span>- <?php echo Minz_Translate::t ('think_to_add'); ?>+<div class="prompt alert alert-warn">+ <h2><?php echo _t('no_feed_to_display'); ?></h2>+ <a href="<?php echo _url('configure', 'feed'); ?>"><?php echo _t('think_to_add'); ?></a><br /><br /></div><?php } ?>diff --git a/app/views/helpers/view/reader_view.phtml b/app/views/helpers/view/reader_view.phtmlindex 665f72849..832b27be4 100644--- a/app/views/helpers/view/reader_view.phtml+++ b/app/views/helpers/view/reader_view.phtml@@ -37,8 +37,8 @@ if (!empty($this->entries)) {</div><?php } else { ?>-<div id="stream" class="alert alert-warn reader">- <span class="alert-head"><?php echo Minz_Translate::t ('no_feed_to_display'); ?></span>- <?php echo Minz_Translate::t ('think_to_add'); ?>+<div class="prompt alert alert-warn">+ <h2><?php echo _t('no_feed_to_display'); ?></h2>+ <a href="<?php echo _url('configure', 'feed'); ?>"><?php echo _t('think_to_add'); ?></a><br /><br /></div><?php } ?>