Commit f1ee3a91 authored by SeeBeyond's avatar SeeBeyond

Fix mis-matched navigation buttons

parent 56346ee1
......@@ -9,15 +9,15 @@
</div>
<div class="pagination">
{% if hotMonthOffset > 0 %}
<a href="{{ path('index.hotThisWeek', {hotMonthOffset: hotMonthOffset - 1}) }}" class="button"><i class="mdi mdi-chevron-left"></i> PREVIOUS</a>
<a href="{{ path('index.hotThisMonth', {hotMonthOffset: hotMonthOffset - 1}) }}" class="button"><i class="mdi mdi-chevron-left"></i> PREVIOUS</a>
{% else %}
<a class="button button-disabled"><i class="mdi mdi-chevron-left"></i> PREVIOUS</a>
{% endif %}
{% if hotMonthSongs|length < 10 %}
<a class="button button-disabled">NEXT <i class="mdi mdi-chevron-right"></i></a>
{% else %}
<a href="{{ path('index.hotThisWeek', {hotMonthOffset: hotMonthOffset + 1}) }}" class="button">NEXT <i class="mdi mdi-chevron-right"></i></a>
<a href="{{ path('index.hotThisMonth', {hotMonthOffset: hotMonthOffset + 1}) }}" class="button">NEXT <i class="mdi mdi-chevron-right"></i></a>
{% endif %}
</div>
</div>
{% endblock %}
\ No newline at end of file
{% endblock %}
......@@ -9,15 +9,15 @@
</div>
<div class="pagination">
{% if hotWeekOffset > 0 %}
<a href="{{ path('index.hotThisMonth', {hotWeekOffset: hotWeekOffset - 1}) }}" class="button"><i class="mdi mdi-chevron-left"></i> PREVIOUS</a>
<a href="{{ path('index.hotThisWeek', {hotWeekOffset: hotWeekOffset - 1}) }}" class="button"><i class="mdi mdi-chevron-left"></i> PREVIOUS</a>
{% else %}
<a class="button button-disabled"><i class="mdi mdi-chevron-left"></i> PREVIOUS</a>
{% endif %}
{% if hotWeekSongs|length < 10 %}
<a class="button button-disabled">NEXT <i class="mdi mdi-chevron-right"></i></a>
{% else %}
<a href="{{ path('index.hotThisMonth', {hotWeekOffset: hotWeekOffset + 1}) }}" class="button">NEXT <i class="mdi mdi-chevron-right"></i></a>
<a href="{{ path('index.hotThisWeek', {hotWeekOffset: hotWeekOffset + 1}) }}" class="button">NEXT <i class="mdi mdi-chevron-right"></i></a>
{% endif %}
</div>
</div>
{% endblock %}
\ No newline at end of file
{% endblock %}
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