Skip to content

Commit

Permalink
Fixes publiclab#7148 by showing top map for power tag place:xx
Browse files Browse the repository at this point in the history
  • Loading branch information
sunguru98 committed Jan 8, 2020
1 parent 6fa24e3 commit b31367e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/sidebar/_related.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<% 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 @node && @node.has_tag("place") && @node.lat && @node.lon %>
<% if @node && (@node.has_tag("place") || @node.has_power_tag("place")) && @node.lat && @node.lon %>
<%= render_top_map(@node.lat, @node.lon, @node.zoom) %>
<% elsif @node && @node.lat && @node.lon %>
<%= render_map(@node.lat, @node.lon, @node.zoom) %>
Expand Down

0 comments on commit b31367e

Please sign in to comment.