aboutsummaryrefslogtreecommitdiff
path: root/cli/onionshare_cli/web/receive_mode.py
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2021-04-12 18:15:51 -0400
committerMicah Lee <micah@micahflee.com>2021-04-12 18:15:51 -0400
commit1543bb38d236248f0e3676dbe57dde7256621bee (patch)
tree179b12c0141ed3dd42737bcef7d5a46ed248e15b /cli/onionshare_cli/web/receive_mode.py
parentb5c68fa5ca63b6a592ac2cfb75179a83222d55ac (diff)
downloadonionshare-1543bb38d236248f0e3676dbe57dde7256621bee.tar.gz
onionshare-1543bb38d236248f0e3676dbe57dde7256621bee.zip
Show the custom title in all modes
Diffstat (limited to 'cli/onionshare_cli/web/receive_mode.py')
-rw-r--r--cli/onionshare_cli/web/receive_mode.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/onionshare_cli/web/receive_mode.py b/cli/onionshare_cli/web/receive_mode.py
index 46f471a8..21e83f58 100644
--- a/cli/onionshare_cli/web/receive_mode.py
+++ b/cli/onionshare_cli/web/receive_mode.py
@@ -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)