From a25c992d5ce9018ab9da4fb28a3f62dad1bf5f26 Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Sat, 19 Apr 2025 02:34:16 -0300 Subject: [PATCH] feat(cotton): convert help icon to cotton template; allow setting custom icon --- app/templates/{includes => cotton/ui}/help_icon.html | 3 ++- app/templates/cotton/ui/info_card.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) rename app/templates/{includes => cotton/ui}/help_icon.html (57%) diff --git a/app/templates/includes/help_icon.html b/app/templates/cotton/ui/help_icon.html similarity index 57% rename from app/templates/includes/help_icon.html rename to app/templates/cotton/ui/help_icon.html index a4b9b86..4ab9dfa 100644 --- a/app/templates/includes/help_icon.html +++ b/app/templates/cotton/ui/help_icon.html @@ -1,7 +1,8 @@ {% spaceless %} +{% load i18n %} - + {% endspaceless %} diff --git a/app/templates/cotton/ui/info_card.html b/app/templates/cotton/ui/info_card.html index 83d7cc5..a1030fd 100644 --- a/app/templates/cotton/ui/info_card.html +++ b/app/templates/cotton/ui/info_card.html @@ -3,7 +3,7 @@ {% if icon %}{% else %}{{ title.0 }}{% endif %}
-
{{ title }}{% if help_text %}{% include 'includes/help_icon.html' with content=help_text %}{% endif %}
+
{{ title }}{% if help_text %}{% endif %}
{{ slot }}