<% define_content :link do %> <%= appointment_groups_url %> <% end %> <% define_content :subject do %> <%= t('subject', 'Appointments for %{appointment_name} have been canceled (%{course})', :appointment_name => asset.title, :course => asset.contexts_for_user(user).map(&:name).join(", ")) %> <% end %> <% define_content :footer_link do %> <%= t :link_text, 'View the appointment' %> <% end %>

<%= t :message, 'All appointments for %{appointment_name} have been canceled.', :appointment_name => asset.title %>

<%= t :details, 'Appointment Details' %>:

<% if asset.end_at %> <% end %>
<%= t :dates, 'Date(s)' %>: <%= date_string(asset.start_at, asset.end_at, :no_words) %>
<%= t :course, 'Course' %>: <%= asset.participant_type == 'Group' ? asset.contexts.first.name : asset.contexts_for_user(user).map(&:name).join(", ") %>

<%= t :cancel_reason, 'Reason for canceling' %>

<%= data.cancel_reason || t(:no_reason_given, "none given") %>