]> git.openstreetmap.org Git - osqa.git/commitdiff
item_extended template
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sun, 11 Apr 2010 17:42:39 +0000 (17:42 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sun, 11 Apr 2010 17:42:39 +0000 (17:42 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@27 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/templates/question_list/item_extended.html [new file with mode: 0644]

diff --git a/forum/skins/default/templates/question_list/item_extended.html b/forum/skins/default/templates/question_list/item_extended.html
new file mode 100644 (file)
index 0000000..934c45d
--- /dev/null
@@ -0,0 +1,40 @@
+{% load i18n %}\r
+{% load humanize %}\r
+{% load extra_filters %}\r
+{% load extra_tags %}\r
+{% load user_tags %}\r
+\r
+<div class="short-summary">\r
+    <div class="counts">\r
+        <div class="favorites">\r
+            <span class="favorite-mark{% if question.favourite_count %} on{% endif %}"></span>\r
+            <div class="item-count">{{question.favourite_count|intcomma}}</div>\r
+        </div>\r
+        <div class="votes">\r
+            <div class="item-count">{{question.score|intcomma}}</div>\r
+            <div>{% trans "votes" %}</div>\r
+        </div>\r
+        <div {% if question.answer_accepted %}title="{% trans "this answer has been accepted to be correct" %}"{% endif %} class="status {% if question.answer_accepted %}answered-accepted{% endif %} {% ifequal question.answer_count 0 %}unanswered{% endifequal %}{% ifnotequal question.answer_count 0 %}answered{% endifnotequal %}">\r
+            <div class="item-count">{{question.answer_count|intcomma}}</div>\r
+            <div>{% trans "answers" %}</div>\r
+        </div>\r
+        <div class="views">\r
+             <div class="item-count">{{question.view_count|cnprog_intword|safe}}</div>\r
+             <div>{% trans "views" %}</div>\r
+        </div>\r
+    </div>\r
+\r
+    <h2><a title="{{question.summary}}" href="{{ question.get_absolute_url }}">{{question.title}}</a></h2>\r
+    <div class="userinfo">\r
+        <span class="relativetime" title="{{question.last_activity_at}}">{% diff_date question.last_activity_at %}</span>\r
+        {% if question.last_activity_by %}\r
+            {% user_signature_small_full question.last_activity_by %}\r
+        {% endif %}\r
+    </div>\r
+\r
+    <div class="tags">\r
+        {% for tag in question.tagname_list %}\r
+        <a href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %} '{{ tag }}' {% trans "using tags" %}" rel="tag">{{ tag }}</a>\r
+        {% endfor %}\r
+    </div>\r
+</div>
\ No newline at end of file