SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 4c3291e9 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Properly handle default logo img. Fixes SCIPOST-1HX

parent 9a4b1a5d
No related branches found
No related tags found
No related merge requests found
......@@ -48,12 +48,14 @@
<picture>
{% for source in org.logos.all %}
<source type="{{ source.mimetype }}" srcset="{{ source.image.url }} {{ source.width }}w">
{% if forloop.last %}
<img class="rounded" style="max-height: 8rem; max-width: 16rem;"
src="{{ source.url }}" alt="{{ org.name }} logo">
{% endif %}
{% endfor %}
<img class="rounded" style="max-height: 8rem; max-width: 16rem;"
src="{{ org.logo.url }}" alt="{{ org.name }} logo">
</picture>
</li>
{% elif org.logo %}
{% elif org.logo %}
<img class="d-flex me-3 {{ org.css_class }}" src="{{ org.logo.url }}" alt="image"/>
{% endif %}
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment