summaryrefslogtreecommitdiffstats
path: root/templates/activities/_post.html
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-16 06:53:39 -0700
committerAndrew Godwin2022-11-16 13:53:40 -0700
commit495e955378d62dc439c4c210785e5d401bc77f64 (patch)
tree859813b06314f387470295e752d1f1b3828830a7 /templates/activities/_post.html
parent906ed2f27c9105dbd78f416930f1aa2b49497567 (diff)
downloadtakahe-495e955378d62dc439c4c210785e5d401bc77f64.tar.gz
takahe-495e955378d62dc439c4c210785e5d401bc77f64.tar.bz2
takahe-495e955378d62dc439c4c210785e5d401bc77f64.zip
Tag and visibility handling
Diffstat (limited to 'templates/activities/_post.html')
-rw-r--r--templates/activities/_post.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/activities/_post.html b/templates/activities/_post.html
index d05f7ad..6392c89 100644
--- a/templates/activities/_post.html
+++ b/templates/activities/_post.html
@@ -9,6 +9,15 @@
{% endif %}
<time>
+ {% if post.visibility == 0 %}
+ <i class="visibility fa-solid fa-earth-oceania" title="Public"></i>
+ {% elif post.visibility == 1 %}
+ <i class="visibility fa-solid fa-lock-open" title="Unlisted"></i>
+ {% elif post.visibility == 2 %}
+ <i class="visibility fa-solid fa-lock" title="Followers Only"></i>
+ {% elif post.visibility == 3 %}
+ <i class="visibility fa-solid fa-at" title="Mentioned Only"></i>
+ {% endif %}
<a href="{{ post.url }}">
{% if post.published %}
{{ post.published | timedeltashort }}
@@ -36,6 +45,11 @@
<div class="actions">
{% include "activities/_like.html" %}
{% include "activities/_boost.html" %}
+ {% if request.user.admin %}
+ <a title="Admin" href="/djadmin/activities/post/{{ post.pk }}/change/">
+ <i class="fa-solid fa-file-code"></i>
+ </a>
+ {% endif %}
</div>
{% endif %}
</div>