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
|
|
@ -97,8 +97,8 @@
|
|||
<div>
|
||||
<a href="{% url 'twitch:campaign_detail' campaign.twitch_id %}"
|
||||
style="text-decoration: none">
|
||||
{% if campaign.image_best_url or campaign.image_url %}
|
||||
<img src="{{ campaign.image_best_url|default:campaign.image_url }}"
|
||||
{% if campaign.image_best_url %}
|
||||
<img src="{{ campaign.image_best_url }}"
|
||||
alt="Campaign artwork for {{ campaign.name }}"
|
||||
width="120"
|
||||
height="120"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue