summaryrefslogtreecommitdiffstats
path: root/templates/activities/_post.html
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-15 18:50:09 -0700
committerAndrew Godwin2022-11-15 15:50:10 -0700
commit906ed2f27c9105dbd78f416930f1aa2b49497567 (patch)
tree9f15c9a90d0898859eabf09b4a789e130f0d5757 /templates/activities/_post.html
parent2ef709b6421b238025276aa53bf1c3764696a660 (diff)
downloadtakahe-906ed2f27c9105dbd78f416930f1aa2b49497567.tar.gz
takahe-906ed2f27c9105dbd78f416930f1aa2b49497567.tar.bz2
takahe-906ed2f27c9105dbd78f416930f1aa2b49497567.zip
Add CW display
Diffstat (limited to 'templates/activities/_post.html')
-rw-r--r--templates/activities/_post.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/activities/_post.html b/templates/activities/_post.html
index ac21c42..d05f7ad 100644
--- a/templates/activities/_post.html
+++ b/templates/activities/_post.html
@@ -22,7 +22,13 @@
{{ post.author.name_or_handle }} <small>@{{ post.author.handle }}</small>
</a>
- <div class="content">
+ {% if post.summary %}
+ <div class="summary" _="on click toggle .enabled then toggle .hidden on the next .content">
+ {{ post.summary }}
+ </div>
+ {% endif %}
+
+ <div class="content {% if post.summary %}hidden{% endif %}">
{{ post.safe_content }}
</div>