[IMP] website: show searched pages count on website pages
in this commit, when activated 'Show # found' option in Customize menu, the count of searched records for the manage your pages, event, and form page displayed on the search button(#found). task-2115526 closes odoo/odoo#40121 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
committed by
Jeremy Kersten
parent
96fdf12ff1
commit
6f9a2ca2fb
@@ -335,6 +335,7 @@ class Website(Home):
|
||||
'search': search,
|
||||
'sortby': sortby,
|
||||
'searchbar_sortings': searchbar_sortings,
|
||||
'search_count': pages_count,
|
||||
}
|
||||
return request.render("website.list_website_pages", values)
|
||||
|
||||
|
||||
@@ -158,6 +158,7 @@ class WebsiteEventController(http.Controller):
|
||||
'searches': searches,
|
||||
'search_tags': search_tags,
|
||||
'keep': keep,
|
||||
'search_count': event_count,
|
||||
}
|
||||
|
||||
if searches['date'] == 'old':
|
||||
|
||||
@@ -157,6 +157,7 @@ class WebsiteForum(WebsiteProfile):
|
||||
'edit_in_backend': not tag,
|
||||
'question_ids': question_ids,
|
||||
'question_count': question_count,
|
||||
'search_count': question_count,
|
||||
'pager': pager,
|
||||
'tag': tag,
|
||||
'filters': filters,
|
||||
|
||||
Reference in New Issue
Block a user