NDOJ/templates/recent-organization.html

28 lines
1 KiB
HTML
Raw Permalink Normal View History

2022-10-17 22:08:12 +00:00
{% block two_col_media %}
<style>
.org-logo {
vertical-align: middle;
height: 2em;
width: 2em;
display: inline-block;
margin-right: 0.5em;
}
.toggle {
cursor: pointer;
}
</style>
{% endblock %}
2022-10-17 20:48:07 +00:00
{% if recent_organizations %}
<div class="blog-sidebox sidebox">
2022-10-18 00:03:07 +00:00
<h3>{{ _('Recent groups') }} <i class="fa fa-users"></i></h3>
2022-12-18 09:31:31 +00:00
<div class="toggled">
2022-10-17 22:08:12 +00:00
{% for organization in recent_organizations %}
<a href="{{ url('organization_home', organization.organization.pk, organization.organization.slug) }}" class="sidebox-content organization-row" title="{{organization.organization.about}}">
2022-11-07 22:19:26 +00:00
<img class="org-logo" data-src="{{ organization.organization.logo_override_image or static('icons/icon.png') }}">
2022-10-18 02:04:35 +00:00
<span style="word-break: break-word;">{{ organization.organization }}</span>
2022-10-17 22:08:12 +00:00
</a>
{% endfor %}
</div>
2022-10-17 20:48:07 +00:00
</div>
{% endif %}