diff --git a/templates/components/logout.html b/templates/components/logout.html index de4ee17dc..391a02500 100644 --- a/templates/components/logout.html +++ b/templates/components/logout.html @@ -6,16 +6,18 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE files in the repository root for full details. -#} -{% macro button(text, csrf_token, as_link=false, post_logout_action={}) %} -
+{% macro button(csrf_token, text="", as_link=false, post_logout_action={}) %} + {% for key, value in post_logout_action|items %} {% endfor %} - {% if as_link %} - + {% if caller %} + {{ caller() }} + {% elif as_link %} + {% else %} - + {% endif %}
{% endmacro %}