diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-26 16:28:29 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-26 16:28:29 +0000 |
| commit | 3b9586261924c791872bf0fcefc39641377fdfaf (patch) | |
| tree | d80f65aea59b22e2e4fa20ce6345bfa1c35a993d /app/templates | |
| parent | Don't show done image when the user hasn't done anything (diff) | |
| download | AnnotateChange-3b9586261924c791872bf0fcefc39641377fdfaf.tar.gz AnnotateChange-3b9586261924c791872bf0fcefc39641377fdfaf.zip | |
Remove user id and dataset id and sort tasks by username
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/admin/index.html | 5 | ||||
| -rw-r--r-- | app/templates/admin/manage.html | 4 |
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> |
