[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:
Simran Gajsinghani
2020-12-17 10:25:28 +00:00
committed by Jeremy Kersten
parent 96fdf12ff1
commit 6f9a2ca2fb
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -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)
+1
View File
@@ -158,6 +158,7 @@ class WebsiteEventController(http.Controller):
'searches': searches,
'search_tags': search_tags,
'keep': keep,
'search_count': event_count,
}
if searches['date'] == 'old':
+1
View File
@@ -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,