{{question.html}}
{#todo: here we have important case to reset search state #}
|') %}
{% if request.user|can_edit_post(question) %}{{ pipe() }}
{% trans %}edit{% endtrans %}
{% elif request.user|can_retag_question(question) %}
{% trans %}retag{% endtrans %}
{% endif %}
{% if question.closed %}
{% if request.user|can_reopen_question(question) %}{{ pipe() }}
{% trans %}reopen{% endtrans %}
{% endif %}
{% else %}
{% if request.user|can_close_question(question) %}{{ pipe() }}
{% trans %}close{% endtrans %}
{% endif %}
{% endif %}
{% if request.user|can_flag_offensive(question) %}{{ pipe() }}
{% trans %}flag offensive{% endtrans %}
{% if request.user|can_see_offensive_flags(question) %}
{% if question.offensive_flag_count > 0 %}({{ question.offensive_flag_count }}){% endif %}
{% endif %}
{% endif %}
{% if request.user|can_delete_post(question) %}{{ pipe() }}
{% trans %}delete{% endtrans %}
{% endif %}
{% set pipe=joiner('
{{
macros.post_contributor_info(
question,
"original_author",
question.wiki
)
}}
{{
macros.post_contributor_info(
question,
"last_updter",
question.wiki
)
}}
{% spaceless %}
{% for comment in question.get_comments()[:5] %}
{% endspaceless %}
{{comment.html}}
- {{comment.user.username}}
{% spaceless %}
({{comment.added_at|diff_date}})
{% 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{% endtrans %}
{% endif %}
{% if question.comment_count > 5 %}
{% if request.user|can_post_comment(question) %}/
{% trans counter=question.get_comments()[5:]|length %}see {{counter}} more{% pluralize %}see {{counter}} more{% endtrans %}
{% else %}
{% trans counter=question.get_comments()[5:]|length %}see {{counter}} more comment{% pluralize %}see {{counter}} more comments
{% endtrans %}
{% endif %}
{% endif %}
{% endif %}
|
{% trans close_reason=question.get_close_reason_display() %}The question has been closed for the following reason "{{ close_reason }}" by{% endtrans %} {{ question.closed_by.username }} {% trans closed_at=question.closed_at %}close date {{closed_at}}{% endtrans %}
{{ answer.html }}
{% set pipe=joiner('|') %}
{{ pipe() }}
{% trans %}permanent link{% endtrans %}
{% if request.user|can_edit_post(answer) %}{{ pipe() }}
{% trans %}edit{% endtrans %}
{% endif %}
{% if request.user|can_flag_offensive(answer) %}{{ pipe() }}
{% trans %}flag offensive{% endtrans %}
{% if request.user|can_see_offensive_flags(answer) %}
{% if answer.offensive_flag_count > 0 %}({{ answer.offensive_flag_count }}){% endif %}
{% endif %}
{% endif %}
{% if request.user|can_delete_post(answer) %}{{ pipe() }}
{% spaceless %}
{% if answer.deleted %}{% trans %}undelete{% endtrans %}{% else %}{% trans %}delete{% endtrans %}{% endif %}
{% endspaceless %}
{% endif %}
{{
macros.post_contributor_info(
answer,
"original_author",
answer.wiki
)
}}
{{
macros.post_contributor_info(
answer,
"last_updater",
answer.wiki
)
}}
{% spaceless %}
{% for comment in answer.get_comments()[:5] %}
{% endspaceless %}
{{comment.html}}
- {{comment.user}}
({{comment.added_at|diff_date}})
{% 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{% endtrans %}
{% endif %}
{% if answer.comment_count > 5 %}
{% if request.user|can_post_comment(answer) %}/
{% trans counter=answer.get_comments()[5:]|length %}see {{counter}} more{% pluralize %}see {{counter}} more{% endtrans %}
{% else %}
{% trans counter=answer.get_comments()[5:]|length %}see {{counter}} more comment{% pluralize %} see {{counter}} more comments{% endtrans %}
{% endif %}
{% endif %}
{% endif %}
|