Merge branch 'issue/1348' into 'develop'
[akkoma] / lib / pleroma / web / templates / static_fe / static_fe / _notice.html.eex
1 <div class="activity" <%= if @selected do %> id="selected" <% end %>>
2 <p class="pull-right">
3 <%= link format_date(@published), to: @link, class: "activity-link" %>
4 </p>
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>
11 </details>
12 <% else %>
13 <div class="e-content"><%= raw @content %></div>
14 <% end %>
15 <%= for %{"name" => name, "url" => [url | _]} <- @attachment do %>
16 <%= if @sensitive do %>
17 <details class="nsfw">
18 <summary><%= Gettext.gettext("sensitive media") %></summary>
19 <div>
20 <%= render("_attachment.html", %{name: name, url: url["href"],
21 mediaType: fetch_media_type(url)}) %>
22 </div>
23 </details>
24 <% else %>
25 <%= render("_attachment.html", %{name: name, url: url["href"],
26 mediaType: fetch_media_type(url)}) %>
27 <% end %>
28 <% end %>
29 </div>
30 <%= if @selected do %>
31 <dl class="counts">
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>
35 </dl>
36 <% end %>
37 </div>