{% load i18n creme_widgets %}{% load has_perm_to from creme_core_tags %}
{% has_perm_to link object as obj_link_perm %}{% translate 'Linked contact' as img_title %}
{% if button.is_allowed and obj_link_perm and button.contact_link_perm %}
{% else %}
{% endif %}
{% comment %}
{% load i18n creme_widgets %}{% load has_perm_to from creme_core_tags %}
{% has_perm_to link object as obj_link_perm %}{% translate 'Linked contact' as img_title %}
{% if has_perm and obj_link_perm and button.contact_link_perm %}
{% else %}
{% endif %}
{% endcomment %}