new_event_created.email.html.mustache 1.0 KB

12345678910111213141516171819202122232425262728
  1. <% define_content :link do %>
  2. <%= polymorphic_url([asset.context, asset]) %>
  3. <% end %>
  4. <% define_content :subject do %>
  5. <%= t('subject', 'New Event - %{event_title}, %{course_name}', :event_title => asset.title, :course_name => asset.context.name) %>
  6. <% end %>
  7. <% define_content :footer_link do %>
  8. <a href="<%= content(:link) %>">
  9. <%= t 'see_details', 'You can see details here' %>
  10. </a>
  11. <% end %>
  12. <p><%= t('body', "There's a new event scheduled for %{course_name} that you should be aware of:", :course_name => asset.context.name) %></p>
  13. <p><strong><%= asset.title %></strong></p>
  14. <p><em style="color: #00ae00;">
  15. <% if !asset.start_at && !asset.end_at %>
  16. {{#t}}No Time Set{{/t}}
  17. <% elsif (asset.start_at == asset.end_at || !asset.end_at) %>
  18. <%= datetime_string(force_zone(asset.start_at)) %>
  19. <% else %>
  20. <%= t('from_to_time', 'from %{start_date_time} to %{end_date_time}', :start_date_time => datetime_string(force_zone(asset.start_at)), :end_date_time => datetime_string(force_zone(asset.end_at))) %>
  21. <% end %>
  22. </em></p>