mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 13:14:03 +00:00
Added check for image_tag occurences.
Checking for presence of a image before using image_tag Fixes #1909
This commit is contained in:
parent
304ab01874
commit
ada178d62c
2 changed files with 4 additions and 2 deletions
|
|
@ -19,7 +19,8 @@
|
|||
- @conference.sponsors.each do |sponsor|
|
||||
%tr
|
||||
%td
|
||||
= image_tag(sponsor.picture.thumb.url, width: '20%')
|
||||
- if sponsor.picture?
|
||||
= image_tag(sponsor.picture.thumb.url, width: '20%')
|
||||
%td
|
||||
= sponsor.name
|
||||
%td
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@
|
|||
- if object.is_a? Sponsor
|
||||
- img_classes << ['img-sponsor',
|
||||
"img-sponsor-#{object.sponsorship_level.position}"]
|
||||
= image_tag get_logo(object), class: img_classes
|
||||
- if object.picture?
|
||||
= image_tag get_logo(object), class: img_classes
|
||||
%p.description
|
||||
= object.description
|
||||
.modal-footer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue