Fixed mobile pagination
This commit is contained in:
parent
0ad921adfd
commit
a7980c9caa
2 changed files with 2 additions and 2 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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)
|
||||
|
|
Reference in a new issue