diff --git a/django/econsensus/publicweb/templates/organizations/organization_list.html b/django/econsensus/publicweb/templates/organizations/organization_list.html index d6da21b9dedee88ad4d67d02e01ce95f0f7b46cd..794ee7347e4df6700f7460d3c20ad80407d0e010 100644 --- a/django/econsensus/publicweb/templates/organizations/organization_list.html +++ b/django/econsensus/publicweb/templates/organizations/organization_list.html @@ -21,14 +21,18 @@ <li> <a href="{% url 'publicweb_item_list' organization.slug 'discussion'%}">{{ organization.name }}</a> </li> + <li> + {% if organization|is_owner:user %} + <span>{% trans "can't leave - you're the owner" %}</span> + {% else %} + <a href="{% url 'organization_user_leave' organization.pk %}">{% trans "leave" %}</a> + {% endif %} + </li> {% if organization|is_admin:user %} <li> <a href="{% url 'organization_admin' organization.pk %}">{% trans "admin" %}</a> </li> {% endif %} - <li> - <a href="{% url 'organization_user_leave' organization.pk %}">{% trans "leave" %}</a> - </li> </ul> </li> {% if forloop.last %}</ul>{% endif %}