]> git.parisson.com Git - telemeta.git/commitdiff
fix search list count
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 12 Feb 2015 16:54:08 +0000 (17:54 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 12 Feb 2015 16:54:08 +0000 (17:54 +0100)
telemeta/templates/telemeta/search_results.html
telemeta/views/home.py

index e5552b8ace85da838c3f7072a3d49608bc014a5e..7289824a241b6777507b3ef5e4ce3c4d98f72fd9 100644 (file)
@@ -8,7 +8,7 @@
 {% block title %}
 <div class='row'>
 <div class="col-md-5">
-  <img src="{{ STATIC_URL }}telemeta/images/search_red.png" alt="search-results" style="vertical-align:middle" /> {% trans "Search Results" %} ({{ page_obj.start_index }} - {{ page_obj.end_index }} / {{ object_list.count }})
+  <img src="{{ STATIC_URL }}telemeta/images/search_red.png" alt="search-results" style="vertical-align:middle" /> {% trans "Search Results" %} ({{ page_obj.start_index }} - {{ page_obj.end_index }} / {{ count }})
 </div>
 <div class="col-md-7">
 {% bootstrap_paginate page_obj range=10 show_first_last="True" %}
index 2a63cbfae77f672e43bc70c020c611bfe4dca039..e5f3008cbd44d611da6a7d809d82e5391b402035 100644 (file)
@@ -414,4 +414,5 @@ class SearchView(ListView):
         context['corpus_num']  = self.corpus.count()
         context['fonds_num'] = self.fonds.count()
         context['type'] = self.type
+        context['count'] = self.object_list.count()
         return context