]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/question_list/item.html
Handle big reputation numbers slightly better.
[osqa.git] / forum / skins / default / templates / question_list / item.html
1 {% load i18n humanize extra_filters extra_tags user_tags %}\r
2 <div class="short-summary">\r
3     <div class="counts">{% if favorite_count %}\r
4         <div class="favorites">\r
5             <span class="favorite-mark{% if question.favourite_count %} on{% endif %}"></span>\r
6             <div class="item-count">{{question.favourite_count|intcomma}}</div>\r
7         </div>\r
8         {% endif %}\r
9         <div class="votes">\r
10             <div class="item-count">{{question.score|intcomma}}</div>\r
11             <div>{% ifequal question.score 1 %}{% trans "vote" %}{% else %}{% trans "votes" %}{% endifequal %}</div>\r
12         </div >\r
13         <div {% if question.accepted_count %}title="{% trans "this question has an accepted answer" %}"{% endif %} class="status {% if question.accepted_count %}answered-accepted{% endif %} {% ifequal question.answer_count 0 %}unanswered{% endifequal %}{% ifnotequal question.answer_count 0 %}answered{% endifnotequal %}">\r
14             <div class="item-count">{{question.answer_count|intcomma}}</div>\r
15             <div>{% ifequal question.answer_count 1 %}{% trans "answer" %}{% else %}{% trans "answers" %}{% endifequal %}</div>\r
16         </div>\r
17         <div class="views">\r
18              <div class="item-count">{{question.view_count|decorated_int|safe}}</div>\r
19              <div>{% ifequal question.view_count 1 %}{% trans "view" %}{% else %}{% trans "views" %}{% endifequal %}</div>\r
20         </div>\r
21     </div>\r
22 \r
23     <div class="question-summary-wrapper">\r
24         <h2><a title="{{ question.summary }}" href="{{ question.get_absolute_url }}">{{question.headline}}</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 %}{% user_signature question.last_activity_by signature_type %}{% endif %}\r
28         </div>\r
29 \r
30         <div class="tags">{% for tag in question.tagname_list %}\r
31             <a href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %} '{{ tag }}' {% trans "using tags" %}" rel="tag">{{ tag }}</a>{% endfor %}\r
32         </div>\r
33     </div>\r
34 \r
35 </div>