2016-03-23 18:39:41 +01:00
|
|
|
<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= t('.body.member_reserved_html',
|
|
|
|
NAME: @attached_object.user.profile.full_name,
|
|
|
|
RESERVABLE: @attached_object.reservable.name) %>
|
|
|
|
</p>
|
|
|
|
<p><%= t('.body.reserved_slots') %></p>
|
|
|
|
<ul>
|
|
|
|
<% @attached_object.slots.each do |slot| %>
|
2016-11-03 12:17:19 +01:00
|
|
|
<% if @attached_object.reservable_type == 'Event' %>
|
|
|
|
<% (slot.start_at.to_date..slot.end_at.to_date).each do |d| %>
|
|
|
|
<li><%= "#{I18n.l d, format: :long} #{I18n.l slot.start_at, format: :hour_minute} - #{I18n.l slot.end_at, format: :hour_minute}" %></li>
|
|
|
|
<% end %>
|
|
|
|
<% else %>
|
|
|
|
<li><%= "#{I18n.l slot.start_at, format: :long} - #{I18n.l slot.end_at, format: :hour_minute}" %></li>
|
|
|
|
<% end %>
|
2016-03-23 18:39:41 +01:00
|
|
|
<% end %>
|
|
|
|
</ul>
|