2020-08-10 16:57:26 +02:00
< % = gettext " Event update! " % >
2019-09-30 18:18:04 +02:00
==
2020-08-10 16:57:26 +02:00
< % = gettext " There have been changes for %{title} so we'd thought we'd let you know. " , title : @old_event . title % >
2020-02-18 08:57:00 +01:00
< % = if MapSet . member? ( @changes , :status ) do % >
2020-08-10 16:57:26 +02:00
< % = case @event . status do % >
2020-02-18 08:57:00 +01:00
< % :confirmed -> % >
2020-08-10 16:57:26 +02:00
< % = gettext " This event has been confirmed " % >
2020-02-18 08:57:00 +01:00
< % :tentative -> % >
2020-08-10 16:57:26 +02:00
< % = gettext " This event has yet to be confirmed: organizers will let you know if they do confirm it. " % >
2020-02-18 08:57:00 +01:00
< % :cancelled -> % >
2020-08-10 16:57:26 +02:00
< % = gettext " This event has been cancelled by its organizers. Sorry! " % >
< % end % >
2020-02-18 08:57:00 +01:00
< % end % >
2019-09-30 18:18:04 +02:00
< % = if MapSet . member? ( @changes , :title ) do % >
2020-08-10 16:57:26 +02:00
< % = gettext " New title: %{title} " , title : @event . title % >
2019-09-30 18:18:04 +02:00
< % end % >
< % = if MapSet . member? ( @changes , :begins_on ) do % >
2020-11-16 18:28:52 +01:00
< % = gettext " Start %{begins_on} " , begins_on : @event . begins_on |> datetime_tz_convert ( @timezone ) |> datetime_to_string ( @locale ) % >
2019-09-30 18:18:04 +02:00
< % end % >
2019-10-14 19:29:18 +02:00
< % = if MapSet . member? ( @changes , :ends_on ) && ! is_nil ( @event . ends_on ) do % >
2020-11-16 18:28:52 +01:00
< % = gettext " End %{ends_on} " , ends_on : @event . ends_on |> datetime_tz_convert ( @timezone ) |> datetime_to_string ( @locale ) % >
2019-09-30 18:18:04 +02:00
< % end % >
2021-09-10 11:27:59 +02:00
< % = gettext " Visit the updated event page: %{link} " , link : Routes . page_url ( Mobilizon.Web.Endpoint , :event , @event . uuid ) % >
2020-08-10 16:57:26 +02:00
< % = 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 % >