diff --git a/app/views/cities/show.html.erb b/app/views/cities/show.html.erb index 02db839..d65a696 100644 --- a/app/views/cities/show.html.erb +++ b/app/views/cities/show.html.erb @@ -10,7 +10,7 @@ <% end %> -
+
<%= link_to cities_path, class: "inline-flex items-center btn btn-ghost gap-2 " do %> @@ -23,7 +23,7 @@
-
+

<%= @city.localized_name %>

@@ -61,7 +61,9 @@ ], as: :stat %>
- <%= render 'cities/map', city: @city %> +
+ <%= render 'shared/map', city: @city %> +
<%= render 'cities/admin_panel' %>
@@ -71,8 +73,8 @@
-
-
+
+

Weather Art History

diff --git a/app/views/cities/_map.html.erb b/app/views/shared/_map.html.erb similarity index 95% rename from app/views/cities/_map.html.erb rename to app/views/shared/_map.html.erb index ebcca99..2bcc1d1 100644 --- a/app/views/cities/_map.html.erb +++ b/app/views/shared/_map.html.erb @@ -1,5 +1,5 @@ -
+
-
+
@@ -73,6 +73,10 @@
+
+ <%= render 'shared/map', city: @weather_art.city %> +
+