25/lib/mse25_web/controllers/item_html/event.html.heex

38 lines
1.2 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<article class="event card" vocab="https://schema.org/" typeof="Event Review">
<h1 property="name"><%= @heading %></h1>
<ul>
<li property="description"><%= @lead %></li>
<li class="sr-only">
<span property="startDate"><%= @started_at %></span><span property="endDate"><%= @ended_at %></span>
</li>
<%= if opening_acts?(%{"bands" => @bands, "category" => @category}) do %>
<li>
Huvudakt:
<span property="performer">
<%= @bands |> List.first() |> Map.get("artists_id") |> Map.get("name") %>
</span>
</li>
<li>Förband: <%= @bands |> Enum.drop(1) |> rdfa_bandlist() |> raw %></li>
<% end %>
<%= if hilights?(%{"bands" => @bands, "category" => @category}) do %>
<li>Personliga höjdpunkter: <%= @bands |> rdfa_bandlist() |> raw %></li>
<% end %>
<%= if missed?(%{"mia" => @mia, "category" => @category}) do %>
<li>Band jag missade: <%= @mia |> bandlist() %></li>
<% end %>
</ul>
<div property="reviewBody">
<%= raw(@contents) %>
</div>
<%= if @poster do %>
<img
property="image"
src={"https://n.madr.se/assets/" <> @poster <> "?key=poster"}
alt="affisch"
loading="lazy"
/>
<% end %>
</article>