2022-10-18 05:08:12 +07:00
|
|
|
{% block two_col_media %}
|
2023-01-27 17:11:10 -06:00
|
|
|
<style>
|
|
|
|
.org-logo {
|
|
|
|
height: 2em;
|
|
|
|
width: 2em;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
|
|
|
.toggle {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2023-03-02 18:50:33 -06:00
|
|
|
.organization-row:last-child {
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
2023-01-27 17:11:10 -06:00
|
|
|
</style>
|
2022-10-18 05:08:12 +07:00
|
|
|
{% endblock %}
|
|
|
|
|
2022-10-18 03:48:07 +07:00
|
|
|
{% if recent_organizations %}
|
2023-01-27 17:11:10 -06:00
|
|
|
<div class="blog-sidebox sidebox">
|
2023-09-05 19:30:05 -05:00
|
|
|
<h3 class="bold-text colored-text"><i class="fa fa-users"></i>{{ _('Recent groups') }}</h3>
|
2023-03-02 18:50:33 -06:00
|
|
|
<div class="toggled sidebox-content">
|
2023-01-27 17:11:10 -06:00
|
|
|
{% for organization in recent_organizations %}
|
2024-04-12 01:51:57 -05:00
|
|
|
<a href="{{ url('organization_home', organization.pk, organization.slug) }}" class="organization-row">
|
|
|
|
{% if organization.logo_override_image %}
|
|
|
|
<img class="org-logo user-img" loading="lazy" src="{{ organization.logo_override_image }}">
|
|
|
|
{% else %}
|
|
|
|
<img class="org-logo" loading="lazy" src="{{ static('icons/icon.svg') }}" onerror="{{static('icons/logo.svg')}}">
|
|
|
|
{% endif %}
|
|
|
|
<span style="word-break: break-word;">{{ organization.name }}</span>
|
2023-01-27 17:11:10 -06:00
|
|
|
</a>
|
|
|
|
{% endfor %}
|
2022-10-18 03:48:07 +07:00
|
|
|
</div>
|
2023-01-27 17:11:10 -06:00
|
|
|
</div>
|
2022-10-18 03:48:07 +07:00
|
|
|
{% endif %}
|