<%= activity.url.present? ? link_to(activity.title, activity.url) : activity.title %> |
<%= activity.activity_categories.map(&:name).join(', ') %> |
<%= activity.neighborhood %> |
<%= activity.address.present? ? activity.address.for_geocoder : "no address for #{activity.id}" %> |
<%= activity.price %> |
<%= activity.dates %> |
<% if activity.comment_url.present? %>
<%= link_to('Comment here', activity.comment_url) + (activity.user.present? ? " by #{activity.user}" : '') %> |
<% else %>
|
<% end %>
<%= activity.related %> |
<%= link_to 'Show', activity %> |
<%= link_to 'Edit', edit_activity_path(activity) %> |
<%= link_to 'Destroy', activity, method: :delete, data: { confirm: 'Are you sure?' } %> |
<% end %>