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

Updated links to allow stacking of filters

parent 36184299
...@@ -27,13 +27,21 @@ Homepage ...@@ -27,13 +27,21 @@ Homepage
</div> </div>
<div class="col-sm-4"> <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 Sort by Date
</a> </a>
</div> </div>
<div class="col-sm-4"> <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 Sort by Comments
</a> </a>
</div> </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