+ <li role="presentation" class="divider"></li>
+ {% if user.membership_set.all.exists %}
+ <li role="presentation" class="dropdown-header">{% trans "My organizations" %}:</li>
+ {% for membership in user.membership_set.all %}
+ <li><a href="{% url 'organizations_main' membership.organization.pk %}">{{ membership.organization }}</a></li>
+ {% endfor %}
+ {% else %}
+ <li role="presentation" class="dropdown-header">{% trans "You are not a member of any organizations" %}</li>
+ {% endif %}