2022-09-15 07:05:02 +00:00
|
|
|
{% extends "two-column-content.html" %}
|
2020-01-21 06:35:58 +00:00
|
|
|
|
2022-09-15 07:05:02 +00:00
|
|
|
{% block two_col_media %}
|
2022-06-18 07:32:37 +00:00
|
|
|
<style>
|
|
|
|
.organization-container .organization-row:last-child {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
2022-12-18 09:31:31 +00:00
|
|
|
|
2022-06-18 07:32:37 +00:00
|
|
|
.org-logo {
|
|
|
|
vertical-align: middle;
|
|
|
|
height: 2em;
|
|
|
|
width: 2em;
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 1em;
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
|
|
|
.toggle {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
|
2020-01-21 06:35:58 +00:00
|
|
|
{% block title_ruler %}{% endblock %}
|
|
|
|
|
2022-06-18 07:32:37 +00:00
|
|
|
{% block left_sidebar %}
|
|
|
|
{% include "user/user-left-sidebar.html" %}
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2022-06-18 07:32:37 +00:00
|
|
|
{% macro org_list(title, queryset) %}
|
|
|
|
{% if queryset %}
|
|
|
|
<h3 style="padding-bottom: 1em" class="toggle open"><i class="fa fa-chevron-right fa-fw"></i> {{title}} ({{queryset.count()}})</h3>
|
|
|
|
<div class="organization-container toggled">
|
|
|
|
{% for org in queryset %}
|
|
|
|
<a href="{{ org.get_absolute_url() }}" class="organization-row" title="{{org.about}}">
|
2022-11-07 22:19:26 +00:00
|
|
|
<img class="org-logo" data-src="{{ org.logo_override_image or static('icons/icon.png') }}">
|
2022-06-18 07:32:37 +00:00
|
|
|
<span>{{ org.name }}</span>
|
|
|
|
<span style="font-weight: normal; float:right"><i>{{ org.member_count }} {{_('members')}}</i></span>
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2020-12-28 05:45:58 +00:00
|
|
|
{% endif %}
|
2022-06-18 07:32:37 +00:00
|
|
|
{% endmacro %}
|
|
|
|
|
2022-09-15 07:05:02 +00:00
|
|
|
{% block middle_content %}
|
|
|
|
<a style="float: right" class="button small" href="{{url('organization_add')}}">{{_("Create group")}}</a>
|
2022-06-18 07:32:37 +00:00
|
|
|
{{ org_list(_('My groups'), my_organizations) }}
|
|
|
|
{{ org_list(_('Open groups'), open_organizations) }}
|
|
|
|
{{ org_list(_('Private groups'), private_organizations) }}
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|