NDOJ/templates/recent-organization.html
2024-03-20 17:16:50 -05:00

31 lines
No EOL
1 KiB
HTML

{% block two_col_media %}
<style>
.org-logo {
vertical-align: middle;
height: 2em;
width: 2em;
display: inline-block;
margin-right: 0.5em;
}
.toggle {
cursor: pointer;
}
.organization-row:last-child {
border-bottom: none;
}
</style>
{% endblock %}
{% if recent_organizations %}
<div class="blog-sidebox sidebox">
<h3 class="bold-text colored-text"><i class="fa fa-users"></i>{{ _('Recent groups') }}</h3>
<div class="toggled sidebox-content">
{% for organization in recent_organizations %}
<a href="{{ url('organization_home', organization.organization.pk, organization.organization.slug) }}" class="organization-row" title="{{organization.organization.about}}">
<img class="org-logo" loading="lazy" src="{{ organization.organization.logo_override_image or static('icons/icon.svg') }}">
<span style="word-break: break-word;">{{ organization.organization }}</span>
</a>
{% endfor %}
</div>
</div>
{% endif %}