From 1541ab6a4ff28a6a0a4e37873367314e3b898dac Mon Sep 17 00:00:00 2001 From: Jayaram Pai Date: Sun, 22 Dec 2013 22:50:27 +0530 Subject: making forum in table format --- static/website/templates/index.html | 105 ++++++++++++++++++++++-------------- 1 file changed, 64 insertions(+), 41 deletions(-) (limited to 'static/website/templates/index.html') diff --git a/static/website/templates/index.html b/static/website/templates/index.html index ef840bc..cb5f3df 100644 --- a/static/website/templates/index.html +++ b/static/website/templates/index.html @@ -2,58 +2,75 @@ {% block content %} {% load count_tags %}

Recent Questions

+ + + + + + + + + {% for question in questions %} -
-
- {{ question.title }} -
-
- - - - {{ question.category }} - - +
+ - - - - {{ question.tutorial}} - - + - - - - {{ question.minute_range }} min - - + - - - - {{ question.second_range }} sec - - + + + - - {{ question.user }} - + + + + + + {% endfor %} +
FOSS TUTORIAL MIN SEC QUESTION DATEVIEWS USER
+ + {{ question.category|truncatechars:15 }} + + + + + + {{ question.tutorial|truncatechars:15 }} + + + + + + + {{ question.minute_range }} + + + + + {{ question.second_range }} + - - - - - {{ question.date_created }} - - + + + {{ question.title|truncatechars:45 }} + + + + + {{ question.date_created|date:"y-d-m" }} + - - {% endfor %} + + {{ question.views}} + + {{ question.user }} +
{% if total > 10 %}