From df42a47ea20ec14a5716b5b23d4595239a260114 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Tue, 19 Mar 2019 16:19:00 +0000 Subject: add task overview to user landing page --- app/templates/index.html | 44 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 34 insertions(+), 10 deletions(-) (limited to 'app/templates') diff --git a/app/templates/index.html b/app/templates/index.html index 8ac96eb..e1071d2 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -2,16 +2,40 @@ {% block app_content %} {% 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. +

Hi, {{ current_user.username }}!

+
+ Below are the annotation tasks we've asked you to do, thank you so much for + your help! +
+ {% if tasks_todo %} +

Annotations to be done

+
+
    + {% for task in tasks_todo %} +
  1. {{ task.dataset.name }}
  2. + {% endfor %} +
+
+ {% else %} + No more tasks to do, thank you! + {% endif %} + {% if tasks_done %} +

Completed Annotations

+
+ {% for task in tasks_done %} + {{ task.dataset.name }} + {% endfor %}
-
+ {% endif %} +{% 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