From 2acb62174ab2cac9c7a88faafcb5f0a22a54db6f Mon Sep 17 00:00:00 2001 From: Mike Chen Date: Sun, 5 Jul 2009 10:23:06 +0800 Subject: initiliaze git rep --- templates/index.html | 121 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 templates/index.html (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 00000000..bc159ca9 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,121 @@ +{% extends "base.html" %} +{% load extra_tags %} +{% load humanize %} +{% load extra_filters %} +{% block title %}{% spaceless %}首页{% endspaceless %}{% endblock %} +{% block meta %} + {% endblock %} +{% block forejs %} + +{% endblock %} +{% block content %} +
+
问题列表
+ +
+ +
+ {% for question in questions %} +
+

+ + {{ question.get_question_title }} + +

+
+ + + + + + + + + + + +
{{ question.answer_count|intcomma }} {{ question.score|intcomma }} {{ question.view_count|cnprog_intword|safe }}
回答票数浏览
+
+
+ {{ question.summary }}... +
+ {% if question.wiki %} + 社区Wiki + {% diff_date question.last_activity_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 %} +
+ {% for tag in question.tagname_list %} + + {% endfor %} +
+
+ {% endfor %} +
+{% endblock %} + +{% block sidebar %} +{% if not request.user.is_authenticated %} +
+

CNProg欢迎您!

+
+

CNProg是一个面向程序员的可协作编辑的开放源代码问答社区

+

您可以在这里提问各类程序技术问题 - 问题不分语言和平台。 同时也希望您对力所能及的问题,给予您的宝贵答案。

+ + +
+
+{% endif %} +
+

最新标签

+
+

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

+ +
+
+
+

最新奖牌

+
+ + +
+
+
+订阅最新问题 +
+{% endblock %} +{% block tail %} +
+在寻找更多问题吗?请查阅 全部问题列表,或者 受欢迎的标签。请帮助我们回答 没有回答的问题 +
+{% endblock %} \ No newline at end of file -- cgit v1.2.3-1-g7c22