From 195d2992b1819ab26e068341174366c741f34478 Mon Sep 17 00:00:00 2001 From: Mr-T18 <125945725+Mr-T18@users.noreply.github.com> Date: Fri, 29 Aug 2025 09:10:00 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=9C=80=E5=BE=8C"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/photo_spots/show.html.erb | 94 ++--------------------------- 1 file changed, 4 insertions(+), 90 deletions(-) diff --git a/app/views/photo_spots/show.html.erb b/app/views/photo_spots/show.html.erb index b19d7da..87a2199 100644 --- a/app/views/photo_spots/show.html.erb +++ b/app/views/photo_spots/show.html.erb @@ -1,72 +1,9 @@ <% content_for :title, @photo_spot.name %>
-
- <% if notice.present? %> -
- <%= notice %> -
- <% end %> -
-
-
-

- <%= @photo_spot.name %> - - (<%= @photo_spot.reviews.count %>件のレビュー) -
-
-
名称
-
<%= @photo_spot.name %>
-
説明
-
<%= @photo_spot.detail %>
-
タグ
-
<%= @photo_spot.tags %>
-
時間帯
-
- <%= @photo_spot.timestart ? @photo_spot.timestart.strftime("%H:%M") : "未設定" %> 〜 - <%= @photo_spot.timeend ? @photo_spot.timeend.strftime("%H:%M") : "未設定" %> -
-
駐車場
-
- <% if @photo_spot.parking_flag == 1 %> - 駐車場あり - <% if @photo_spot.parking_count%> - :<%= @photo_spot.parking_count %> 台 - <% end %> - <% elsif @photo_spot.parking_flag == 0 %> - 駐車場なし - <% end %> -
-
おすすめの季節
-
- <% case @photo_spot.season %> - <% when 'spring' %> - 春 - <% when 'summer' %> - 夏 - <% when 'autumn' %> - 秋 - <% when 'winter' %> - 冬 - <% else %> - 未設定 - <% end %> -
-
-
-
-
-
-

- <% if @photo_spot.tags.present? %> -
- <% @photo_spot.tags.each do |tag| %> - - <%= tag.name %> - - <% end %> -
- <% end %> +
+ <% if notice.present? %> +
+ <%= notice %>
<% end %>
@@ -158,29 +95,6 @@

<%= simple_format(@photo_spot.detail) %>

- <% end %> - <%# モーダルウィンドウのHTML部分 %> - -
-

<%= simple_format(@photo_spot.detail) %>