{% if mode == 'view_and_edit_my_profile' %}
{% if extranet_no_user %}

{{'You must be logged in as an extranet user to see this plugin.'|trans}}

{% else %}
{% if allow_user_to_delete_their_account and extranet_delete_user_account_confirmation_prompt %} {{extranet_openForm}}

{{'Close your account'|trans}}

{{'Warning: this action will delete your account from this site and remove your data.'|trans}}

{% if confirm_close_account_error and not show_errors_below_fields %}
{{confirm_close_account_error}}
{% endif %}
{% if confirm_close_account_error and show_errors_below_fields %}
{{confirm_close_account_error}}
{% endif %} {{extranet_closeForm}} {% else %} {{form_HTML}} {% if extranet_screen_name_unconfirmed %} {{extranet_openForm}}
{{extranet_screen_name_confirmed_info}}
{{extranet_closeForm}} {% elseif extranet_screen_name_confirmed_message %} {{extranet_screen_name_confirmed_message}} {% endif %} {% if allow_user_to_delete_their_account %} {% endif %} {% endif %}
{% endif %}
{% elseif mode == 'view_my_personalised_welcome' %} <{{welcome_text_html_tags|e}}>{{welcome_text}} {% elseif mode == 'view_my_user_groups' %} {{text_to_display_if_user_is_a_member_of_group}} {% endif %}