aboutsummaryrefslogtreecommitdiff
path: root/app/templates/index.html
blob: 6f868b14d97782ae5dde919388946673d33c0013 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% extends "base.html" %}

{% block app_content %}
{% if current_user.is_authenticated %}
	<h1>Hi, {{ current_user.username }}!</h1>
	<br>
	Below are the annotation tasks we've asked you to do, thank you so much for 
	your help!
	<br>
	{% if tasks_todo %}
	<h2>Annotations to be done</h2>
	<div class="tasks-todo">
		<ol>
		{% for task in tasks_todo %}
		<li><a href="/annotate/{{ task.id }}">{{ task.dataset.name }}</a></li>
		{% endfor %}
		</ol>
	</div>
	{% else %}
		<span>No more annotations to do, thanks for your help, you rock!</span>
	{% endif %}
	{% if tasks_done %}
	<h2>Completed Annotations</h2>
	<div class="tasks-done">
		{% for task in tasks_done %}
			<a class="task-done" href="/annotate/{{ task.id }}">{{ task.dataset.name }}</a>
		{% endfor %}
	</div>
	{% endif %}
{% 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 %}