summaryrefslogtreecommitdiff
path: root/static/website/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/website/templates/index.html')
-rw-r--r--static/website/templates/index.html30
1 files changed, 23 insertions, 7 deletions
diff --git a/static/website/templates/index.html b/static/website/templates/index.html
index c54b637..ddc9078 100644
--- a/static/website/templates/index.html
+++ b/static/website/templates/index.html
@@ -4,24 +4,40 @@
{% for question in questions %}
<div class="question">
<div class="title">
- <a href="">{{ question.title }}</a>
+ <a href="{% url 'website:get_question' question.id %}">{{ question.title }}</a>
</div>
-
+ <br>
<span class="category">
- <small>{{ question.category }}</small>
+ <small>
+ <a href="{% url 'website:filter' question.category %}?qid={{ question.id }}">
+ {{ question.category }}
+ </a>
+ </small>
</span>
<span class="tutorial">
- <small>{{ question.tutorial}}</small>
+ <small>
+ <a href="{% url 'website:filter' question.category question.tutorial %}?qid={{ question.id }}">
+ {{ question.tutorial}}
+ </a>
+ </small>
</span>
<span class="minute_range">
- <small>{{ question.minute_range }} min</small>
+ <small>
+ <a href="{% url 'website:filter' question.category question.tutorial question.minute_range %}?qid={{ question.id }}">
+ {{ question.minute_range }} min
+ </a>
+ </small>
</span>
<span class="second_range">
- <small>{{ question.second_range }} sec</small>
+ <small>
+ <a href="{% url 'website:filter' question.category question.tutorial question.minute_range question.second_range%}?qid={{ question.id }}">
+ {{ question.second_range }} sec
+ </a>
+ </small>
</span>
- </div>
+ </div> <!-- /.question -->
{% endfor %}
{% endblock %}