diff options
author | Jayaram Pai | 2013-12-04 00:00:26 +0530 |
---|---|---|
committer | Jayaram Pai | 2013-12-04 00:00:26 +0530 |
commit | 57eedfbebc481aab4040ecda57d23eabf828733f (patch) | |
tree | 1fafa0751ed42d9ca25a68995b7b9d330424d68b /static/website/templates/index.html | |
parent | 5e3c305f49becd0db41f63bc1c69b1a72c3119ea (diff) | |
download | spoken-tutorial-forums-57eedfbebc481aab4040ecda57d23eabf828733f.tar.gz spoken-tutorial-forums-57eedfbebc481aab4040ecda57d23eabf828733f.tar.bz2 spoken-tutorial-forums-57eedfbebc481aab4040ecda57d23eabf828733f.zip |
basic filter and ajax-loader
Diffstat (limited to 'static/website/templates/index.html')
-rw-r--r-- | static/website/templates/index.html | 30 |
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 %} |