Fixed error in booths#show when there is no logo.

Added check for logo picture in booths#show
Fixed #1916
This commit is contained in:
Rishabh Singh 2017-12-23 14:00:34 +05:30 committed by Stella Rouzi
parent 96b450224e
commit 304ab01874

View file

@ -1,7 +1,8 @@
.row
.col-md-12
%h3
= image_tag(@booth.picture.thumb.url, size: '20%', alt: '')
- if @booth.logo_link
= image_tag( @booth.picture.thumb.url, size: '20%', alt: '')
= @booth.title
.btn-group.pull-right
= link_to 'Edit', edit_admin_conference_booth_path(@conference.short_title, @booth), class: 'btn btn-mini btn-primary'