{% 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 %} {% widget_icon name='contact' size='instance-button' label=img_title %} {{button.verbose_name}} {% else %} {% widget_icon name='contact' size='instance-button' label=img_title %} {{button.verbose_name}} {% 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 %} {% widget_icon name='contact' size='instance-button' label=img_title %} {% translate 'Create a linked contact' %} {% else %} {% widget_icon name='contact' size='instance-button' label=img_title %} {% translate 'Create a linked contact' %} {% endif %} {% endcomment %}