diff --git a/taiga/base/templates/emails/base.jinja b/taiga/base/templates/emails/base.jinja index 0138a1b7..014b1aed 100644 --- a/taiga/base/templates/emails/base.jinja +++ b/taiga/base/templates/emails/base.jinja @@ -95,7 +95,7 @@ - Taiga + Taiga diff --git a/taiga/base/templatetags/__init__.py b/taiga/base/templatetags/__init__.py new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/taiga/base/templatetags/__init__.py @@ -0,0 +1 @@ + diff --git a/taiga/base/templatetags/functions.py b/taiga/base/templatetags/functions.py new file mode 100644 index 00000000..678630c0 --- /dev/null +++ b/taiga/base/templatetags/functions.py @@ -0,0 +1,24 @@ +# Copyright (C) 2014 Andrey Antukh +# Copyright (C) 2014 Jesús Espino +# Copyright (C) 2014 David Barragán +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +from django_jinja import library +from django_sites.utils import static + +register = library.Library() + +@register.global_function +def full_url_static(text) -> str: + return static(text)