Skip to content

Commit

Permalink
remove reference to removed nearby task
Browse files Browse the repository at this point in the history
  • Loading branch information
mjy committed Aug 23, 2019
1 parent b4f4eee commit bfcb1e8
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions app/views/collecting_events/show.html.erb
Expand Up @@ -5,27 +5,19 @@
</ul>
<% end %>
<%= content_for :report do -%>
<%= content_for :associated do %>
<% if @collecting_event.georeferences.any? %>
<ul class="no_bullets">
<%= content_tag(:li, link_to('Nearby', nearby_locality_task_path(@collecting_event.to_param, nearby_distance: 5000))) %>
<h3>Georeferences</h3>
<%= simple_map(@collecting_event.georeferences) -%>
<% end %>
<% if @collecting_event.collectors.any? %>
<h3>Collectors</h3>
<ul>
<% @collecting_event.collectors.each do |collector| %>
<%= content_tag(:li, object_link(collector)) %>
<% end %>
</ul>
<% end %>
<% end %>
<%= content_for :associated do %>
<% if @collecting_event.georeferences.any? %>
<h3>Georeferences</h3>
<%= simple_map(@collecting_event.georeferences) -%>
<% end %>
<% if @collecting_event.collectors.any? %>
<h3>Collectors</h3>
<ul>
<% @collecting_event.collectors.each do |collector| %>
<%= content_tag(:li, object_link(collector)) %>
<% end %>
</ul>
<% end %>
<% end %>
<%= render(partial: 'shared/data/project/show', locals: {object: @collecting_event}) -%>

0 comments on commit bfcb1e8

Please sign in to comment.