From e9b7d369d18223e6532eef2901be2c180c4ea066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sat, 28 Nov 2020 02:57:49 +0100 Subject: [PATCH] add purchase template --- src/templates/purchase.html | 15 +++++++++++++++ src/utils/__init__.py | 2 +- src/views/profileview.py | 4 ++-- 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 src/templates/purchase.html diff --git a/src/templates/purchase.html b/src/templates/purchase.html new file mode 100644 index 0000000..f344da7 --- /dev/null +++ b/src/templates/purchase.html @@ -0,0 +1,15 @@ +{% extends 'base.html' %} + +{% block content %} + {% if current_user.is_authenticated %} +
+

File Upload

+
+
+

+
+
+ {% else %} +

Log in to upload an animation.

+ {% endif %} +{% endblock %} \ No newline at end of file diff --git a/src/utils/__init__.py b/src/utils/__init__.py index 2d3f11c..769ee5c 100644 --- a/src/utils/__init__.py +++ b/src/utils/__init__.py @@ -1,3 +1,3 @@ from .healthchecks import health_database_status from .security import security, init_security_real_good -from .config import Config \ No newline at end of file +from .config import Config diff --git a/src/views/profileview.py b/src/views/profileview.py index 81b3143..8494c4a 100644 --- a/src/views/profileview.py +++ b/src/views/profileview.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 - +from flask import render_template from flask_classful import FlaskView """ @@ -15,4 +15,4 @@ __version__text__ = "1" class ProfileView(FlaskView): def index(self): - pass + return render_template('profile.html')