Add DropCampaign image fallback logic and update templates for best image URL
This commit is contained in:
parent
55c2273e27
commit
7f468bbabe
8 changed files with 438 additions and 17 deletions
|
|
@ -19,10 +19,10 @@
|
|||
</p>
|
||||
{% endfor %}
|
||||
<!-- Campaign image -->
|
||||
{% if campaign.image_url %}
|
||||
{% if campaign.image_best_url %}
|
||||
<img height="160"
|
||||
width="160"
|
||||
src="{{ campaign.image_best_url|default:campaign.image_url }}"
|
||||
src="{{ campaign.image_best_url }}"
|
||||
alt="{{ campaign.name }}" />
|
||||
{% endif %}
|
||||
<!-- Campaign description -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue