]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/_question_list.html
Fix for the remaining bug from OSQA-96 for the code that still exists. Thanks Eugene.
[osqa.git] / forum / skins / default / templates / _question_list.html
1 {% load i18n %}\r
2 {% load humanize %}\r
3 {% load extra_filters %}\r
4 {% load extra_tags %}\r
5 \r
6 <div id="listA">\r
7     {% for question in questions.object_list %}\r
8         <div class="short-summary">\r
9                 <div class="counts">\r
10                         <div class="votes">\r
11                                 <div class="item-count">{{question.score|intcomma}}</div>\r
12                                 <div>{% trans "votes" %}</div>\r
13                         </div >\r
14                         <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
15                                 <div class="item-count">{{question.answer_count|intcomma}}</div>\r
16                                 <div>{% trans "answers" %}</div>\r
17                         </div>\r
18                         <div class="views">\r
19                                  <div class="item-count">{{question.view_count|cnprog_intword|safe}}</div>\r
20                                  <div>{% trans "views" %}</div>\r
21                         </div>\r
22                 </div>\r
23 \r
24                 <h2><a title="{{question.summary}}" href="{{ question.get_absolute_url }}">{{question.title}}</a></h2>\r
25                 <div class="userinfo">\r
26                         <span class="relativetime" title="{{question.last_activity_at}}">{% diff_date question.last_activity_at %}</span>\r
27                         {% if question.last_activity_by %}\r
28                         <a href="/users/{{ question.last_activity_by.id }}/{{ question.last_activity_by.username|slugify }}/">{{ question.last_activity_by }}</a> {% get_score_badge question.last_activity_by %}\r
29                         {% endif %}\r
30                 </div>\r
31 \r
32                 <div class="tags">\r
33                         {% for tag in question.tagname_list %}\r
34                         <a href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %} '{{ tag }}' {% trans "using tags" %}" rel="tag">{{ tag }}</a>\r
35                         {% endfor %}\r
36                 </div>\r
37         </div>\r
38         {% endfor %}\r
39 </div>