ref: master
app/views/map_balloon/profile.html.erb
<%= profile_image(@profile, :thumb) %><%= link_to(@profile.name, url_for(@profile.url)) %>
<% unless @profile.contact_email.nil? %> <%= _('E-Mail: ') + @profile.contact_email %>
<% end %> <% unless @profile.contact_phone.nil? %> <%= _('Phone(s): ') + @profile.contact_phone %>
<% end %> <% unless @profile.region.nil? %> <%= _('Location: ') + @profile.region.name %>
<% end %> <% unless @profile.address.nil? %> <%= _('Address: ') + @profile.address %>
<% end %> <% if @profile.respond_to?(:products) and !@profile.products.blank? %> <%= _('Products/Services: ') + @profile.products.map{|i| link_to(i.name, controller: 'products_plugin/page', profile: @profile.identifier, action: 'show', id: i.id)}.join(', ') %>
<% end %> <% if @profile.respond_to?(:distance) and !@profile.distance.nil? %> <%= _('Distance: ') + "%.2f%" % @profile.distance %>
<% end %>