forked from AkkomaGang/akkoma
Expand subject content automatically when config is set.
This commit is contained in:
parent
bfd5d79826
commit
e27c61218d
2 changed files with 8 additions and 1 deletions
|
@ -38,4 +38,11 @@ def format_date(date) do
|
||||||
end
|
end
|
||||||
|
|
||||||
def instance_name, do: Pleroma.Config.get([:instance, :name], "Pleroma")
|
def instance_name, do: Pleroma.Config.get([:instance, :name], "Pleroma")
|
||||||
|
|
||||||
|
def open_content? do
|
||||||
|
Pleroma.Config.get(
|
||||||
|
[:frontend_configurations, :collapse_message_with_subjects],
|
||||||
|
true
|
||||||
|
)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<%= render("_user_card.html", %{user: @user}) %>
|
<%= render("_user_card.html", %{user: @user}) %>
|
||||||
<div class="activity-content">
|
<div class="activity-content">
|
||||||
<%= if @title != "" do %>
|
<%= if @title != "" do %>
|
||||||
<details>
|
<details <%= if open_content?() do %>open<% end %>>
|
||||||
<summary><%= raw @title %></summary>
|
<summary><%= raw @title %></summary>
|
||||||
<div class="e-content"><%= raw @content %></div>
|
<div class="e-content"><%= raw @content %></div>
|
||||||
</details>
|
</details>
|
||||||
|
|
Loading…
Reference in a new issue