static fe: add support for message subjects
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 2 Mar 2019 22:35:54 +0000 (22:35 +0000)
committerPhil Hagelberg <phil@hagelb.org>
Sun, 10 Nov 2019 02:06:51 +0000 (18:06 -0800)
lib/pleroma/web/templates/static_fe/static_fe/notice.html.eex

index e8d905d79b005c9718fc2e9ff69586f8358b5dc3..791bd256205c20a8c9b0068e2dff9d0878367900 100644 (file)
@@ -1,6 +1,13 @@
 <div class="activity">
   <%= render("user_card.html", %{user: @data.user}) %>
   <div class="activity-content">
-    <div class="e-content"><%= raw @data.content %></div>
+    <%= if @data.title do %>
+    <details>
+      <summary><%= raw @data.title %></summary>
+    <% end %>
+      <div class="e-content"><%= raw @data.content %></div>
+    <%= if @data.title do %>
+    </details>
+    <% end %>
   </div>
 </div>