<div class="logout-myaccount-page">
{% set url = url('<current>') %}
{% if (logged_in) and 'participant' in url|render|render %}
<ul>
<li>{{ link('My Account', 'route:user.well-known.change_password') }}</li>
<li>{{ link('Logout', 'route:user.logout') }}</li>
</ul>
{% elseif (logged_in) and 'edit' in url|render|render %}
<ul>
<li><a href="{{ path('profile.user_page.single', {'user': user.id, 'profile_type': 'participant'}) }}">{{ 'Edit Demographics'|t }}</a></li>
<li>{{ link('Logout', 'route:user.logout') }}</li>
</ul>
{% elseif (logged_in) and 'products' in url|render|render %}
<ul>
<li>{{ link('My Account', 'route:user.well-known.change_password') }}</li>
<li>{{ link('Logout', 'route:user.logout') }}</li>
</ul>
{% endif %}
</div>