aboutsummaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/admin/index.html5
-rw-r--r--app/templates/admin/manage.html4
2 files changed, 3 insertions, 6 deletions
diff --git a/app/templates/admin/index.html b/app/templates/admin/index.html
index 212ead0..136d1d5 100644
--- a/app/templates/admin/index.html
+++ b/app/templates/admin/index.html
@@ -4,10 +4,11 @@
<h1>Admin Home</h1>
<ul>
<li>
- <a href="/admin/add">Add dataset</a>
+ <a href="{{ url_for("admin.add_dataset") }}">Add dataset</a>
</li>
<li>
- <a href="/admin/manage">View and manage tasks</a>
+ <a href="{{ url_for("admin.manage_tasks") }}">View and manage
+ tasks</a>
</li>
</ul>
{% endblock %}
diff --git a/app/templates/admin/manage.html b/app/templates/admin/manage.html
index 1bba769..c0668e3 100644
--- a/app/templates/admin/manage.html
+++ b/app/templates/admin/manage.html
@@ -14,9 +14,7 @@
<table class="table table-striped">
<thead class="thead-dark">
<th scope="col">Task ID</th>
- <th scope="col">User ID</th>
<th scope="col">Username</th>
- <th scope="col">Dataset ID</th>
<th scope="col">Dataset Name</th>
<th scope="col">Status</th>
<th scope="col">Completed On</th>
@@ -24,9 +22,7 @@
{% for task in tasks %}
<tr>
<th scope="row">{{ task.id }}</th>
- <td>{{ task.user.id }}</td>
<td>{{ task.user.username }}</td>
- <td>{{ task.dataset.id }}</td>
<td>{{ task.dataset.name }}</td>
<td>{% if task.done %}Completed{% else %}Pending{% endif %}</td>
<td>{{ task.annotated_on }}</td>