Skip to content

Commit

Permalink
Merge pull request #512 from hyanwong/image-adding
Browse files Browse the repository at this point in the history
Fix minor variable name bug
  • Loading branch information
hyanwong committed Feb 6, 2022
2 parents 7f1e193 + 331a2ac commit 8b352f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions views/default/spl_sponsored.html
Expand Up @@ -25,13 +25,13 @@ <h3>{{=T('About leaf sponsorship')}}</h3>
<ul>
<li>
<figure>
{{img = user_image or default_image}}
{{image = user_image or default_image}}
<figure>
<figcaption>{{=XML(long_name)}}</figcaption>
<img alt="{{=T('Image of %s') % (species_name)}}"
{{if img:}}
src="{{=img.thumb_url(thumb_base_url, img.src, img.src_id)}}"
title="{{=' / '.join([t for t in [img.rights, img.licence] if t]).replace('"',"'")}}"
{{if image:}}
src="{{=img.thumb_url(thumb_base_url, image.src, image.src_id)}}"
title="{{=' / '.join([t for t in [image.rights, image.licence] if t]).replace('"',"'")}}"
{{else:}}
src="{{=URL('static','images/noImage_transparent.png')}}"
{{pass}} />
Expand Down

0 comments on commit 8b352f3

Please sign in to comment.