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/questions.html | 153 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 templates/questions.html (limited to 'templates/questions.html') diff --git a/templates/questions.html b/templates/questions.html new file mode 100644 index 00000000..6663dbf2 --- /dev/null +++ b/templates/questions.html @@ -0,0 +1,153 @@ +{% extends "base.html" %} +{% load extra_tags %} +{% load humanize %} +{% load extra_filters %} +{% block title %}{% spaceless %}问题列表{% endspaceless %}{% endblock %} +{% block forejs %} + +{% endblock %} +{% block content %} +
+
{% if searchtag %}标签问题{% else %}{% if searchtitle %}查询结果{% else %}所有问题{% endif %}{% endif %}
+ +
+
+ {% for question in questions.object_list %} +
+

+ {{ question.get_question_title }} +

+
+ + + + + + + + + + + +
{{ question.answer_count|intcomma }} {{ question.score|intcomma }} {{ question.view_count|cnprog_intword|safe }}
回答票数浏览
+
+ +
+ {{ question.summary }}... +
+ + {% ifequal tab_id 'active'%} + {% if question.wiki %} + 社区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 %} + 社区Wiki + {% diff_date question.added_at %} + {% else %} +
+ {% comment %}{% gravatar question.author 24 %}{% endcomment %} + {{ question.author }} + {% get_score_badge question.author %} + {% diff_date question.added_at %} +
+ {% endif %} + {% endifequal %} + +
+ {% for tag in question.tagname_list %} + + {% endfor %} +
+
+ {% endfor %} +
+ +{% endblock %} + +{% block tail %} + +
+ {% cnprog_paginator context %} + +
+
+ {% cnprog_pagesize context %} +
+ +{% endblock %} + +{% block sidebar %} +
+

+ 您正在浏览所有

{{ questions_count|intcomma }}
+

个 + {% if searchtag %} + 标记为 + + {{ searchtag }} + + {% endif %} + {% if searchtitle %} + 标题含有 + + {{ searchtitle }} + + {% endif %} + 的问题。

+ {% ifequal tab_id "latest" %} +

问题按提问时间显示排序。新加入的问题将显示在最前面。

+ {% endifequal %} + + {% ifequal tab_id "active" %} +

问题按最后更新时间显示排序。最后被回答或者更新的问题将显示在最前面。

+ {% endifequal %} + + {% ifequal tab_id "hottest" %} +

问题按回复数量显示排序。回复最多的问题将显示在最前面。

+ {% endifequal %} + + {% ifequal tab_id "mostvoted" %} +

问题按投票数量显示排序。投票最多的问题将显示在最前面。

+ {% endifequal %} + + +

+
+
+

相关标签

+
+ {% for tag in tags %} + + × {{ tag.used_count|intcomma }} +
+ {% endfor %} +
+
+
+ +{% endblock %} + -- cgit v1.2.3-1-g7c22