Skip to content

Commit

Permalink
jinja2/macros: Remove unused macro render_pagination_mobile
Browse files Browse the repository at this point in the history
Seems to be a left over from the seperate mobile view.
  • Loading branch information
chris34 committed Oct 10, 2024
1 parent c78908d commit f2a125b
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions jinja2/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
:copyright: (c) 2007-2024 by the Inyoka Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
#}

{#
render_form
===========
Expand Down Expand Up @@ -88,23 +89,6 @@
{% endmacro %}


{# Pagination macro for mobile #}
{% macro render_pagination_mobile(pagination, threshold=2) %}
{%- if pagination.first -%}
<a href="{{ pagination.first }}" class="prev first">«</a>
{%- endif -%}
{%- if pagination.prev -%}
<a href="{{ pagination.prev }}" class="prev">« {% trans %}Previous{% endtrans %}</a>
{%- endif -%}
<span class="active">{% trans %}Page{% endtrans %} {{ pagination.page }} / {{ pagination.pages }}</span>
{%- if pagination.next -%}
<a href="{{ pagination.next }}" class="next">{% trans %}Next{% endtrans %} »</a>
{%- endif -%}
{%- if pagination.last %}
<a href="{{ pagination.last }}" class="next last">»</a>
{%- endif -%}
{% endmacro %}

{% macro add_user_avatar(user, css_classes='avatar') %}
<img class="{{ css_classes }}"
src="{{ user.avatar_url|default(href('static', 'img', 'portal', 'usercp-profile.svg'), true)|e }}"
Expand Down

0 comments on commit f2a125b

Please sign in to comment.