From 020f59cf48a79183a0a8da91275aaf570e07da88 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Sat, 23 Apr 2022 14:15:45 -0500 Subject: [PATCH] bug fix --- src/index.py | 6 +++++- src/templates/terms.html | 29 ++++++++++++++++++----------- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/src/index.py b/src/index.py index cf24d1f..f4f12a1 100755 --- a/src/index.py +++ b/src/index.py @@ -73,7 +73,11 @@ def index(): products = mystore.get.products() args = {"context":CONTEXT,"products":products} return json.dumps(products),headers - +@app.route("/terms") +def terms(): + _args = CONFIG['about'] + _args['context']= CONTEXT + return render_template("terms.html",**_args) # return render_template("index.html",**args) @app.route("/json/") def get_plans_json(id): diff --git a/src/templates/terms.html b/src/templates/terms.html index 09f59d9..4207321 100644 --- a/src/templates/terms.html +++ b/src/templates/terms.html @@ -1,22 +1,29 @@ - - - -
- {% include 'header.html' %} + + +
+

+

{{name}}
+
{{app}} was developed by the {{organization}} and is to be used and/or distributed under MIT License.
-

Terms of Use

-

- - The Phi Technology offers a wide range of services and products that are intended to be used to empower end-users. - As such we reserve the rights to cancel/disable/ban any user from using any of our products if we deem they are misusing anyone of our products. - +

+
+ MIT License
+

+
Copyright 2020 Vanderbilt University Medical Center +

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

+ +
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+
+