{% extends "base.html" %} {% load authorization_tags %} {% block title %}Organizations - {{ block.super }}{% endblock %} {% block navbar_title%}Organizations{% endblock %} {% block content %}
{% include "messages.html" %}
{% if not memberships %}

You need an organization to manage your projects and their subscriptions. Click here to create your organization.

{% else %}

The organizations allows you to manage your projects and subscriptions. Create a new organization?

{% endif %}
    {% if memberships %} {% for membership in memberships %}
  • {% membership_can_access_org_settings membership as can_access_settings %} {% if membership.is_invited or not can_access_settings %} {{ membership.organization.name }} {% else %} {{ membership.organization.name }} {% endif %}
    {% if membership.is_invited %} Accept Invitation {% endif %} {% if can_access_settings and not membership.is_invited %} Edit {% endif %} {% if membership.is_owner and not membership.is_invited %} Delete {% endif %}
    Role: {{ membership.role }} {% if can_access_settings and not membership.is_invited %} {% with members=membership.organization.membership_set.all %}
    {% endwith %} {% endif %}
  • {% endfor %} {% else %}
  • No organization yet.
  • {% endif %}
{% endblock %}