diff options
author | Jesús <heckyel@hyperbola.info> | 2021-08-14 13:50:40 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-08-14 13:50:40 -0500 |
commit | 5a09d530539b45cd628ee6eb350ae63a4e10f199 (patch) | |
tree | e6839a1b1e699bb94f0dd2519873162e265af634 | |
parent | 97ca52e77a42b8117732e7ffc16f2c44984ae304 (diff) | |
download | yt-local-5a09d530539b45cd628ee6eb350ae63a4e10f199.tar.lz yt-local-5a09d530539b45cd628ee6eb350ae63a4e10f199.tar.xz yt-local-5a09d530539b45cd628ee6eb350ae63a4e10f199.zip |
[Frontend]: fix macro
-rw-r--r-- | youtube/templates/common_elements.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/youtube/templates/common_elements.html b/youtube/templates/common_elements.html index 94554d4..808a835 100644 --- a/youtube/templates/common_elements.html +++ b/youtube/templates/common_elements.html @@ -104,17 +104,18 @@ {% set parameters_dictionary = parameters_dictionary.to_dict() %} {% if 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> + {% set _ = parameters_dictionary.__setitem__('page', current_page - 1) %} + <a class="page-link previous-page" href="{{ url + '?' + parameters_dictionary|urlencode }}">Previous page</a> {% endif %} {% if not is_last_page %} - {% set _ = parameters_dictionary.__setitem__('page', current_page + 1) %} - <a class="page-link next-page" href="{{ url + '?' + parameters_dictionary|urlencode }}">Next page</a> + {% set _ = parameters_dictionary.__setitem__('page', current_page + 1) %} + <a class="page-link next-page" href="{{ url + '?' + parameters_dictionary|urlencode }}">Next page</a> {% endif %} +{% endmacro %} - {% macro next_previous_ctoken_buttons(prev_ctoken, next_ctoken, url, parameters_dictionary) %} - {% set parameters_dictionary = parameters_dictionary.to_dict() %} +{% macro next_previous_ctoken_buttons(prev_ctoken, next_ctoken, url, parameters_dictionary) %} + {% set parameters_dictionary = parameters_dictionary.to_dict() %} {% if prev_ctoken %} {% set _ = parameters_dictionary.__setitem__('ctoken', prev_ctoken) %} @@ -125,5 +126,4 @@ {% set _ = parameters_dictionary.__setitem__('ctoken', next_ctoken) %} <a class="page-link next-page" href="{{ url + '?' + parameters_dictionary|urlencode }}">Next page</a> {% endif %} - {% endmacro %} {% endmacro %} |