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