Make org logo lazy load
This commit is contained in:
parent
fddde73583
commit
139cb93811
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue