[Frontend]: fix macro
This commit is contained in:
parent
97ca52e77a
commit
5a09d53053
@ -104,17 +104,18 @@
|
|||||||
{% set parameters_dictionary = parameters_dictionary.to_dict() %}
|
{% set parameters_dictionary = parameters_dictionary.to_dict() %}
|
||||||
|
|
||||||
{% if current_page != 1 %}
|
{% if current_page != 1 %}
|
||||||
{% set _ = parameters_dictionary.__setitem__('page', current_page - 1) %}
|
{% set _ = parameters_dictionary.__setitem__('page', current_page - 1) %}
|
||||||
<a class="page-link previous-page" href="{{ url + '?' + parameters_dictionary|urlencode }}">Previous page</a>
|
<a class="page-link previous-page" href="{{ url + '?' + parameters_dictionary|urlencode }}">Previous page</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not is_last_page %}
|
{% if not is_last_page %}
|
||||||
{% set _ = parameters_dictionary.__setitem__('page', current_page + 1) %}
|
{% set _ = parameters_dictionary.__setitem__('page', current_page + 1) %}
|
||||||
<a class="page-link next-page" href="{{ url + '?' + parameters_dictionary|urlencode }}">Next page</a>
|
<a class="page-link next-page" href="{{ url + '?' + parameters_dictionary|urlencode }}">Next page</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro next_previous_ctoken_buttons(prev_ctoken, next_ctoken, url, parameters_dictionary) %}
|
{% macro next_previous_ctoken_buttons(prev_ctoken, next_ctoken, url, parameters_dictionary) %}
|
||||||
{% set parameters_dictionary = parameters_dictionary.to_dict() %}
|
{% set parameters_dictionary = parameters_dictionary.to_dict() %}
|
||||||
|
|
||||||
{% if prev_ctoken %}
|
{% if prev_ctoken %}
|
||||||
{% set _ = parameters_dictionary.__setitem__('ctoken', prev_ctoken) %}
|
{% set _ = parameters_dictionary.__setitem__('ctoken', prev_ctoken) %}
|
||||||
@ -125,5 +126,4 @@
|
|||||||
{% set _ = parameters_dictionary.__setitem__('ctoken', next_ctoken) %}
|
{% set _ = parameters_dictionary.__setitem__('ctoken', next_ctoken) %}
|
||||||
<a class="page-link next-page" href="{{ url + '?' + parameters_dictionary|urlencode }}">Next page</a>
|
<a class="page-link next-page" href="{{ url + '?' + parameters_dictionary|urlencode }}">Next page</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user