A free, self-hostable news aggregator…
Reader view comes back!
Marien Fressinaud0d6993fe08cf
diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.phpindex ed5b58b45..8bc23fb70 100755--- a/app/Controllers/indexController.php+++ b/app/Controllers/indexController.php@@ -69,6 +69,15 @@ class FreshRSS_index_Controller extends Minz_ActionController {Minz_View::prependTitle($title . ' · ');}+ /**+ * This action displays the reader view of FreshRSS.+ *+ * @todo: change this view into specific CSS rules?+ */+ public function readerAction() {+ $this->normalAction();+ }+/*** This action displays the global view of FreshRSS.*/diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtmlindex 6f555c3d0..075f84ca6 100644--- a/app/layout/nav_menu.phtml+++ b/app/layout/nav_menu.phtml@@ -133,6 +133,11 @@<?php echo _i("view-normal"); ?></a>+ <?php $url_output['a'] = 'reader'; ?>+ <a class="view_reader btn <?php echo $actual_view == 'reader'? 'active' : ''; ?>" title="<?php echo _t('global_view'); ?>" href="<?php echo Minz_Url::display($url_output); ?>">+ <?php echo _i("view-reader"); ?>+ </a>+<?php $url_output['a'] = 'global'; ?><a class="view_global btn <?php echo $actual_view == 'global'? 'active' : ''; ?>" title="<?php echo _t('global_view'); ?>" href="<?php echo Minz_Url::display($url_output); ?>"><?php echo _i("view-global"); ?>diff --git a/app/views/helpers/view/reader_view.phtml b/app/views/index/reader.phtmlsimilarity index 90%rename from app/views/helpers/view/reader_view.phtmlrename to app/views/index/reader.phtmlindex 821a50f7f..f07868488 100644--- a/app/views/helpers/view/reader_view.phtml+++ b/app/views/index/reader.phtml@@ -13,7 +13,7 @@ if (!empty($this->entries)) {<div class="flux_content"><div class="content <?php echo $content_width; ?>"><?php- $feed = FreshRSS_CategoryDAO::findFeed($this->cat_aside, $item->feed()); //We most likely already have the feed object in cache+ $feed = FreshRSS_CategoryDAO::findFeed($this->categories, $item->feed()); //We most likely already have the feed object in cacheif (empty($feed)) $feed = $item->feed(true);?><a href="<?php echo $item->link(); ?>">