{% extends "three-column-content.html" %} {% block three_col_js %} {% block contest_list_js %}{% endblock %} {% endblock %} {% block left_sidebar %} {% endblock %} {% block right_sidebar %} {% endblock %} {% macro org_list(queryset, tab) %} {% if queryset %}
{% for org in queryset %}
{% if org.logo_override_image %} {% else %} {% endif %}
{{ org.name }} {{ org.member_count }} {{ _('members') }}
{% if tab == 'mine' %}
{{ _('View') }}
{% elif tab == 'public' %}
{% csrf_token %}
{% else %} {{ _('Request membership') }} {% endif %}
{% endfor %}
{% if page_obj and page_obj.num_pages > 1 %} {% include "list-pages.html" %} {% endif %} {% endif %} {% endmacro %} {% block middle_content %} {% if current_tab == 'mine' %} {% if organizations %} {{ org_list(organizations, 'mine') }} {% else %} {{ _('You have not joined any organization yet.') }} {% endif %} {% endif %} {% if current_tab == 'public' %} {% if organizations %} {{ org_list(organizations, 'public') }} {% else %} {{ _('There is no public organization.') }} {% endif %} {% endif %} {% if current_tab == 'private' %} {% if organizations %} {{ org_list(organizations, 'private') }} {% else %} {{ _('There is no private organization.') }} {% endif %} {% endif %} {% endblock %}