2011-02-01 09:57:29 +08:00
|
|
|
<% define_content :link do %>
|
2014-03-14 01:44:09 +08:00
|
|
|
<%= polymorphic_url([asset.context, asset]) %>
|
2011-02-01 09:57:29 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% define_content :subject do %>
|
2011-07-01 06:40:25 +08:00
|
|
|
<%= t('subject', 'New Event - %{event_title}, %{course_name}', :event_title => asset.title, :course_name => asset.context.name) %>
|
2011-02-01 09:57:29 +08:00
|
|
|
<% end %>
|
|
|
|
|
2011-07-01 06:40:25 +08:00
|
|
|
<%= t('body', "There's a new event scheduled for %{course_name} that you should be aware of:", :course_name => asset.context.name) %>
|
2011-02-01 09:57:29 +08:00
|
|
|
|
2014-05-22 04:10:10 +08:00
|
|
|
<%= asset.title %>
|
2011-02-01 09:57:29 +08:00
|
|
|
|
2011-07-01 06:40:25 +08:00
|
|
|
<% 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)) %>
|
2011-02-01 09:57:29 +08:00
|
|
|
<% else %>
|
2011-07-01 06:40:25 +08:00
|
|
|
<%= 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))) %>
|
2011-02-01 09:57:29 +08:00
|
|
|
<% end %>
|
|
|
|
|
2011-07-01 06:40:25 +08:00
|
|
|
<%= before_label('see_details', 'You can see details here') %>
|
2014-05-22 04:10:10 +08:00
|
|
|
<%= content :link %>
|