From eb9bfc7972db50d4288ff1125eb3b51f95724d6c Mon Sep 17 00:00:00 2001 From: songtianlun Date: Sat, 15 Feb 2025 17:30:29 +0800 Subject: [PATCH] feat: add auto ad to city page and weather art The auto ad is added to the city page and the weather art page. It improves user experience by showing relevant ads to the user. This change should not affect performance as it only modifies the view. - Add auto ad in city page and weather art page. - Refactor shadow effects to improve user experience. - No side effects or any other consequences. --- app/views/cities/show.html.erb | 4 ++-- app/views/weather_arts/show.html.erb | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/cities/show.html.erb b/app/views/cities/show.html.erb index fd9c7b8..37f7a2a 100644 --- a/app/views/cities/show.html.erb +++ b/app/views/cities/show.html.erb @@ -61,11 +61,11 @@ ], as: :stat %> -
+
<%= render 'shared/map', city: @city %>
-
+
<%= render 'shared/auto_ad' %>
diff --git a/app/views/weather_arts/show.html.erb b/app/views/weather_arts/show.html.erb index 2db48d4..29c383a 100644 --- a/app/views/weather_arts/show.html.erb +++ b/app/views/weather_arts/show.html.erb @@ -77,6 +77,10 @@ <%= render 'shared/map', city: @weather_art.city %>
+
+ <%= render 'shared/auto_ad' %> +
+