Commit 5ec40258 authored by Jean Michel Rouly's avatar Jean Michel Rouly

Updated links to allow stacking of filters

parent 36184299
......@@ -27,13 +27,21 @@ Homepage
</div>
<div class="col-sm-4">
<a href="{% url 'sort_by_date' %}">
{% if filter %}
<a href="{% url 'filter' section=filter sort='date' %}">
{% else %}
<a href="{% url 'sort' sort='date' %}">
{% endif %}
Sort by Date
</a>
</div>
<div class="col-sm-4">
<a href="{% url 'sort_by_comments' %}">
{% if filter %}
<a href="{% url 'filter' section=filter sort='comments' %}">
{% else %}
<a href="{% url 'sort' sort='comments' %}">
{% endif %}
Sort by Comments
</a>
</div>
......
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