diff --git a/basicswap/http_server.py b/basicswap/http_server.py index 4fe91ec..6681c57 100644 --- a/basicswap/http_server.py +++ b/basicswap/http_server.py @@ -131,7 +131,7 @@ class HttpHandler(BaseHTTPRequestHandler): self.server.last_form_id[name] = form_id return form_data - def render_template(self, template, args_dict, status_code=200): + def render_template(self, template, args_dict, status_code=200, version=__version__): swap_client = self.server.swap_client if swap_client.ws_server: args_dict['ws_url'] = swap_client.ws_server.url @@ -175,6 +175,8 @@ class HttpHandler(BaseHTTPRequestHandler): if self.server.msg_id_counter >= 0x7FFFFFFF: self.server.msg_id_counter = 0 + args_dict['version'] = version + self.putHeaders(status_code, 'text/html') return bytes(template.render( title=self.server.title, @@ -381,11 +383,11 @@ class HttpHandler(BaseHTTPRequestHandler): template = env.get_template('index.html') return self.render_template(template, { 'refresh': 30, - 'version': __version__, 'summary': summary, 'use_tor_proxy': swap_client.use_tor_proxy }) + def page_404(self, url_split): swap_client = self.server.swap_client summary = swap_client.getSummary() diff --git a/basicswap/templates/error.html b/basicswap/templates/error.html index 620e2e1..84fb999 100644 --- a/basicswap/templates/error.html +++ b/basicswap/templates/error.html @@ -3,7 +3,7 @@
-© 2023~
-{{ title }}
-GUI 2.0.2
+© 2023~ (BSX) BasicSwap
+BSX: v{{ version }}
+GUI: v2.0.2
Made with
by TV and CRZSwap cryptocurrencies in total privacy with no middlemen, fees,
or restrictions.
Automatically adjusts the You Get value based on the rate you’ve entered. Without it, the rate value is automatically adjusted based on the number of coins you put in You Get.
+Options
Allow bids with a different amount to the offer.
Allow bids with a different rate to the offer.
++ {{ title }} - GUI 2.0.2 +
diff --git a/basicswap/templates/wallet.html b/basicswap/templates/wallet.html index 571fc1b..728a7ae 100644 --- a/basicswap/templates/wallet.html +++ b/basicswap/templates/wallet.html @@ -39,7 +39,7 @@Manage your {{ w.ticker }} wallet. {% if refresh %} (Page Refresh: {{ refresh }} seconds) {% endif %}
@@ -206,15 +206,33 @@