diff options
Diffstat (limited to 'askbot/skins/default/templates/widgets/question_summary.html')
-rw-r--r-- | askbot/skins/default/templates/widgets/question_summary.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/askbot/skins/default/templates/widgets/question_summary.html b/askbot/skins/default/templates/widgets/question_summary.html index 9c527140..f5c3c962 100644 --- a/askbot/skins/default/templates/widgets/question_summary.html +++ b/askbot/skins/default/templates/widgets/question_summary.html @@ -2,21 +2,21 @@ <div class="short-summary{% if extra_class %} {{extra_class}}{% endif %}" id="question-{{question.id}}"> <div class="counts"> <div class="views - {% if question.view_count == 0 -%} + {% if question.thread.view_count == 0 -%} no-views {% else -%} some-views {%- endif -%}"> - <span class="item-count">{{question.view_count|humanize_counter}}</span> + <span class="item-count">{{question.thread.view_count|humanize_counter}}</span> <div> - {% trans cnt=question.view_count %}view{% pluralize %}views{% endtrans %} + {% trans cnt=question.thread.view_count %}view{% pluralize %}views{% endtrans %} </div> </div> <div class="answers - {% if question.answer_count == 0 -%} + {% if question.thread.answer_count == 0 -%} no-answers {% else -%} - {%- if question.answer_accepted -%} + {%- if question.thread.accepted_answer -%} accepted {%- else -%} some-answers @@ -24,9 +24,9 @@ {%- endif -%}"> <span class="item-count" - >{{question.answer_count|humanize_counter}}{% if question.answer_accepted%}{% endif %}</span> + >{{question.thread.answer_count|humanize_counter}}{% if question.thread.accepted_answer %}{% endif %}</span> <div> - {% trans cnt=question.answer_count %}answer{% pluralize %}answers{% endtrans %} + {% trans cnt=question.thread.answer_count %}answer{% pluralize %}answers{% endtrans %} </div> </div> <div class="votes @@ -43,12 +43,12 @@ <div style="clear:both"></div> <div class="userinfo"> - <span class="relativetime" title="{{question.last_activity_at}}">{{ question.last_activity_at|diff_date }}</span> + <span class="relativetime" title="{{question.thread.last_activity_at}}">{{ question.thread.last_activity_at|diff_date }}</span> {% if question.is_anonymous %} - <span class="anonymous">{{ question.last_activity_by.get_anonymous_name() }}</span> + <span class="anonymous">{{ question.thread.last_activity_by.get_anonymous_name() }}</span> {% else %} - <a href="{% url user_profile question.last_activity_by.id, question.last_activity_by.username|slugify %}">{{question.last_activity_by.username}}</a>{{ user_country_flag(question.last_activity_by) }} - {#{user_score_and_badge_summary(question.last_activity_by)}#} + <a href="{% url user_profile question.thread.last_activity_by.id, question.thread.last_activity_by.username|slugify %}">{{question.thread.last_activity_by.username}}</a>{{ user_country_flag(question.thread.last_activity_by) }} + {#{user_score_and_badge_summary(question.thread.last_activity_by)}#} {% endif %} </div> </div> |