Skip to content

Commit

Permalink
Merge pull request #32 from benbacardi/fix-pagination
Browse files Browse the repository at this point in the history
Fix broken pagination - derp
  • Loading branch information
benbacardi committed Jul 26, 2016
2 parents 6f2ce44 + c58ba8a commit ab52eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuit/templates/nuit/includes/_pagination_menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ul class='pagination'>
<li class='arrow{% if not page_obj.has_previous %} unavailable{% endif %}'><a href='{% if page_obj.has_previous %}?{% query_transform context.request page=page_obj.previous_page_number %}{% endif %}'>&laquo;</a></li>
{% for page in page_list %}
<li class='{% if page == page_obj.number %}current unavailable{% endif %}{% if not page %} unavailable{% endif %}'><a href='{% if page %}?{% query_transform context.request page=page_obj.number %}{% endif %}'>{{page|default:'&hellip;'}}</a></li>
<li class='{% if page == page_obj.number %}current unavailable{% endif %}{% if not page %} unavailable{% endif %}'><a href='{% if page %}?{% query_transform context.request page=page %}{% endif %}'>{{page|default:'&hellip;'}}</a></li>
{% endfor %}
<li class='arrow{% if not page_obj.has_next %} unavailable{% endif %}'><a href='{% if page_obj.has_next %}?{% query_transform context.request page=page_obj.next_page_number %}{% endif %}'>&raquo;</a></li>
{% if show_totals %}<li class='unavailable'><a href=''>{{page_obj.start_index}} to {{page_obj.end_index}} of {{page_obj.paginator.count}}</a></li>{% endif %}
Expand Down

0 comments on commit ab52eae

Please sign in to comment.