From 2ad961992986b66adb070f4d881acec2a6c9ef00 Mon Sep 17 00:00:00 2001 From: Jeena Date: Thu, 13 Jul 2017 21:14:36 +0200 Subject: [PATCH] Show likes, reposts, bookmarks and listens Untill now all those haven't been handled in any special way and therefor were sometimes just simply empty if the post didn't add any content. This patch shows the liked, etc., url in the feed instead it being a entry without any content. --- woodwind/templates/_entry.jinja2 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/woodwind/templates/_entry.jinja2 b/woodwind/templates/_entry.jinja2 index 4618cb7..f10d089 100644 --- a/woodwind/templates/_entry.jinja2 +++ b/woodwind/templates/_entry.jinja2 @@ -65,6 +65,25 @@ {% endif %} + {% set ofs = ['like', 'bookmark', 'repost', 'listen'] %} + {% for of in ofs %} + {% set properties = entry.get_property(of + "-of") %} + {% if properties %} +
+ {% for property in properties %} +

+ {% if of == "like" %} + Liked: + {% else %} + {{ of | title }}ed: + {% endif %} + {{ property }} +

+ {% endfor %} +
+ {% endif %} + {% endfor %} + {% if entry.content %}
{{ entry.content_cleaned | proxy_all | add_preview }}