{% set pipe=joiner('|') %}
{% if request.user|can_edit_post(question) %}{{ pipe() }}
{% trans %}edit{% endtrans %}
{% endif %}
{% if thread.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 question.offensive_flag_count == 0 %}{{ 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 %}
{% elif question.offensive_flag_count > 0 %}{{ pipe() }}
{% trans %}remove flag{% 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() }}
{% if question.deleted %}{% trans %}undelete{% endtrans %}{% else %}✖{% endif %}
{% endif %}