appointment_group_published.email.mustache 1.2 KB

123456789101112131415161718192021222324252627
  1. <% define_content :link do %>
  2. <%= appointment_group_url(asset) %>
  3. <% end %>
  4. <% define_content :subject do %>
  5. <%= t('subject', 'Appointment "%{appointment_name}" is available for signup (%{course})', :appointment_name => asset.title,
  6. :course => asset.contexts_for_user(user).map(&:name).join(", ")) %>
  7. <% end %>
  8. <%= t :message, 'Time slots for "%{appointment_name}" are now available for signup.', :appointment_name => asset.title %>
  9. <%= before_label :details, "Appointment details" %>
  10. <%= before_label :dates, "Date(s)" %> <%= date_string(asset.start_at, asset.end_at, :no_words) %>
  11. <%= before_label :signup_type, "Signup Type" %> <%=
  12. asset.participant_type == 'Group' ?
  13. t(:group_signup, "Group (%{group_category})", :group_category => asset.sub_contexts.first.name) :
  14. t(:individual_signup, "Individual") %>
  15. <%= before_label :course, "Course" %> <%=
  16. asset.participant_type == 'Group' ?
  17. asset.contexts.first.name :
  18. asset.contexts_for_user(user).map(&:name).join(", ") %>
  19. <% if asset.available_slots -%>
  20. <%= before_label :slots_remaining, "Available time slots" %> <%= asset.available_slots %>
  21. <% end -%>
  22. <%= t :instructions, "Sign up for a time slot at the following link: %{link}", :link => content(:link) %>