diff --git a/files/__main__.py b/files/__main__.py index 56b68dbab..aa5ba92d7 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -102,6 +102,9 @@ def before_request(): url = request.url.replace("http://", "https://", 1) return redirect(url, code=301) + if '; wv) ' in request.headers.get("User-Agent",""): g.webview = True + else: g.webview = False + @app.teardown_appcontext def teardown_request(error): if hasattr(g, 'db') and g.db: diff --git a/files/templates/admin/apps.html b/files/templates/admin/apps.html index 5b0ea277f..ab0d8aed2 100644 --- a/files/templates/admin/apps.html +++ b/files/templates/admin/apps.html @@ -14,7 +14,7 @@
Please verify your email address in order to ensure we can respond to your message if needed. Then, refresh this page.
+Please verify your email address in order to ensure we can respond to your message if needed. Then, refresh this page.
{% else %} -In order to ensure that we can respond to your message, please first sign up or log in and make sure you have verified your email address. Then, refresh this page.
+In order to ensure that we can respond to your message, please first sign up or log in and make sure you have verified your email address. Then, refresh this page.
{% endif %} diff --git a/files/templates/sign_up.html b/files/templates/sign_up.html index 53e944222..33b396b16 100644 --- a/files/templates/sign_up.html +++ b/files/templates/sign_up.html @@ -112,7 +112,7 @@