aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-09-05 12:41:34 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-09-05 12:41:34 +0100
commitf130ee093e269519fcda35c2efc524e974c21356 (patch)
tree604c7f72e9b141870d34a2c97c78401f1a9e819b /app
parentExpand on seasonal effects in demo instructions (diff)
downloadAnnotateChange-f130ee093e269519fcda35c2efc524e974c21356.tar.gz
AnnotateChange-f130ee093e269519fcda35c2efc524e974c21356.zip
Show dataset name for admin
Diffstat (limited to 'app')
-rw-r--r--app/templates/index.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/templates/index.html b/app/templates/index.html
index 95bced8..1606f2a 100644
--- a/app/templates/index.html
+++ b/app/templates/index.html
@@ -61,7 +61,11 @@
<tr>
<td>
<a href="{{ url_for('main.annotate', task_id=task.id) }}">
+ {% if current_user.is_admin %}
+ {{ task.dataset.name | title }}
+ {% else %}
Dataset {{ task.dataset.id | title }}
+ {% endif %}
</a>
</td>
</tr>
@@ -87,7 +91,11 @@
</thead>
{% for task in tasks_done %}
<tr>
+ {% if current_user.is_admin %}
+ <td>{{ task.dataset.name | title }}</td>
+ {% else %}
<td>Dataset {{ task.dataset.id | title }}</td>
+ {% endif %}
<td>{{ task.annotated_on }}</td>
</tr>
{% endfor %}