From 3c4c71fc19865bfb75231c425fae31c6b2c211de Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Tue, 9 Feb 2010 16:48:38 -0500 Subject: started working towards skinning forum app - first step - move templates to app --- forum/templates/index.html | 164 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 164 insertions(+) create mode 100644 forum/templates/index.html (limited to 'forum/templates/index.html') diff --git a/forum/templates/index.html b/forum/templates/index.html new file mode 100644 index 00000000..4041b863 --- /dev/null +++ b/forum/templates/index.html @@ -0,0 +1,164 @@ +{% extends "base.html" %} + +{% load i18n %} +{% load extra_tags %} +{% load humanize %} +{% load extra_filters %} +{% load smart_if %} +{% block title %}{% spaceless %}{% trans "Home" %}{% endspaceless %}{% endblock %} +{% block meta %} + {% endblock %} +{% block forejs %} + + + +{% endblock %} +{% block content %} +
+
{% trans "Questions" %}
+ +
+ +
+ {% for question in questions %} +
+

+ {{ question.get_question_title }} +

+
+ + + + + + + + + + + +
{{ question.answer_count|intcomma }} {{ question.score|intcomma }} {{ question.view_count|cnprog_intword|safe }}
{% trans "answers" %}{% trans "votes" %}{% trans "views" %}
+
+ +
+ {{ question.summary }}... +
+ + {% ifequal tab_id 'active'%} + {% if question.wiki and settings.WIKI_ON %} + {% trans "community wiki" %} + {% diff_date question.added_at %} + {% else %} +
+ {% comment %}{% gravatar question.last_activity_by 24 %}{% endcomment %} + {{ question.last_activity_by }} + {% get_score_badge question.last_activity_by %} + {% diff_date question.last_activity_at %} +
+ {% endif %} + {% else %} + {% if question.wiki and settings.WIKI_ON %} + {% trans "community wiki" %} + {% diff_date question.added_at %} + {% else %} +
+ {% comment %}{% gravatar question.author 24 %}{% endcomment %} + {% if question.last_activity_at != question.added_at %} + {% if question.author.id != question.last_activity_by.id %} + {% trans "Posted:" %} + {{ question.author }} + {% get_score_badge question.author %} + / {% trans "Updated:" %} + {{ question.last_activity_by }} + {% get_score_badge question.last_activity_by %} + {% diff_date question.last_activity_at %} + {% else %} + {% trans "Updated:" %} + {{ question.last_activity_by }} + {% get_score_badge question.last_activity_by %} + {% diff_date question.last_activity_at %} + {% endif %} + {% else %} + {% trans "Posted:" %} + {{ question.author }} + {% get_score_badge question.author %} + {% diff_date question.added_at %} + {% endif %} +
+ {% endif %} + {% endifequal %} + +
+ {% for tag in question.tagname_list %} + + {% endfor %} +
+
+ {% endfor %} +
+{% endblock %} + +{% block sidebar %} +{% if not request.user.is_authenticated %} +
+

{% trans "welcome to website" %}

+
+ {{ settings.APP_INTRO|safe }} + + +
+
+{% else %} +{% include "tag_selector.html" %} +{% endif %} +
+

{% trans "Recent tags" %}

+
+
+ {% for tag in tags %} + + {% endfor %} +
+ +
+
+{% if awards %} +
+

{% trans "Recent awards" %}

+
+ + +
+
+{% endif %} +
+{% trans "subscribe to the questions feed" %} +
+{% endblock %} +{% block tail %} +
+{% trans "Still looking for more? See" %} {% trans "complete list of questions" %} {% trans "or" %} {% trans "popular tags" %}{% trans "." %} {% trans "Please help us answer" %} {% trans "list of unanswered questions" %}{% trans "." %} +
+{% endblock %} + -- cgit v1.2.3-1-g7c22