diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-27 15:29:56 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-27 15:29:56 +0000 |
| commit | 9bab970043330c9f27f4b29a55f046a3b701f026 (patch) | |
| tree | 8e50f32af741d9c3b38a7681d416e7b7d460b060 /app/templates | |
| parent | formatting (diff) | |
| download | AnnotateChange-9bab970043330c9f27f4b29a55f046a3b701f026.tar.gz AnnotateChange-9bab970043330c9f27f4b29a55f046a3b701f026.zip | |
Allow admin to view annotations
Diffstat (limited to 'app/templates')
| -rw-r--r-- | app/templates/admin/annotations.html | 22 | ||||
| -rw-r--r-- | app/templates/admin/index.html | 4 |
2 files changed, 26 insertions, 0 deletions
diff --git a/app/templates/admin/annotations.html b/app/templates/admin/annotations.html new file mode 100644 index 0000000..4807b8e --- /dev/null +++ b/app/templates/admin/annotations.html @@ -0,0 +1,22 @@ +{% extends "base.html" %} + +{% block app_content %} +<h1>View Annotations</h1> +<article class="overview"> + <table class="table table-striped"> + <thead class="thead-dark"> + <th scope="col">Dataset</th> + <th scope="col">Username</th> + <th scope="col">Changepoint Index</th> + </thead> + {% for ann in annotations %} + <tr> + <td>{{ ann.task.dataset.name }}</td> + <td>{{ ann.task.user.username }}</td> + <td>{% if ann.cp_index is none %}No CP{% else %}{{ ann.cp_index }}{% endif %}</td> + </tr> + {% endfor %} + </tr> + </table> +</article> +{% endblock %} diff --git a/app/templates/admin/index.html b/app/templates/admin/index.html index c6b1f25..a8a8c73 100644 --- a/app/templates/admin/index.html +++ b/app/templates/admin/index.html @@ -18,5 +18,9 @@ <a href="{{ url_for("admin.manage_datasets") }}">View and manage datasets</a> </li> + <li> + <a href="{{ url_for("admin.view_annotations") }}">View + annotations</a> + </li> </ul> {% endblock %} |
