{% load i18n %} {% url 'comment:flag' pk=comment.id as flag_url %} {% if user.is_authenticated %} {% include "comment/flags/flag_icon.html" %} {% include "comment/flags/flag_modal.html" %} {% else %} {% include "comment/flags/flag_icon.html" %} {% endif %}