{% set pipe=joiner('|') %} {% if request.user|can_edit_post(question) %}{{ pipe() }} {% trans %}edit{% endtrans %} {% endif %} {% if request.user|can_retag_question(question) %}{{ pipe() }} {% 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 %} {% elif request.user|can_remove_flag_offensive(question)%}{{ 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 %}{% trans %}delete{% endtrans %}{% endif %} {% endif %}