Fixed mobile pagination

This commit is contained in:
Nathan Dinsmore 2014-02-16 17:18:38 -05:00
parent 0ad921adfd
commit a7980c9caa
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
{% load i18n %}
{% if is_paginated %}<ul class=pagination>
{% for p in pages %}
{% if p %}<li><a {% ifequal page_obj.number forloop.counter %}class=current{% else %}href="?{{ get_params }}page={{ p }}"{% endifequal %}><span>{{ p }}</span></a>{% else %}<li class=ellipsis>…{% endif %}{% endfor %}
{% if p %}<li><a {% ifequal page_obj.number p %}class=current{% else %}href="?{{ get_params }}page={{ p }}"{% endifequal %}><span>{{ p }}</span></a>{% else %}<li class=ellipsis>…{% endif %}{% endfor %}
</ul>{% endif %}

View file

@ -289,7 +289,7 @@ def set_theme_style(user):
static_url=settings.STATIC_URL,
theme=selected_theme
)
@register.filter
def dict_lookup(dictionary, key):
return dictionary.get(key)