1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-05 16:24:21 +01:00
fab-manager/app/views/notifications_mailer/notify_member_subscribed_plan.html.erb

11 lines
634 B
Plaintext

<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>
<p><%= t('.body.plan_subscribed_html', PLAN: @attached_object.plan.human_readable_name) %></p>
<% if @attached_object.plan.is_rolling && @recipient.trainings.count.zero? %>
<% duration = I18n.t("duration.#{@attached_object.plan.interval}", count: @attached_object.plan.interval_count) %>
<p><%= t('.body.rolling_subscription_stops_on', DURATION: duration, DATE: I18n.l(@attached_object.expired_at.to_date)) %><br/></p>
<% else %>
<p><%= t('.body.subscription_stops_on', DATE: I18n.l(@attached_object.expired_at.to_date)) %><br/></p>
<% end %>