osem-fcy/app/views/conferences/_venue_map_marker.html.haml
James Mason 8ddcd695f0 Add vendor picture interface; include in splash
Vendor has a picture atrribute, and was displayed in one form of the
splashpage, but it wasn't exposed in the vendor editing form, nor was it
included in the "map view" on the splash page.

Additionally, the map popup was rendered inline.

This commit:
* Adds a from input for editing Venue#picture, consistent with other
  form elements
* Displays the picture on the splash page in either style (map or
  static)
* Moves the splash page map popup from inline HTML to it's own partial
2017-10-17 15:33:04 +03:00

13 lines
298 B
Text

- if venue.picture?
= image_tag venue.picture.thumb.url,
alt: venue.name,
class: 'img-responsive pull-right'
%h3= venue.name
%p
= venue.street
%br
= venue.city
%br
= venue.country_name
- if venue.website
%p.text-center.clearfix= sanitize(link_to venue.website, venue.website)