NDOJ/templates/recent-organization.html

31 lines
1 KiB
HTML
Raw Normal View History

2022-10-17 22:08:12 +00:00
{% block two_col_media %}
2023-01-27 23:11:10 +00:00
<style>
.org-logo {
vertical-align: middle;
height: 2em;
width: 2em;
display: inline-block;
margin-right: 0.5em;
}
.toggle {
cursor: pointer;
}
2023-03-03 00:50:33 +00:00
.organization-row:last-child {
border-bottom: none;
}
2023-01-27 23:11:10 +00:00
</style>
2022-10-17 22:08:12 +00:00
{% endblock %}
2022-10-17 20:48:07 +00:00
{% if recent_organizations %}
2023-01-27 23:11:10 +00:00
<div class="blog-sidebox sidebox">
2023-09-06 00:30:05 +00:00
<h3 class="bold-text colored-text"><i class="fa fa-users"></i>{{ _('Recent groups') }}</h3>
2023-03-03 00:50:33 +00:00
<div class="toggled sidebox-content">
2023-01-27 23:11:10 +00:00
{% for organization in recent_organizations %}
2023-03-03 00:50:33 +00:00
<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') }}">
2023-01-27 23:11:10 +00:00
<span style="word-break: break-word;">{{ organization.organization }}</span>
</a>
{% endfor %}
2022-10-17 20:48:07 +00:00
</div>
2023-01-27 23:11:10 +00:00
</div>
2022-10-17 20:48:07 +00:00
{% endif %}