2727 < dd > <%= photo_spot . tags %> </ dd >
2828 < dt class ="font-semibold "> 時間帯</ dt >
2929 < dd >
30- <%= photo_spot . timestart ? photo_spot . timestart . strftime ( "%H:%M" ) : "未設定" %> 〜
31- <%= photo_spot . timeend ? photo_spot . timeend . strftime ( "%H:%M" ) : "未設定" %>
30+ <%= photo_spot . timestart ? photo_spot . timestart . strftime ( "%H:%M" ) : "未設定" %> 〜
31+ <%= photo_spot . timeend ? photo_spot . timeend . strftime ( "%H:%M" ) : "未設定" %>
3232 </ dd >
33- < dt class ="font-semibold "> おすすめの季節 </ dt >
33+ < dt class ="font-semibold "> 駐車場 </ dt >
3434 < dd >
35- <% case photo_spot . season %>
36- <% when 'spring' %>
37- 春
38- <% when 'summer' %>
39- 夏
40- <% when 'autumn' %>
41- 秋
42- <% when 'winter' %>
43- 冬
44- <% else %>
45- 未設定
46- <% end %>
47- </ dd >
48- </ dl >
49- </ div >
35+ <% if photo_spot . parking_flag == 1 %>
36+ 駐車場あり
37+ <% if photo_spot . parking_count %>
38+ :<%= photo_spot . parking_count %> 台
39+ <% end %>
40+ <% elsif photo_spot . parking_flag == 0 %>
41+ 駐車場なし
42+ </ div >
43+ <% end %>
44+ </ dd >
45+ < dt class ="font-semibold "> おすすめの季節</ dt >
46+ < dd >
47+ <% case photo_spot . season %>
48+ <% when 'spring' %>
49+ 春
50+ <% when 'summer' %>
51+ 夏
52+ <% when 'autumn' %>
53+ 秋
54+ <% when 'winter' %>
55+ 冬
56+ <% else %>
57+ 未設定
58+ <% end %>
59+ </ dd >
60+ </ dl >
5061 </ div >
51- <%# モーダルウィンドウのHTML部分 %>
52- < div data-image-modal-target ="modal "
62+ </ div >
63+ <%# モーダルウィンドウのHTML部分 %>
64+ < div data-image-modal-target ="modal "
5365 class ="fixed inset-0 z-50 flex items-center justify-center p-4 bg-black bg-opacity-75 hidden ">
54- < div class ="relative w-full h-full max-w-5xl ">
55- < div class ="relative w-full h-full flex items-center justify-center ">
56- < img data-image-modal-target ="image " class ="max-w-full max-h-screen object-contain " alt ="Enlarged image ">
57- <%# 閉じるボタン %>
58- < button data-action ="click->image-modal#close " class ="absolute top-4 right-4 text-white text-4xl ">
59- ×
60- </ button >
61- <%# 左右の矢印ボタン %>
62- < button data-action ="click->image-modal#previous " data-image-modal-target ="prevBtn " class ="absolute left-4 top-1/2 -translate-y-1/2 text-white text-5xl ">
63- ‹
64- </ button >
65- < button data-action ="click->image-modal#next " data-image-modal-target ="nextBtn " class ="absolute right-4 top-1/2 -translate-y-1/2 text-white text-5xl ">
66- ›
67- </ button >
68- </ div >
66+ < div class ="relative w-full h-full max-w-5xl ">
67+ < div class ="relative w-full h-full flex items-center justify-center ">
68+ < img data-image-modal-target ="image " class ="max-w-full max-h-screen object-contain " alt ="Enlarged image ">
69+ <%# 閉じるボタン %>
70+ < button data-action ="click->image-modal#close " class ="absolute top-4 right-4 text-white text-4xl ">
71+ ×
72+ </ button >
73+ <%# 左右の矢印ボタン %>
74+ < button data-action ="click->image-modal#previous " data-image-modal-target ="prevBtn " class ="absolute left-4 top-1/2 -translate-y-1/2 text-white text-5xl ">
75+ ‹
76+ </ button >
77+ < button data-action ="click->image-modal#next " data-image-modal-target ="nextBtn " class ="absolute right-4 top-1/2 -translate-y-1/2 text-white text-5xl ">
78+ ›
79+ </ button >
6980 </ div >
7081 </ div >
82+ </ div >
7183</ div>
0 commit comments