Commit 51236920 authored by Andreas Heimann's avatar Andreas Heimann

fixed discovery pages next/previous

parent ee89dd3a
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
{% else %} {% else %}
<a class="button button-disabled"><i class="mdi mdi-chevron-left"></i> PREVIOUS</a> <a class="button button-disabled"><i class="mdi mdi-chevron-left"></i> PREVIOUS</a>
{% endif %} {% endif %}
{% if hotMonthSongs|length < 12 %} {% if hotMonthSongs|length < 10 %}
<a class="button button-disabled">NEXT <i class="mdi mdi-chevron-right"></i></a> <a class="button button-disabled">NEXT <i class="mdi mdi-chevron-right"></i></a>
{% else %} {% else %}
<a href="{{ path('index.hot', {hotMonthOffset: hotMonthOffset + 1}) }}" class="button">NEXT <i class="mdi mdi-chevron-right"></i></a> <a href="{{ path('index.hot', {hotMonthOffset: hotMonthOffset + 1}) }}" class="button">NEXT <i class="mdi mdi-chevron-right"></i></a>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
{% else %} {% else %}
<a class="button button-disabled"><i class="mdi mdi-chevron-left"></i> PREVIOUS</a> <a class="button button-disabled"><i class="mdi mdi-chevron-left"></i> PREVIOUS</a>
{% endif %} {% endif %}
{% if hotWeekSongs|length < 12 %} {% if hotWeekSongs|length < 10 %}
<a class="button button-disabled">NEXT <i class="mdi mdi-chevron-right"></i></a> <a class="button button-disabled">NEXT <i class="mdi mdi-chevron-right"></i></a>
{% else %} {% else %}
<a href="{{ path('index.hot', {hotWeekOffset: hotWeekOffset + 1}) }}" class="button">NEXT <i class="mdi mdi-chevron-right"></i></a> <a href="{{ path('index.hot', {hotWeekOffset: hotWeekOffset + 1}) }}" class="button">NEXT <i class="mdi mdi-chevron-right"></i></a>
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
{% else %} {% else %}
<a class="button button-disabled"><i class="mdi mdi-chevron-left"></i> PREVIOUS</a> <a class="button button-disabled"><i class="mdi mdi-chevron-left"></i> PREVIOUS</a>
{% endif %} {% endif %}
{% if newSongs|length < 12 %} {% if newSongs|length < 10 %}
<a class="button button-disabled">NEXT <i class="mdi mdi-chevron-right"></i></a> <a class="button button-disabled">NEXT <i class="mdi mdi-chevron-right"></i></a>
{% else %} {% else %}
<a href="{{ path('index.new', {newOffset: newOffset + 1}) }}" class="button">NEXT <i class="mdi mdi-chevron-right"></i></a> <a href="{{ path('index.new', {newOffset: newOffset + 1}) }}" class="button">NEXT <i class="mdi mdi-chevron-right"></i></a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment