1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-26 18:21:02 +00:00

Add number of results next to pager

This commit is contained in:
NumEricR 2013-08-28 19:12:11 +02:00
parent 3eb049036e
commit 7f9f5281e5
3 changed files with 29 additions and 5 deletions

View file

@ -262,6 +262,7 @@ class Poche
$tpl_vars = array(
'entries' => '',
'page_links' => '',
'nb_results' => '',
);
if (count($entries) > 0) {
$this->pagination->set_total(count($entries));
@ -269,6 +270,7 @@ class Poche
$datas = $this->store->getEntriesByView($view, $this->user->getId(), $this->pagination->get_limit());
$tpl_vars['entries'] = $datas;
$tpl_vars['page_links'] = $page_links;
$tpl_vars['nb_results'] = count($entries);
}
Tools::logm('display ' . $view . ' view');
break;