2021-10-15 15:58:49 +02:00
|
|
|
<%= cond do %>
|
2022-04-07 10:33:11 +02:00
|
|
|
<% @end_date == nil -> %>
|
|
|
|
<%= render("date/event_tz_date.html",
|
|
|
|
date: @start_date,
|
|
|
|
event: @event,
|
|
|
|
timezone: @timezone,
|
|
|
|
locale: @locale
|
|
|
|
) %>
|
2021-10-15 15:58:49 +02:00
|
|
|
<% is_same_day?(@start_date, @end_date) -> %>
|
2022-04-07 10:33:11 +02:00
|
|
|
<strong>
|
|
|
|
<%= gettext("On %{date} from %{start_time} to %{end_time}",
|
|
|
|
date: datetime_to_date_string(@start_date, @locale),
|
|
|
|
start_time: datetime_to_time_string(@start_date, @locale),
|
|
|
|
end_time: datetime_to_time_string(@end_date, @locale)
|
|
|
|
) %>
|
|
|
|
</strong>
|
|
|
|
<br />
|
|
|
|
<%= if @event.options.timezone != @timezone do %>
|
|
|
|
<span style="font-size: 13px;">
|
|
|
|
<%= gettext("🌐 %{timezone} %{offset}",
|
|
|
|
timezone: @event.options.timezone,
|
|
|
|
offset: Cldr.DateTime.Formatter.zone_gmt(@start_date)
|
|
|
|
) %>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
2021-10-15 15:58:49 +02:00
|
|
|
<% true -> %>
|
2022-04-07 10:33:11 +02:00
|
|
|
<strong>
|
|
|
|
<%= gettext("From the %{start} to the %{end}",
|
|
|
|
start: datetime_to_string(@start_date, @locale, :short),
|
|
|
|
end: datetime_to_string(@end_date, @locale, :short)
|
|
|
|
) %>
|
|
|
|
</strong>
|
|
|
|
<br />
|
|
|
|
<%= if @event.options.timezone != @timezone do %>
|
|
|
|
<span style="font-size: 13px;">
|
|
|
|
<%= gettext("🌐 %{timezone} %{offset}",
|
|
|
|
timezone: @event.options.timezone,
|
|
|
|
offset: Cldr.DateTime.Formatter.zone_gmt(@start_date)
|
|
|
|
) %>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
2021-10-15 15:58:49 +02:00
|
|
|
<% end %>
|