diff --git a/app/views/photo_spots/show.html.erb b/app/views/photo_spots/show.html.erb index 87a2199..b19d7da 100644 --- a/app/views/photo_spots/show.html.erb +++ b/app/views/photo_spots/show.html.erb @@ -1,9 +1,72 @@ <% content_for :title, @photo_spot.name %>
-
- <% if notice.present? %> -
- <%= notice %> +
+ <% 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 %>
<% end %>
@@ -95,6 +158,29 @@

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

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

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