We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 304ab01 commit ada178dCopy full SHA for ada178d
app/views/admin/sponsors/index.html.haml
@@ -19,7 +19,8 @@
19
- @conference.sponsors.each do |sponsor|
20
%tr
21
%td
22
- = image_tag(sponsor.picture.thumb.url, width: '20%')
+ - if sponsor.picture?
23
+ = image_tag(sponsor.picture.thumb.url, width: '20%')
24
25
= sponsor.name
26
app/views/conferences/_modal_description.haml
@@ -15,7 +15,8 @@
15
- if object.is_a? Sponsor
16
- img_classes << ['img-sponsor',
17
"img-sponsor-#{object.sponsorship_level.position}"]
18
- = 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
0 commit comments