diff options
| -rw-r--r-- | app/main/routes.py | 1 | ||||
| -rw-r--r-- | 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 %} -<h1>Hi, {{ current_user.username }}!</h1> +{% if current_user.is_authenticated %} +<span>Hi, {{ current_user.username }}!</span> +{% else %} +<article> + <div> + Welcome to <i>AnnotateChange</i> a tool for annotating time + series data for changepoint analysis. + <br> + <br> + Please log in or register to get started. + </div> +</article> +{% endif %} {% endblock %} |
