aboutsummaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates')
-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 %}