From 29936813f01d60f3301322832b14c27e3ee8131a Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Thu, 21 Nov 2024 10:01:50 -0800 Subject: [PATCH] refactor: downloads remaining block in link.html --- templates/link.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/link.html b/templates/link.html index 287cbc5..9be1b64 100644 --- a/templates/link.html +++ b/templates/link.html @@ -12,7 +12,9 @@ hx-get="/link/{{ id }}/remaining" hx-trigger="click from:#link delay:0.2s, every 60s" > - {{ self::get_downloads_remaining_text(record) }} + {% block downloads_remaining %} + {{ self::get_downloads_remaining_text(record) }} + {% endblock downloads_remaining %}