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:
parent
3eb049036e
commit
7f9f5281e5
3 changed files with 29 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue