1 <div class="activity" <%= if @selected do %> id="selected" <% end %>>
3 <%= link format_date(@published), to: @link, class: "activity-link" %>
5 <%= render("_user_card.html", %{user: @user}) %>
6 <div class="activity-content">
7 <%= if @title != "" do %>
8 <details <%= if open_content?() do %>open<% end %>>
9 <summary><%= raw @title %></summary>
10 <div class="e-content"><%= raw @content %></div>
13 <div class="e-content"><%= raw @content %></div>
15 <%= for %{"name" => name, "url" => [url | _]} <- @attachment do %>
16 <%= if @sensitive do %>
17 <details class="nsfw">
18 <summary><%= Gettext.gettext("sensitive media") %></summary>
20 <%= render("_attachment.html", %{name: name, url: url["href"],
21 mediaType: fetch_media_type(url)}) %>
25 <%= render("_attachment.html", %{name: name, url: url["href"],
26 mediaType: fetch_media_type(url)}) %>
30 <%= if @selected do %>
32 <dt><%= Gettext.gettext("replies") %></dt><dd><%= @counts.replies %></dd>
33 <dt><%= Gettext.gettext("announces") %></dt><dd><%= @counts.announces %></dd>
34 <dt><%= Gettext.gettext("likes") %></dt><dd><%= @counts.likes %></dd>