aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2019-03-02 22:35:54 +0000
committerPhil Hagelberg <phil@hagelb.org>2019-11-09 18:06:51 -0800
commitb33fbd58e3852fc9de58917fafbb2c575a21dde1 (patch)
tree74a1a372734707bab957308c4bb7245bac253cfb /lib
parente2904b5777ecf6c8ffe7fe46f09284bb38b03fc2 (diff)
downloadpleroma-b33fbd58e3852fc9de58917fafbb2c575a21dde1.tar.gz
static fe: add support for message subjects
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/templates/static_fe/static_fe/notice.html.eex9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/pleroma/web/templates/static_fe/static_fe/notice.html.eex b/lib/pleroma/web/templates/static_fe/static_fe/notice.html.eex
index e8d905d79..791bd2562 100644
--- a/lib/pleroma/web/templates/static_fe/static_fe/notice.html.eex
+++ b/lib/pleroma/web/templates/static_fe/static_fe/notice.html.eex
@@ -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>