From 0b34913c6e3b88d10dbdf91df11a65ed539fb01f Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 5 Sep 2019 23:16:23 +0200 Subject: [PATCH] Template tweak/fixes --- templates/stream.html | 17 ++++++++++++++++- templates/utils.html | 3 ++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/templates/stream.html b/templates/stream.html index 5aee710..1bc1947 100644 --- a/templates/stream.html +++ b/templates/stream.html @@ -27,7 +27,7 @@ {% if following %}
- +
@@ -163,6 +163,7 @@ new follower {% if item.meta.notification_unread %}new{% endif %} {{ (item.activity.published or item.meta.published) | format_timeago }} + profile {% if item.meta.notification_follows_back %}already following {% else %}
@@ -182,9 +183,23 @@ you started following {% if item.meta.notification_unread %}new{% endif %} {{ (item.activity.published or item.meta.published) | format_timeago }} + profile {% if item.meta.notification_follows_back %}follows you back{% endif %} +
+ {{ utils.display_actor_inline(item.meta.actor, size=50) }} +
+ + {% elif item | has_type('Reject') %} +
+ rejected your follow request + {% if item.meta.notification_unread %}new{% endif %} + {{ (item.activity.published or item.meta.published) | format_timeago }} + profile + {% if item.meta.notification_follows_back %}follows you{% endif %} +
+
{{ utils.display_actor_inline(item.meta.actor, size=50) }}
diff --git a/templates/utils.html b/templates/utils.html index 32683fa..26a392c 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -204,7 +204,8 @@ self reply {% endif %} {% for a in obj.attachment %} {% if (a.mediaType and a.mediaType.startswith("image/")) or (a.type and a.type == 'Image') %} - + + {% elif (a.mediaType and a.mediaType.startswith("video/")) %}
  • {% elif (a.mediaType and a.mediaType.startswith("audio/")) %}