Make org logo lazy load

This commit is contained in:
cuom1999 2022-11-07 16:19:26 -06:00
parent fddde73583
commit 139cb93811
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@
<div class="organization-container toggled"> <div class="organization-container toggled">
{% for org in queryset %} {% for org in queryset %}
<a href="{{ org.get_absolute_url() }}" class="organization-row" title="{{org.about}}"> <a href="{{ org.get_absolute_url() }}" class="organization-row" title="{{org.about}}">
<img class="org-logo" src="{{ org.logo_override_image or static('icons/icon.png') }}"> <img class="org-logo" data-src="{{ org.logo_override_image or static('icons/icon.png') }}">
<span>{{ org.name }}</span> <span>{{ org.name }}</span>
<span style="font-weight: normal; float:right"><i>{{ org.member_count }} {{_('members')}}</i></span> <span style="font-weight: normal; float:right"><i>{{ org.member_count }} {{_('members')}}</i></span>
</a> </a>

View file

@ -32,7 +32,7 @@
<div class="organization-container toggled"> <div class="organization-container toggled">
{% for organization in recent_organizations %} {% 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}}"> <a href="{{ url('organization_home', organization.organization.pk, organization.organization.slug) }}" class="sidebox-content organization-row" title="{{organization.organization.about}}">
<img class="org-logo" src="{{ organization.organization.logo_override_image or static('icons/icon.png') }}"> <img class="org-logo" data-src="{{ organization.organization.logo_override_image or static('icons/icon.png') }}">
<span style="word-break: break-word;">{{ organization.organization }}</span> <span style="word-break: break-word;">{{ organization.organization }}</span>
</a> </a>
{% endfor %} {% endfor %}