Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #294 from sammybahamas/groupsearch

[fix bug 780734] Search results are responsive again
  • Loading branch information...
commit 92df24dc01d568795925f55fca8f69254d2c22df 2 parents ce0f20c + 00bba48
Aakash Desai aakashhdesai authored
Showing with 20 additions and 21 deletions.
  1. +20 −21 apps/phonebook/templates/phonebook/search.html
41 apps/phonebook/templates/phonebook/search.html
View
@@ -71,11 +71,25 @@
{% endif %}
{% if people %}
<h2>{{ _('Mozillians') }}</h2>
- <div class="row">
- {% for person in people %}
- {{ search_result(person) }}
- {% endfor %}
- </div>
+ <div class="row">
+ {% for person in people %}
+ {{ search_result(person) }}
+ {% endfor %}
+ {% if show_pagination %}
+ <div data-pages={{ num_pages }} class="pagination">
+ {% for page in people.paginator.page_range %}
+ {% if page == people.number %}
+ <span>{{ page }}</span>
+ {% else %}
+ <a href="{{ url('search')|urlparams(q=form.cleaned_data.q, page=page, limit=limit) }}">{{ page }}</a>
+ {% endif %}
+ {% endfor %}
+ </div>
+ <div id="final-result">
+ <span>Showing all {{ people.paginator.count }} results.</span>
+ </div>
+ {% endif %}
+ </div>
{% endif %}
{% if not people and not groups %}
<div class="well">
@@ -84,7 +98,7 @@
Sorry, we cannot find a group or person with "{{ query }}" in their names.
</p>
<p>
- Maybe they're not a Mozillian yet?
+ Maybe they're not a Mozillian yet?
<a href="{{ invite }}">Invite this person</a> to create a profile.
</p>
{% endtrans %}
@@ -106,20 +120,5 @@
{% endif %}
</div>
{% endif %}
-
- {% if show_pagination %}
- <div data-pages={{ num_pages }} class="pagination">
- {% for page in people.paginator.page_range %}
- {% if page == people.number %}
- <span>{{ page }}</span>
- {% else %}
- <a href="{{ url('search')|urlparams(q=form.cleaned_data.q, page=page, limit=limit) }}">{{ page }}</a>
- {% endif %}
- {% endfor %}
- </div>
- <div id="final-result">
- <span>Showing all {{ people.paginator.count }} results.</span>
- </div>
- {% endif %}
{% endif %}
{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.