{% if comment.bl.can_update_by(current_user) %} Редактировать {% endif %} {% if comment.bl.can_delete_or_restore_by(current_user) %} {% if comment.deleted %} Восстановить {% else %} Удалить {% endif %} {% endif %} {% endif %}