aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-08-19 16:30:41 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-08-19 16:30:41 +0100
commit6cb48d9daad382f45fbfdf18f422498c3a6ca739 (patch)
treeb2e99fd32def06950e069148ed8596df899391dd
parentAdd feedback for user during demo (diff)
downloadAnnotateChange-6cb48d9daad382f45fbfdf18f422498c3a6ca739.tar.gz
AnnotateChange-6cb48d9daad382f45fbfdf18f422498c3a6ca739.zip
Remove dataset name from user
-rw-r--r--app/main/routes.py3
-rw-r--r--app/templates/index.html4
2 files changed, 4 insertions, 3 deletions
diff --git a/app/main/routes.py b/app/main/routes.py
index 02ec7c9..52c7871 100644
--- a/app/main/routes.py
+++ b/app/main/routes.py
@@ -113,10 +113,11 @@ def annotate(task_id):
flash(
"An internal error occurred loading this dataset, the admin has been notified. Please try again later. We apologise for the inconvenience."
)
+ title = f"Dataset: {task.dataset.id}"
is_multi = len(data["chart_data"]["values"]) > 1
return render_template(
"annotate/index.html",
- title=task.dataset.name.title(),
+ title=title,
identifier=task.id,
data=data,
rubric=RUBRIC,
diff --git a/app/templates/index.html b/app/templates/index.html
index 86d2f1a..613db53 100644
--- a/app/templates/index.html
+++ b/app/templates/index.html
@@ -61,7 +61,7 @@
<tr>
<td>
<a href="{{ url_for('main.annotate', task_id=task.id) }}">
- {{ task.dataset.name | title }}
+ Dataset {{ task.dataset.id | title }}
</a>
</td>
</tr>
@@ -87,7 +87,7 @@
</thead>
{% for task in tasks_done %}
<tr>
- <td>{{ task.dataset.name | title }}</td>
+ <td>Dataset {{ task.dataset.id | title }}</td>
<td>{{ task.annotated_on }}</td>
</tr>
{% endfor %}