{% if obj.__class__.__name__ == 'Addon' %} {% set sharemsg = _('Share this Add-on') %} {% set listed = True %} {% elif obj.__class__.__name__ == 'Collection' %} {% set sharemsg = _('Share this Collection') %} {% set listed = obj.listed %} {% endif %} {% if listed %} {{ sharemsg if not condensed }} {% endif %}