From b31367ecd7c3f3a2dd9585acbed01b3e189f4b6c Mon Sep 17 00:00:00 2001 From: Sundeep Charan Ramkumar Date: Wed, 8 Jan 2020 23:58:25 +0530 Subject: [PATCH] Fixes #7148 by showing top map for power tag place:xx --- app/views/sidebar/_related.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/sidebar/_related.html.erb b/app/views/sidebar/_related.html.erb index d9400e3a2c..b8bc8bbf5a 100644 --- a/app/views/sidebar/_related.html.erb +++ b/app/views/sidebar/_related.html.erb @@ -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) %>