Skip to content

Commit

Permalink
Make maps appear on any wiki page with coordinates (#3521)
Browse files Browse the repository at this point in the history
* Update related.html.erb

* changes extra space

* removed extra space in line 50
  • Loading branch information
vishalka98 authored and jywarren committed Sep 29, 2018
1 parent 0e84f2d commit 6595ef3
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions app/views/sidebar/_related.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,11 @@
<% if @node && @node.has_power_tag('response') %>
<%= render partial: 'sidebar/notes', locals: { notes: @node.responses, title: I18n.t('sidebar._related.responses_to_note'), node: @node } %>
<% end %>

<% if @maps && @maps.length > 0 && params[:controller] != "search" %>

<br />

<% if @node && @node.lat && @node.lon %>
<%= render_map(@node.lat, @node.lon) %>
<% end %>

<br style="clear:both;" />

<% if @node && !@node.has_power_tag('place') && @node.lat && @node.lon %>
<%= render_map(@node.lat, @node.lon) %>
<% end %>

<br style="clear:both;" />

</div>

Expand Down

0 comments on commit 6595ef3

Please sign in to comment.