Improve emails

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-10-15 15:58:49 +02:00
parent aca2ed612e
commit bd4fad3c58
15 changed files with 211 additions and 63 deletions

View File

@@ -45,22 +45,12 @@
<ul style="margin: 0;">
<%= for participation <- @participations do %>
<li>
<strong>
<%= participation.event.begins_on |> DateTime.shift_zone!(@timezone) |> datetime_to_time_string(@locale) %>
</strong>
<a href={"#{ Routes.page_url(Mobilizon.Web.Endpoint, :event, participation.event.uuid) }"} target="_blank">
<%= participation.event.title %>
</a>
<%= render("participation/event_card.html", event: participation.event, timezone: @timezone, locale: @locale) %>
</li>
<% end %>
</ul>
<% else %>
<strong>
<%= @participation.event.begins_on |> DateTime.shift_zone!(@timezone) |> datetime_to_time_string(@locale) %>
</strong>
<a href={"#{ Routes.page_url(Mobilizon.Web.Endpoint, :event, @participation.event.uuid) }"} target="_blank">
<%= @participation.event.title %>
</a>
<%= render("participation/event_card.html", event: @participation.event, timezone: @timezone, locale: @locale) %>
<% end %>
</td>
</tr>