From 5d8b44f847f259c7c01e5908d056f2337636cff5 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Tue, 19 Mar 2019 16:04:44 +0000 Subject: Make landing page make more sense --- app/main/routes.py | 1 - app/templates/index.html | 14 +++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/app/main/routes.py b/app/main/routes.py index 5d14fc6..e69282c 100644 --- a/app/main/routes.py +++ b/app/main/routes.py @@ -7,6 +7,5 @@ from app.main import bp @bp.route("/") @bp.route("/index") -@login_required def index(): return render_template("index.html", title="Home") diff --git a/app/templates/index.html b/app/templates/index.html index 7c6793a..8ac96eb 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -1,5 +1,17 @@ {% extends "base.html" %} {% block app_content %} -

Hi, {{ current_user.username }}!

+{% if current_user.is_authenticated %} +Hi, {{ current_user.username }}! +{% else %} +
+
+ Welcome to AnnotateChange a tool for annotating time + series data for changepoint analysis. +
+
+ Please log in or register to get started. +
+
+{% endif %} {% endblock %} -- cgit v1.2.3