Format LiveView templates after adding the LiveView formatter plugin

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-04-07 10:33:11 +02:00
parent bde831299d
commit 4f92add78d
47 changed files with 2557 additions and 1210 deletions

View File

@@ -1,8 +1,21 @@
<%= if @event.options.timezone == nil do %>
<%= @date |> datetime_tz_convert(@timezone) |> datetime_to_string(@locale , :short) %>
<%= @date |> datetime_tz_convert(@timezone) |> datetime_to_string(@locale, :short) %>
<% else %>
<strong><%= @date |> datetime_tz_convert(@event.options.timezone) |> datetime_to_string(@locale, :short) %></strong><br />
<strong>
<%= @date
|> datetime_tz_convert(@event.options.timezone)
|> datetime_to_string(@locale, :short) %>
</strong>
<br />
<%= if @event.options.timezone != @timezone do %>
<span style="font-size: 13px;"><%= gettext "🌐 %{timezone} %{offset}", timezone: @event.options.timezone, offset: @date |> datetime_tz_convert(@event.options.timezone) |> Cldr.DateTime.Formatter.zone_gmt() %></span>
<span style="font-size: 13px;">
<%= gettext("🌐 %{timezone} %{offset}",
timezone: @event.options.timezone,
offset:
@date
|> datetime_tz_convert(@event.options.timezone)
|> Cldr.DateTime.Formatter.zone_gmt()
) %>
</span>
<% end %>
<% end %>