diff --git a/app/views/admin/photo_spots/_photo_spot.html.erb b/app/views/admin/photo_spots/_photo_spot.html.erb index 94baf3f..918d120 100644 --- a/app/views/admin/photo_spots/_photo_spot.html.erb +++ b/app/views/admin/photo_spots/_photo_spot.html.erb @@ -39,8 +39,8 @@ <% end %> <% elsif photo_spot.parking_flag == 0 %> 駐車場なし - <% end %> +
おすすめの季節
diff --git a/app/views/photo_spots/show.html.erb b/app/views/photo_spots/show.html.erb index 8880f23..3d211c0 100644 --- a/app/views/photo_spots/show.html.erb +++ b/app/views/photo_spots/show.html.erb @@ -13,6 +13,47 @@ <%= @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? %> @@ -60,26 +101,6 @@ -