From da15e439e64c8314825ad5f28073fbcbd436946f Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Thu, 30 May 2019 13:29:31 +0100 Subject: Initial version of demo This commit introduces the demo functionality. The task assignment has been removed at the moment, as this will be changed in a future commit. --- app/templates/index.html | 153 ++++++++++++++++++++++++++++------------------- 1 file changed, 91 insertions(+), 62 deletions(-) (limited to 'app/templates/index.html') diff --git a/app/templates/index.html b/app/templates/index.html index 76edbcd..930bfd3 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -1,69 +1,98 @@ {% extends "base.html" %} {% block styles %} -{{ super() }} - + {{ super() }} + {% endblock %} {% block app_content %} -{% if current_user.is_authenticated %} -

Hi, {{ current_user.username }}!

- {% if tasks_todo %} -

Annotations to be done

-
-

- Below are the datasets that we've asked you to annotate, thank you - very much for your help! -

-
-
- - - - - {% for task in tasks_todo %} - - - - {% endfor %} -
Name
{{ task.dataset.name }}
-
- {% elif tasks_todo|length == 0 and tasks_done|length > 0 %} -
- - No more annotations to do! Thank you so much for your - help, you rock! -
- {% else %} - There are no datasets for you to annotate at the moment, please - check back again later. Thank you! - {% endif %} - {% if tasks_done %} -

Completed Annotations

-
- - - - - - {% for task in tasks_done %} - - - - - {% endfor %} -
NameCompleted On
{{ task.dataset.name }}{{ task.annotated_on }}
-
- {% endif %} -{% else %} -
-
- Welcome to AnnotateChange a tool for annotating time - series data for changepoint analysis. -
-
- Please log in or register to get started. -
-
-{% endif %} + {% if current_user.is_authenticated %} +

Hi, {{ current_user.username }}!

+ {% endif %} +

+ Welcome to AnnotateChange a tool for annotating time series data + for changepoint analysis. +

+ {% if not current_user.is_authenticated %} +
+

+ Please log in or + register to get started. +

+ {% endif %} + {% if current_user.is_authenticated %} +

Introduction

+ {% if not current_user.is_introduced %} + Click here to start the introduction to AnnotateChange. + {% if tasks_todo|length == 0 and tasks_done|length == 0 %} +
+
+

+ When you have finished the introduction, the datasets to annotate + will appear here. +

+ {% endif %} + {% else %} +

+ Thank you for completing the introduction. If you want to revisit + it, you can do so by clicking here. +

+ {% if tasks_todo|length == 0 and tasks_done|length == 0 %} +
+
+

+ There are currently no datasets for you to annotate. Please check back + again later. +

+ {% endif %} + {% endif %} + {% if tasks_todo %} +

Datasets to Annotate

+

+ Below are the datasets that we would like you to annotate, thank you + very much for your help! +

+
+ + + + + {% for task in tasks_todo %} + + + + {% endfor %} +
Name
+ + {{ task.dataset.name | title }} + +
+
+ {% elif tasks_todo|length == 0 and tasks_done|length > 0 %} +
+ + + No more annotations to do! Thank you so much for your help, + you rock! + +
+ {% endif %} + {% if tasks_done %} +

Completed Annotations

+
+ + + + + + {% for task in tasks_done %} + + + + + {% endfor %} +
NameCompleted On
{{ task.dataset.name | title }}{{ task.annotated_on }}
+
+ {% endif %} + {% endif %} {% endblock %} -- cgit v1.2.3