From 6cb48d9daad382f45fbfdf18f422498c3a6ca739 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 19 Aug 2019 16:30:41 +0100 Subject: Remove dataset name from user --- app/main/routes.py | 3 ++- app/templates/index.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'app') 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 @@ - {{ task.dataset.name | title }} + Dataset {{ task.dataset.id | title }} @@ -87,7 +87,7 @@ {% for task in tasks_done %} - {{ task.dataset.name | title }} + Dataset {{ task.dataset.id | title }} {{ task.annotated_on }} {% endfor %} -- cgit v1.2.3