From ef2c487a56e07369a3a42c45f744e0f459d3db02 Mon Sep 17 00:00:00 2001 From: snowcatridge10 Date: Thu, 2 Jan 2025 16:47:24 -0500 Subject: [PATCH] displays whether a user is an admin or not, started onboarding feature --- app.py | 4 ++ templates/onboarding.html | 87 +++++++++++++++++++++++++++++++++++++++ templates/profile.html | 3 +- 3 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 templates/onboarding.html diff --git a/app.py b/app.py index 1059ff1..f5b7f88 100644 --- a/app.py +++ b/app.py @@ -1073,6 +1073,10 @@ def upload_file(): ''' +@app.route("/onboarding") +def onboarding_page(): + return render_template("onboarding.html") + @app.route('/follow') def follow(): following_id = str(request.args.get("id")) diff --git a/templates/onboarding.html b/templates/onboarding.html new file mode 100644 index 0000000..ce33eb9 --- /dev/null +++ b/templates/onboarding.html @@ -0,0 +1,87 @@ + + + + + + Onboarding Page + + + + +
+

Welcome!

+

Select topics you like:

+
+ + + + + +
+ + +
+ + + diff --git a/templates/profile.html b/templates/profile.html index cce7ba6..5307d58 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -539,7 +539,8 @@ {% if user.first_name %}
{{ user.first_name }} {{ user.last_name }}

{% endif %} -
{{ user.username }}
+
+
[ADMIN] {{ user.username }}
{% if session.user %} {% if session.user.id == user_id %}