Merge pull request #946 from Shriyanshagro/venue_commercial
Defined Venue has_one Commercial nice new relationship
This commit is contained in:
commit
1fdc2f8efe
7 changed files with 129 additions and 16 deletions
|
|
@ -6,12 +6,17 @@
|
|||
-else
|
||||
.container
|
||||
.row
|
||||
.col-md-12
|
||||
- if @conference.venue.commercial.present? and @conference.venue.commercial.persisted?
|
||||
.col-md-5
|
||||
.thumbnail
|
||||
.flexvideo{ id: "resource-content-#{@conference.venue.commercial.id}"}
|
||||
= render partial: 'shared/media_item', locals: { commercial: @conference.venue.commercial }
|
||||
|
||||
.col-md-6
|
||||
%h2.text-center
|
||||
= "#{@conference.venue.city} / #{@conference.venue.country_name}"
|
||||
.col-md-6
|
||||
.thumbnail
|
||||
=image_tag(@conference.venue.photo, class: 'img-responsive img-rounded') unless @conference.venue.photo.blank?
|
||||
.caption
|
||||
- unless @conference.venue.description.blank?
|
||||
= markdown(@conference.venue.description)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue