{{ question.html|safe }}
{% comment %}todo: here we have important case to reset search state{% endcomment %}
|' %}
{% if request.user|can_edit_post:question %}
{% trans 'edit' %}
{% else %}
{% if request.user|can_retag_question:question %}
{% trans 'retag' %}
{% endif %}
{% endif %}
{% separator %}
{% if question.closed %}
{% if request.user|can_reopen_question:question %}
{% trans "reopen" %}
{% endif %}
{% else %}
{% if request.user|can_close_question:question %}
{% trans "close" %}
{% endif %}
{% endif %}
{% separator %}
{% if request.user|can_flag_offensive:question %}
{% trans "flag offensive" %}
{% if request.user|can_see_offensive_flags:question %}
{% if question.offensive_flag_count %}({{ question.offensive_flag_count }}){% endif %}
{% endif %}
{% endif %}
{% separator %}
{% if request.user|can_delete_post:question %}
{% trans "delete" %}
{% endif %}
{% endjoinitems %}
{% joinitems using '
{% post_contributor_info question "original_author" %}
{% post_contributor_info question "last_updater" %}
{% spaceless %}
{% for comment in question.get_comments|slice:":5" %}
{% endspaceless %}
{{comment.html|safe}}
- {{comment.user}}
{% spaceless %}
({% diff_date comment.added_at %})
{% if request.user|can_delete_comment:comment %}
{% endfor %}
{% if request.user|can_post_comment:question or question.comment_count > 5 %}
{% if request.user|can_post_comment:question %}
{% trans "add comment" %}
{% endif %}
{% if question.comment_count > 5 %}
{% if request.user|can_post_comment:question %}/
{% blocktrans count question.get_comments|slice:"5:"|length as counter %}see {{counter}} more{% plural %}see {{counter}} more{% endblocktrans %}
{% else %}
{% blocktrans count question.get_comments|slice:"5:"|length as counter %}see {{counter}} more comment{% plural %}see {{counter}} more comments
{% endblocktrans %}
{% endif %}
{% endif %}
{% endif %}
|
{% blocktrans with question.get_close_reason_display as close_reason %}The question has been closed for the following reason "{{ close_reason }}" by{% endblocktrans %} {{ question.closed_by.username }} {% blocktrans with question.closed_at as closed_at %}close date {{closed_at}}{% endblocktrans %}
{{ answer.html|safe }}
{% joinitems using '|' %}
{% trans "permanent link" %}
{% separator %}
{% if request.user|can_edit_post:answer %}
{% trans 'edit' %}
{% endif %}
{% separator %}
{% if request.user|can_flag_offensive:answer %}
{% trans "flag offensive" %}
{% if request.user|can_see_offensive_flags:answer %}
{% if answer.offensive_flag_count %}({{ answer.offensive_flag_count }}){% endif %}
{% endif %}
{% endif %}
{% separator %}
{% if request.user|can_delete_post:answer %}
{% spaceless %}
{% if answer.deleted %}{% trans "undelete" %}{% else %}{% trans "delete" %}{% endif %}
{% endspaceless %}
{% endif %}
{% endjoinitems %}
{% post_contributor_info answer "original_author" %}
{% post_contributor_info answer "last_updater" %}
{% spaceless %}
{% for comment in answer.get_comments|slice:":5" %}
{% endspaceless %}
{{comment.html|safe}}
- {{comment.user}}
{% spaceless %}
({% diff_date comment.added_at %})
{% if request.user|can_delete_comment:comment %}
{% endfor %}
{% if request.user|can_post_comment:answer or answer.comment_count > 5 %}
{% if request.user|can_post_comment:answer %}
{% trans "add comment" %}
{% endif %}
{% if answer.comment_count > 5 %}
{% if request.user|can_post_comment:answer %}/
{% blocktrans count answer.get_comments|slice:"5:"|length as counter %}see {{counter}} more{% plural %}see {{counter}} more{% endblocktrans %}
{% else %}
{% blocktrans count answer.get_comments|slice:"5:"|length as counter %}see {{counter}} more comment{% plural %} see {{counter}} more comments{% endblocktrans %}
{% endif %}
{% endif %}
{% endif %}
|