Commit 970334e292a4f69905c4c57fa87fd7dee617ab54

Authored by Jailson Dias
2 parents 8a2587b5 3a98b969

Merge branch 'dev' of https://github.com/amadeusproject/amadeuslms into dev

users/templates/users/search.html
... ... @@ -12,8 +12,7 @@
12 12  
13 13 {% block breadcrumbs %}
14 14 {{ block.super }}
15   - {% breadcrumb 'Search' 'users:search' %}
16   -
  15 + {% breadcrumb search 'users:search' %}
17 16 {% endblock %}
18 17  
19 18  
... ...
users/views.py
... ... @@ -261,13 +261,14 @@ class SearchView(LoginRequiredMixin, generic.ListView):
261 261 forum_list = Forum.objects.filter(Q(name__icontains=search)and Q(students__name = self.request.user.name)).order_by('name')
262 262 qtd = len(link_list) + len(file_list) + len(poll_list) + len(exam_list) + len(forum_list)
263 263  
264   -
  264 + translated = _('You searched for... ')
265 265 context['link_list'] = link_list
266 266 context['file_list'] = file_list
267 267 context['poll_list'] = poll_list
268 268 context['exam_list'] = exam_list
269 269 context['forum_list'] = forum_list
270 270 context['qtd'] = qtd
  271 + context['search'] = translated + search
271 272  
272 273 return context
273 274  
... ...