canvas-lms/app/messages/new_event_created.sms.erb

13 lines
635 B
Plaintext

<%= t('subject', "New event for %{course_name}:", :course_name => asset.context.name) %>
<%= asset.title %>
<% if !asset.start_at && !asset.end_at %>
<%= t('no_time_set', 'No Time Set') %>
<% elsif (asset.start_at == asset.end_at || !asset.end_at) %>
<%= datetime_string(force_zone(asset.start_at)) %>
<% else %>
<%= 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))) %>
<% end %>
<%= t('more_info', 'More info at %{web_address}', :web_address => HostUrl.context_host(asset.context)) %>