{% from "macros.html" import user_country_flag, tag_list_widget, timeago, user_primary_group %}
{% if thread.accepted_answer_id %}
{% endif %}
{% set answer_count = thread.get_answer_count(visitor) %}
{% if answer_count == 0 %} 0 {% else %} {{ answer_count|humanize_counter }}{% if thread.accepted_answer_id %}{% endif %} {% endif %}

{{thread.get_title()|escape}}

{{ tag_list_widget(thread.get_tag_names(), search_state=search_state) }}
{% if thread.view_count == 0 %} 0 {% else %} {{ thread.view_count|humanize_counter }} {% endif %}
{% set answer_count = thread.get_answer_count(visitor) %}
{% if answer_count == 0 %} 0 {% else %} {{ answer_count|humanize_counter }}{% if thread.accepted_answer_id %}{% endif %} {% endif %}
{% if question.score == 0 %} 0 {% else %} {{question.score|humanize_counter}} {% endif %}
{{ timeago(thread.last_activity_at) }} {% set latest_revision = thread.get_latest_revision(user=visitor) %} {% if latest_revision and latest_revision.is_anonymous %} {{ thread.last_activity_by.get_anonymous_name() }} {% else %} {{thread.last_activity_by.username|escape}} {{ user_country_flag(thread.last_activity_by) }} {% if thread.last_activity_by.get_primary_group() %} - {{ user_primary_group(thread.last_activity_by) }} {% endif %} {% endif %}