Add no results help text for the search results view.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -21,6 +21,11 @@ class ResultsView(SearchModelMixin, SingleObjectListView):
|
|||||||
context = {
|
context = {
|
||||||
'hide_links': True,
|
'hide_links': True,
|
||||||
'list_as_items': True,
|
'list_as_items': True,
|
||||||
|
'no_results_icon': icon_search_submit,
|
||||||
|
'no_results_text': _(
|
||||||
|
'Try again using different terms. '
|
||||||
|
),
|
||||||
|
'no_results_title': _('No search results'),
|
||||||
'search_model': self.search_model,
|
'search_model': self.search_model,
|
||||||
'search_results_limit': setting_limit.value,
|
'search_results_limit': setting_limit.value,
|
||||||
'title': _('Search results for: %s') % self.search_model.label,
|
'title': _('Search results for: %s') % self.search_model.label,
|
||||||
|
|||||||
Reference in New Issue
Block a user