aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-19 16:04:44 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-19 16:04:44 +0000
commit5d8b44f847f259c7c01e5908d056f2337636cff5 (patch)
tree02e4c624b44aaab05d3ffc44f396c247b48a5628
parentvisuals (diff)
downloadAnnotateChange-5d8b44f847f259c7c01e5908d056f2337636cff5.tar.gz
AnnotateChange-5d8b44f847f259c7c01e5908d056f2337636cff5.zip
Make landing page make more sense
-rw-r--r--app/main/routes.py1
-rw-r--r--app/templates/index.html14
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 %}