From cd5b1b97fdf3a31f46664102b226a5bd586dbcec Mon Sep 17 00:00:00 2001 From: imacat Date: Mon, 6 Feb 2023 09:47:19 +0800 Subject: [PATCH] Added a different the page title of the search result in the base account list and account list, to be clear. --- src/accounting/templates/accounting/account/list.html | 2 +- src/accounting/templates/accounting/base-account/list.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/accounting/templates/accounting/account/list.html b/src/accounting/templates/accounting/account/list.html index bc3f211..c5497dc 100644 --- a/src/accounting/templates/accounting/account/list.html +++ b/src/accounting/templates/accounting/account/list.html @@ -21,7 +21,7 @@ First written: 2023/1/30 #} {% extends "accounting/base.html" %} -{% block header %}{% block title %}{{ A_("Account Management") }}{% endblock %}{% endblock %} +{% block header %}{% block title %}{% if "q" in request.args %}{{ A_("Search Result for \"%(query)s\"", query=request.args["q"]) }}{% else %}{{ A_("Account Management") }}{% endif %}{% endblock %}{% endblock %} {% block content %} diff --git a/src/accounting/templates/accounting/base-account/list.html b/src/accounting/templates/accounting/base-account/list.html index a7286df..4b82ae1 100644 --- a/src/accounting/templates/accounting/base-account/list.html +++ b/src/accounting/templates/accounting/base-account/list.html @@ -21,7 +21,7 @@ First written: 2023/1/26 #} {% extends "accounting/base.html" %} -{% block header %}{% block title %}{{ A_("Base Account Managements") }}{% endblock %}{% endblock %} +{% block header %}{% block title %}{% if "q" in request.args %}{{ A_("Search Result for \"%(query)s\"", query=request.args["q"]) }}{% else %}{{ A_("Base Account Managements") }}{% endif %}{% endblock %}{% endblock %} {% block content %}