{% set pipe=joiner('|') %} {{ pipe() }} {% if request.user|can_edit_post(answer) %}{{ pipe() }} {% trans %}edit{% endtrans %} {% endif %} {% if question.offensive_flag_count == 0 %}{{ pipe() }} {# {% trans %}flag offensive{% endtrans %} #} flag {% if request.user|can_see_offensive_flags(answer) %} {% if answer.offensive_flag_count > 0 %}({{ answer.offensive_flag_count }}){% endif %} {% endif %} {% elif question.offensive_flag_count > 0 %}{{ pipe() }} {# {% trans %}remove flag{% endtrans %} #} unflag {% 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 %}✖{% endif %} {% endspaceless %} {% endif %} {% if settings.ALLOW_SWAPPING_QUESTION_WITH_ANSWER and request.user.is_authenticated() and request.user.is_administrator_or_moderator() %}{{ pipe() }} {% trans %}swap with question{% endtrans %} {% endif %}