diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-09-05 12:41:34 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-09-05 12:41:34 +0100 |
| commit | f130ee093e269519fcda35c2efc524e974c21356 (patch) | |
| tree | 604c7f72e9b141870d34a2c97c78401f1a9e819b /app | |
| parent | Expand on seasonal effects in demo instructions (diff) | |
| download | AnnotateChange-f130ee093e269519fcda35c2efc524e974c21356.tar.gz AnnotateChange-f130ee093e269519fcda35c2efc524e974c21356.zip | |
Show dataset name for admin
Diffstat (limited to 'app')
| -rw-r--r-- | app/templates/index.html | 8 |
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 %} |
