{% load entity_tags %} {% load perm_tags %} {% has_perm user entities.view_entity entity as can_view %} {% if can_view %}

{% blocktrans with n=entity.entity_name|striptags|truncatewords:20|safe %}{{ n }}{% endblocktrans %}

{% csrf_token %}
{% endif %}