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 %}
FOSS | +TUTORIAL | +MIN | +SEC | +QUESTION | +DATE | +VIEWS | +USER | {% for question in questions %} -
---|---|---|---|---|---|---|---|
+ + {{ question.category|truncatechars:15 }} + + + + | - - - - {{ question.tutorial}} - - ++ + {{ question.tutorial|truncatechars:15 }} + + + + | - - - - {{ question.minute_range }} min - - ++ + + {{ question.minute_range }} + + | - - - - {{ question.second_range }} sec - - ++ + + {{ question.second_range }} + - - | + ++ + {{ question.title|truncatechars:45 }} + + | - - {{ question.user }} - ++ + + {{ question.date_created|date:"y-d-m" }} + - - {% endfor %} + | ++ {{ question.views}} + | + ++ {{ question.user }} + | +