2021-10-15 15:58:49 +02:00
|
|
|
<table style="border-spacing: 0; border-collapse: collapse; vertical-align: baseline; text-align: left; width: 100%; display: table; margin: 0; padding: 0; border: 0;">
|
|
|
|
<tbody style="vertical-align: baseline; margin: 0; padding: 0; border: 0;">
|
|
|
|
<tr style="vertical-align: baseline; margin: 0; padding: 0; border: 0;" align="left">
|
2022-04-07 10:33:11 +02:00
|
|
|
<td
|
|
|
|
style="word-wrap: break-word; border-collapse: collapse; color: rgb(10,10,10); font-family: Helvetica,Arial,sans-serif; font-weight: normal; line-height: 1.3; font-size: 16px; margin: 0; padding: 0; border: 0;"
|
|
|
|
valign="baseline"
|
|
|
|
align="left"
|
|
|
|
>
|
|
|
|
<a
|
2023-12-01 09:49:54 +01:00
|
|
|
href={url(~p"/events/#{@event.uuid}")}
|
2022-04-07 10:33:11 +02:00
|
|
|
style="color: rgb(66,81,90); font-family: Helvetica,Arial,sans-serif; font-weight: 700; text-align: left; line-height: 1.4; text-decoration: none; vertical-align: baseline; font-size: 22px; letter-spacing: 0.2px; margin: 0 0 30px; padding: 0; border: 0;"
|
|
|
|
target="_blank"
|
|
|
|
>
|
2021-11-10 16:36:32 +01:00
|
|
|
<%= @event.title %>
|
|
|
|
</a>
|
2021-10-15 15:58:49 +02:00
|
|
|
<div style="vertical-align: baseline; width: 100%; margin: 0 0 0 10px; padding: 0; border: 0;display: flex;">
|
|
|
|
<%= cond do %>
|
|
|
|
<% @event.attributed_to != nil and @event.attributed_to.avatar != nil && @event.attributed_to.avatar.url != nil -> %>
|
2022-04-07 10:33:11 +02:00
|
|
|
<img
|
|
|
|
style="float: left;border-radius: 75%;margin-right: 8px;max-width: 30px;margin-top: auto;margin-bottom: 5px;"
|
|
|
|
src={@event.attributed_to.avatar.url}
|
|
|
|
/>
|
2021-10-15 15:58:49 +02:00
|
|
|
<% @event.organizer_actor.avatar != nil and @event.organizer_actor.avatar.url != nil -> %>
|
2022-04-07 10:33:11 +02:00
|
|
|
<img
|
|
|
|
style="float: left;border-radius: 75%;margin-right: 8px;max-width: 30px;margin-top: auto;margin-bottom: 5px;"
|
|
|
|
src={@event.organizer_actor.avatar.url}
|
|
|
|
/>
|
2021-10-15 15:58:49 +02:00
|
|
|
<% true -> %>
|
|
|
|
<% end %>
|
2021-11-10 16:36:32 +01:00
|
|
|
<div style="vertical-align: top; float: left; width: 75%; margin: 0; padding: 0; border: 0;">
|
2022-04-07 10:33:11 +02:00
|
|
|
<p
|
|
|
|
style="font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 1.5; font-size: 16px; vertical-align: baseline; margin: 0; padding: 0; border: 0;"
|
|
|
|
align="left"
|
|
|
|
>
|
2021-10-15 15:58:49 +02:00
|
|
|
<%= if @event.attributed_to do %>
|
2022-04-07 10:33:11 +02:00
|
|
|
<a
|
|
|
|
href={
|
2023-12-01 09:49:54 +01:00
|
|
|
URI.decode(
|
|
|
|
url(
|
|
|
|
~p"/@#{Mobilizon.Actors.Actor.preferred_username_and_domain(@event.attributed_to)}"
|
|
|
|
)
|
2022-04-07 10:33:11 +02:00
|
|
|
)
|
|
|
|
}
|
|
|
|
style="color: rgb(254,56,89); font-family: Helvetica,Arial,sans-serif; font-weight: normal; text-align: left; line-height: 1.3; text-decoration: none; vertical-align: baseline; margin: 0; padding: 0; border: 0;"
|
|
|
|
target="_blank"
|
|
|
|
>
|
2021-10-15 15:58:49 +02:00
|
|
|
<%= @event.attributed_to.name || @event.attributed_to.preferred_username %>
|
|
|
|
</a>
|
|
|
|
<% else %>
|
2021-11-10 16:36:32 +01:00
|
|
|
<span style="font-family: Helvetica,Arial,sans-serif; font-weight: normal; text-align: left; line-height: 1.3; text-decoration: none; vertical-align: baseline; margin: 0; padding: 0; border: 0;">
|
2021-10-15 15:58:49 +02:00
|
|
|
<%= @event.organizer_actor.name || @event.organizer_actor.preferred_username %>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|