From aea3216172b8082c7811684554a48abc19318d9f Mon Sep 17 00:00:00 2001 From: Natalie Date: Fri, 3 Jan 2020 10:38:46 -0500 Subject: [PATCH] remove center tag and unnecessary javascript --- app/views/sidebar/_related.html.erb | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/app/views/sidebar/_related.html.erb b/app/views/sidebar/_related.html.erb index 807ddeca79c..b7346de222e 100644 --- a/app/views/sidebar/_related.html.erb +++ b/app/views/sidebar/_related.html.erb @@ -53,9 +53,9 @@ <% if @node.type == "page" %> <% url = "/map/" + @node.slug_from_path %> <% end %> -
View on a map
+ View on a map <% elsif !@node.lat && !@node.lon %> - Add a location + Add a location <% end %>
@@ -77,10 +77,4 @@ <% end %> -<%= javascript_include_tag 'sidebar' %> - - +<%= javascript_include_tag 'sidebar' %> \ No newline at end of file