new_event_created.sms.mustache 608 B

1234567891011121314
  1. <%= t "New event for %{course_name}", :course_name => asset.context.name %>
  2. <%= asset.title %>
  3. <% if !asset.start_at && !asset.end_at %>
  4. {{#t}}No Time Set{{/t}}
  5. <% elsif (asset.start_at == asset.end_at || !asset.end_at) %>
  6. <%= datetime_string(force_zone(asset.start_at)) %>
  7. <% else %>
  8. <%= 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))) %>
  9. <% end %>
  10. <%= t('more_info', 'More info at %{web_address}', :web_address => HostUrl.context_host(asset.context)) %>