1 <div class="activity h-entry" <%= if @selected do %> id="selected" <% end %>>
3 <a class="activity-link u-url u-uid" href="<%= @link %>">
4 <time class="dt-published" datetime="<%= @published %>">
5 <%= format_date(@published) %>
9 <%= render("_user_card.html", %{user: @user}) %>
10 <div class="activity-content">
11 <%= if @title != "" do %>
12 <details <%= if open_content?() do %>open<% end %>>
13 <summary class="p-name"><%= raw @title %></summary>
14 <div class="e-content"><%= raw @content %></div>
17 <div class="e-content"><%= raw @content %></div>
19 <%= for %{"name" => name, "url" => [url | _]} <- @attachment do %>
20 <%= if @sensitive do %>
21 <details class="nsfw">
22 <summary><%= Gettext.gettext("sensitive media") %></summary>
24 <%= render("_attachment.html", %{name: name, url: url["href"],
25 mediaType: fetch_media_type(url)}) %>
29 <%= render("_attachment.html", %{name: name, url: url["href"],
30 mediaType: fetch_media_type(url)}) %>
34 <%= if @selected do %>
36 <dt><%= Gettext.gettext("replies") %></dt><dd><%= @counts.replies %></dd>
37 <dt><%= Gettext.gettext("announces") %></dt><dd><%= @counts.announces %></dd>
38 <dt><%= Gettext.gettext("likes") %></dt><dd><%= @counts.likes %></dd>