From 95bbfb7e05aa67301bdeb0d5cce438fc00346cb5 Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 10 Oct 2019 01:53:01 -0700 Subject: [PATCH] Variable changes Moving more variables to the template --- app_settings.py | 5 ++--- static/main.css | 6 +++--- templates/about.html | 2 ++ templates/homepage.html | 1 - templates/settings.html | 4 ++-- templates/tos.html | 1 + 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/app_settings.py b/app_settings.py index 7ce6e25..aa551cc 100644 --- a/app_settings.py +++ b/app_settings.py @@ -23,7 +23,7 @@ else: @app.route('/settings') def appsettings(): if not google_auth.is_logged_in(): - return flask.render_template('deny.html', denymsg = "I don't know who you are so I can't help you with your settings. :(", loggedin = False) + return flask.render_template('deny.html', denymsg = "I don't know who you are so I can't help you with your user settings. :(", loggedin = False) user_info = google_auth.get_user_info() refreshtoken = google_auth.getRefreshToken() @@ -36,7 +36,6 @@ def appsettings(): rows = appdb.getDIDsbyAccount(userid) dbEmail = appdb.getInfobyEmail(user_info['email']) return flask.render_template('settings.html', - name = user_info['name'], - email = user_info['email'], + user_info = user_info, dids = rows, loggedin = True) diff --git a/static/main.css b/static/main.css index d8b1b67..cfeaa57 100644 --- a/static/main.css +++ b/static/main.css @@ -36,7 +36,7 @@ a:disabled {color: #9BB291;} border: dotted; border-color: #AF3E4D; padding: 1em; - + } #chat-director { @@ -54,9 +54,9 @@ a:disabled {color: #9BB291;} } #right-side { float: right; - text-align: right; + text-align: right; } .smsbody { font-size:2em; color: #B0C592; -} \ No newline at end of file +} diff --git a/templates/about.html b/templates/about.html index 5e28b72..4b3187f 100644 --- a/templates/about.html +++ b/templates/about.html @@ -12,6 +12,8 @@

We're all about getting thewords out and allowing us to communicate securely to friends and loved ones.

This site is still under active development and subject to change. For those who are interested in helping with development or testing hit me up on my GitHub sms-proj Page.

+

We aim to take bitcoin and other crypto currencies to allow people to use SMS at home on their computer or on the go as + a backup on their phone or tablet.

-

Please login at The Login Page

{% include 'include/footer.html' %} diff --git a/templates/settings.html b/templates/settings.html index d1cba81..1f500e1 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -11,8 +11,8 @@
-
Name:
-
Email: {{ email }}
+
Name:
+
Email: {{ user_info['email'] }}
Your active DIDs: (Click number to access messaging) diff --git a/templates/tos.html b/templates/tos.html index fab9f79..7f9a84f 100644 --- a/templates/tos.html +++ b/templates/tos.html @@ -14,6 +14,7 @@

These services are not allowed to be resold without prior authorization from the site management. Any automation and programming code for this website must be provided to the public as this website and its code are opensource and we intend to stay opensource.

+

Also as a note, with being such an early software version, all actions may be audited for debugging purposes only.

That being said, I wont give up anything without a warrant and I don't log anything that doesn't help me debug.

Thats why this system is hosted in italy. Happy texting!

This is a developing project and these terms and conditions and features may change in the future.