Show the custom title in all modes

This commit is contained in:
Micah Lee 2021-04-12 18:15:51 -04:00
parent 024cc83943
commit 3d9ca3f1ec
7 changed files with 61 additions and 51 deletions

View file

@ -64,7 +64,9 @@ class ReceiveModeWeb:
self.web.add_request(self.web.REQUEST_LOAD, request.path)
r = make_response(
render_template(
"receive.html", static_url_path=self.web.static_url_path
"receive.html",
static_url_path=self.web.static_url_path,
title=self.web.settings.get("general", "title"),
)
)
return self.web.add_security_headers(r)
@ -168,6 +170,7 @@ class ReceiveModeWeb:
"new_body": render_template(
"thankyou.html",
static_url_path=self.web.static_url_path,
title=self.web.settings.get("general", "title"),
)
}
)
@ -176,6 +179,7 @@ class ReceiveModeWeb:
r = make_response(
render_template("thankyou.html"),
static_url_path=self.web.static_url_path,
title=self.web.settings.get("general", "title"),
)
return self.web.add_security_headers(r)