diff options
author | Jayaram Pai | 2013-12-01 20:50:56 +0530 |
---|---|---|
committer | Jayaram Pai | 2013-12-01 20:50:56 +0530 |
commit | 5e3c305f49becd0db41f63bc1c69b1a72c3119ea (patch) | |
tree | 572d50d199ce07073695c3eb2e2344b92e72bf2c /static/website/templates | |
parent | 8533d61eb93ecb4c943ec3c3b83dfef87b20a916 (diff) | |
download | FOSSEE-Forum-5e3c305f49becd0db41f63bc1c69b1a72c3119ea.tar.gz FOSSEE-Forum-5e3c305f49becd0db41f63bc1c69b1a72c3119ea.tar.bz2 FOSSEE-Forum-5e3c305f49becd0db41f63bc1c69b1a72c3119ea.zip |
basic filter structure, recent question display
Diffstat (limited to 'static/website/templates')
-rw-r--r-- | static/website/templates/ajax-duration.html | 2 | ||||
-rw-r--r-- | static/website/templates/index.html | 41 |
2 files changed, 25 insertions, 18 deletions
diff --git a/static/website/templates/ajax-duration.html b/static/website/templates/ajax-duration.html index f89927b..22fe04f 100644 --- a/static/website/templates/ajax-duration.html +++ b/static/website/templates/ajax-duration.html @@ -10,7 +10,7 @@ <div id="seconds"> <option value="None">sec</option> {% for i in seconds|get_range:"0,10" %} - <option value="{{ i }}">{{ i }}-{{ i|add:"10" }} </option> + <option value="{{ i }}-{{ i|add:"10" }}">{{ i }}-{{ i|add:"10" }}</option> {% endfor %} </div> <!-- /#seconds --> </div> <!-- /required for ajax --> diff --git a/static/website/templates/index.html b/static/website/templates/index.html index 471fb48..c54b637 100644 --- a/static/website/templates/index.html +++ b/static/website/templates/index.html @@ -1,20 +1,27 @@ {% extends 'website/templates/base.html' %} {% block content %} -{% for category in categories %} - <div class="category col-lg-4"> - <a href="{% url 'website:fetch_tutorials' category %}">{{ category }}</a> - <br> - {% load count_tags %} - <span class="questions"> - {% category_question_count category %} questions, - </span> - <span class="replies"> - {% category_question_count category %} replies - </span> - <span class="helper"> - A - </span> - </div> -{% endfor %} -<div class="clear"></div> +<h4>Recent Questions</h4> + {% for question in questions %} + <div class="question"> + <div class="title"> + <a href="">{{ question.title }}</a> + </div> + + <span class="category"> + <small>{{ question.category }}</small> + </span> + + <span class="tutorial"> + <small>{{ question.tutorial}}</small> + </span> + + <span class="minute_range"> + <small>{{ question.minute_range }} min</small> + </span> + + <span class="second_range"> + <small>{{ question.second_range }} sec</small> + </span> + </div> + {% endfor %} {% endblock %} |