diff options
| author | 2013-04-29 00:57:08 +0200 | |
|---|---|---|
| committer | 2013-04-29 00:57:08 +0200 | |
| commit | 9820345eec3958e9df1b1f8daaaa776de0d333e5 (patch) | |
| tree | e85c0890ca77be78c858e0c3f0e4721f779cb28f /app/views/index/index.phtml | |
| parent | 00bac232e0976a2ca09e7c4e73956cd802176480 (diff) | |
Revue de code pour la récupération des articles : ATTENTION GROS CHANGEMENTS, aucune garantie de stabilité et possibles régressions. La recherche dans le contenu des articles fonctionnent et possibilité de rechercher des tags
Diffstat (limited to 'app/views/index/index.phtml')
| -rw-r--r-- | app/views/index/index.phtml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml index c9be7169d..c39775fd7 100644 --- a/app/views/index/index.phtml +++ b/app/views/index/index.phtml @@ -10,8 +10,8 @@ if (Request::param ('output', '') == 'rss') { <?php $this->partial ('nav_menu'); ?> <?php -if (isset ($this->entryPaginator)) { - $items = $this->entryPaginator->items (true); +if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) { + $items = $this->entryPaginator->items (); ?> <div id="stream"> <?php @@ -111,13 +111,10 @@ if (isset ($this->entryPaginator)) { </div> <?php } ?> - <?php $this->entryPaginator->render ('pagination.phtml', 'page'); ?> + <?php $this->entryPaginator->render ('pagination.phtml', 'next'); ?> </div> <?php } else { ?> <div class="alert alert-warn"> <span class="alert-head"><?php echo Translate::t ('no_feed_to_display'); ?></span> - <?php if (Session::param ('mode', 'all') == 'not_read') { ?> - <a class="print_all" href="<?php echo _url ('index', 'changeMode', 'mode', 'all'); ?>"><?php echo Translate::t ('show_all_articles'); ?></a> - <?php } ?> </div> <?php } ?> |
