<%= gettext("There have been changes for %{title} so we'd thought we'd let you know.", title: @old_event.title) |> raw %>
|
<%= if MapSet.member?(@changes, :status) do %>
<%= case @event.status do %>
<% :confirmed -> %>
<%= gettext "This event has been confirmed" %>
<% :tentative -> %>
<%= gettext "This event has yet to be confirmed: organizers will let you know if they do confirm it." %>
<% :cancelled -> %>
<%= gettext "This event has been cancelled by its organizers. Sorry!" %>
<% end %>
|
<% end %>
<%= if MapSet.member?(@changes, :title) do %>
<%= gettext "Event title" %>
|
<%= @event.title %>
|
<% end %>
<%= if MapSet.member?(@changes, :begins_on) do %>
<%= gettext "Start" %>
|
<%= if @event.options.timezone == nil do %>
<%= @event.begins_on |> datetime_tz_convert(@timezone) |> datetime_to_string(@locale) %>
<% else %>
<%= if @event.options.timezone != @timezone do %>
<%# Event with different timezone than user %>
<%= @event.begins_on |> datetime_tz_convert(@event.options.timezone) |> datetime_to_string(@locale) %>
<%= gettext "🌐 %{timezone} %{offset}", timezone: @event.options.timezone, offset: @event.begins_on |> datetime_tz_convert(@event.options.timezone) |> Cldr.DateTime.Formatter.zone_gmt() %>
<% else %>
<%# Event with same timezone than user %>
<%= @event.begins_on |> datetime_tz_convert(@event.options.timezone) |> datetime_to_string(@locale) %>
<%= gettext "In your timezone (%{timezone} %{offset})", timezone: @event.options.timezone, offset: @event.begins_on |> datetime_tz_convert(@event.options.timezone) |> Cldr.DateTime.Formatter.zone_gmt() %>
<% end %>
<% end %>
|
<% end %>
<%= if MapSet.member?(@changes, :ends_on) && !is_nil(@event.ends_on) do %>
<%= gettext "End" %>
|
<%= @event.ends_on |> datetime_tz_convert(@timezone) |> datetime_to_string(@locale) %>
|
<% end %>
<%= if MapSet.member?(@changes, :physical_address) do %>
<%= gettext "Location" %>
|
<%= unless is_nil(@event.physical_address) do %>
<%= Mobilizon.Addresses.Address.representation(@event.physical_address) %>
|
<% else %>
<%= gettext "Location address was removed" %>
|
<% end %>
<% end %>
|
|
<%= ngettext "Would you wish to cancel your attendance, visit the event page through the link above and click the « Attending » button.", "Would you wish to cancel your attendance to one or several events, visit the event pages through the links above and click the « Attending » button.", 1 %>
|
|