Skip to content

Commit

Permalink
Merge pull request #623 from CTPUG/bugfix/spaceless_sponsor_block
Browse files Browse the repository at this point in the history
Use spaceless to reduce strange whitespace in the sponsor template
  • Loading branch information
drnlm committed Sep 28, 2021
2 parents 3d751b4 + 274e334 commit 36b1bb6
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions wafer/sponsors/templates/wafer.sponsors/sponsors_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@
{% if package.sponsors.exists %}
{% for sponsor in package.sponsors.all %}
{% sponsor_tagged_image sponsor "footer_logo" as logo_url %}
<a href="{{ sponsor.url }}">
{% if logo_url != '' %}
<img src="{{ logo_url }}"
alt="{{ sponsor.name }}"
style="max-width: 200px; max-height:100px;"
title="{{ sponsor.name }}">
{% else %}
<span class="nologo">{{ sponsor.name }}</span>
{% endif %}
</a>
{% spaceless %}
<a href="{{ sponsor.url }}">
{% if logo_url != '' %}
<img src="{{ logo_url }}"
alt="{{ sponsor.name }}"
style="max-width: 200px; max-height:100px;"
title="{{ sponsor.name }}">
{% else %}
<span class="nologo">{{ sponsor.name }}</span>
{% endif %}
</a>
{% endspaceless %}
{% endfor %}
<br>
{% endif %}
Expand Down

0 comments on commit 36b1bb6

Please sign in to comment.