From 8b166633c97107867bbe8f5be4d5c78d245e0293 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 3 Jun 2018 12:15:30 +0200 Subject: [PATCH] make the boost/unboost actions use the new user API --- templates/utils.html | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/templates/utils.html b/templates/utils.html index a8255d9..33dc7e1 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -62,19 +62,32 @@
{% if perma %}{{ item.activity.object.published | format_time }} {% endif %} permalink + {% if item.meta.count_reply %}{{ item.meta.count_reply }} replies{% endif %} {% if item.meta.count_boost %}{{ item.meta.count_boost }} boosts{% endif %} {% if item.meta.count_like %}{{ item.meta.count_like }} likes{% endif %} + {% if ui %} + {% set aid = item.activity.object.id | quote_plus %} reply {% set redir = request.path + "#activity-" + item['_id'].__str__() %} {% if item.meta.boosted %} -unboost +
+ + + + +
{% else %} -boost +
+ + + + +
{% endif %} {% if item.meta.liked %}