Commit 3730cfdb authored by Jean Michel Rouly's avatar Jean Michel Rouly

Notify the user that they're sorting by comments.

parent 1faf2214
......@@ -26,6 +26,17 @@ Homepage
</div>
{% endif %}
{% if sort == "comments" %}
<div class="row">
<div class="col-lg-10 col-lg-offset-1">
<div class="alert alert-dismissable alert-info text-center">
<button type="button" class="close" data-dismiss="alert">&times;</button>
Sorting questions with fewest comments first.
</div>
</div>
</div>
{% endif %}
{% if questions %}
<form method="post">
{% csrf_token %}
......
......@@ -75,6 +75,7 @@ def index(request, *args, **kwargs):
return render(request, 'index.html', {
'filter' : section,
'sort' : sort,
'questions' : questions,
'page_range' : range(1, int(questions.paginator.num_pages)+1),
},
......
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