summaryrefslogtreecommitdiff
path: root/static/website/templates
diff options
context:
space:
mode:
Diffstat (limited to 'static/website/templates')
-rw-r--r--static/website/templates/filter.html9
-rw-r--r--static/website/templates/new-question.html7
2 files changed, 7 insertions, 9 deletions
diff --git a/static/website/templates/filter.html b/static/website/templates/filter.html
index f04f226..c64f68c 100644
--- a/static/website/templates/filter.html
+++ b/static/website/templates/filter.html
@@ -5,7 +5,11 @@
{% if questions %}
<h5>
These are the similar questions in:
- {% if category %}
+
+
+
+ {% for category in categories %}
+ {% if category %}
{{ category }}
{% endif %}
{% if tutorial %}
@@ -20,7 +24,8 @@
<b> &gt; </b>
{{ second_range }} sec
{% endif %}
- <a class="btn btn-xs btn-success pull-right" href="{% url 'website:new_question' %}?category={{ category|urlencode }}">Ask a new question.</a>
+ <a class="btn btn-xs btn-success pull-right" href="{% url 'website:new_question' %}?category={{ category.id |urlencode }}">Ask a new question.</a>
+ {% endfor %}
</h5>
<br>
<div class="clearfix"></div>
diff --git a/static/website/templates/new-question.html b/static/website/templates/new-question.html
index af0e34b..cbc6063 100644
--- a/static/website/templates/new-question.html
+++ b/static/website/templates/new-question.html
@@ -19,13 +19,6 @@
{% render_field form.category class+="form-control category"%}
</div>
- <!--<div class="col-lg-3 col-md-3 col-sm-3">
- {% if category %}
- {% render_field form.tutorial class+="form-control" %}
- {% else %}
- {% render_field form.tutorial class+="form-control" %}
- {% endif %}
- </div>-->
<div class="col-lg-2 col-md-2 col-sm-2">
<small><strong>
<a id="similar-link" data-toggle="modal" data-target="#similarModal" href="#">