From 7283ba134c16d8efe70eeb17efd122c3367b99e1 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 27 Aug 2022 09:45:14 +0200 Subject: [PATCH] Tweak templates --- app/templates/utils.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/templates/utils.html b/app/templates/utils.html index bc22688..560e075 100644 --- a/app/templates/utils.html +++ b/app/templates/utils.html @@ -154,9 +154,10 @@ {% endmacro %} -{% macro admin_expand_button(ap_object_id) %} +{% macro admin_expand_button(ap_object) %} +{# TODO turn these into a regular link and append permalink ID if it's a reply #}
- +
{% endmacro %} @@ -502,7 +503,7 @@ {% if (object.is_from_outbox or is_admin) and object.replies_count %}
  • - {{ object.replies_count }} repl{{ object.replies_count | pluralize("y", "ies") }} + {{ object.replies_count }} repl{{ object.replies_count | pluralize("y", "ies") }}
  • {% endif %} @@ -565,7 +566,7 @@ {% endif %} {% if object.is_from_inbox or object.is_from_outbox %}
  • - {{ admin_expand_button(object.ap_id) }} + {{ admin_expand_button(object) }}
  • {% endif %}