From 204a308be0f741726b9a620d88fbc22b22124c81 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 29 Dec 2023 18:55:37 +0000 Subject: Namespace all modules under gn2. We move all modules under a gn2 directory. This is important for "correct" packaging and deployment as a Guix service. --- gn2/wqflask/templates/display_files.html | 131 +++++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 gn2/wqflask/templates/display_files.html (limited to 'gn2/wqflask/templates/display_files.html') diff --git a/gn2/wqflask/templates/display_files.html b/gn2/wqflask/templates/display_files.html new file mode 100644 index 00000000..d0e8cc33 --- /dev/null +++ b/gn2/wqflask/templates/display_files.html @@ -0,0 +1,131 @@ +{% extends "base.html" %} +{% block title %}Trait Submission{% endblock %} + +{% block css %} + +{% endblock %} + +{% block content %} + +{% with messages = get_flashed_messages(with_categories=true) %} +{% if messages %} +
+ {% for category, message in messages %} + + {% endfor %} +
+{% endif %} +{% endwith %} + +
+ {%if (not waiting) and (not approved) and (not rejected)%} +
+ + There are no diffs to act on. +
+ {%endif%} + {% if waiting %} +

Files for approval:

+
+
+ + + + + + + + + {% for data in waiting %} + + {% set file_url = url_for('metadata_edit.show_diff', name=data.filepath.name) %} + + + + {% set reject_url = url_for('metadata_edit.reject_data', resource_id=data.meta.get('resource_id'), file_name=data.filepath.name, dataset_name=data.diff.dataset_name, trait_name=data.diff.trait_name) %} + {% set approve_url = url_for('metadata_edit.approve_data', resource_id=data.meta.get('resource_id'), file_name=data.filepath.name, dataset_name=data.diff.dataset_name, trait_name=data.diff.trait_name) %} + + + + {% endfor %} + +
Resource Id + AuthorTimeStamp
{{ data.meta.get("resource_id") }}{{ data.meta.get("author")}}{{ data.meta.get("time_stamp")}} + + + +
+
+
+ {% endif %} + + {% if approved %} +

Approved Data:

+
+
+ + + + + + + {% for data in approved %} + + {% set file_url = url_for('metadata_edit.show_diff', name=data.filepath.name) %} + + + + + {% endfor %} + +
Resource Id + AuthorTimeStamp
{{ data.meta.get("resource_id") }}{{ data.meta.get("author")}}{{ data.meta.get("time_stamp")}}
+
+
+ {% endif %} + + {% if rejected %} +

Rejected Files:

+
+
+ + + + + + + {% for data in rejected %} + + {% set file_url = url_for('metadata_edit.show_diff', name=data.filepath.name) %} + + + + + {% endfor %} + +
Resource Id + AuthorTimeStamp
{{ data.meta.get("resource_id") }}{{ data.meta.get("author")}}{{ data.meta.get("time_stamp")}}
+
+
+ {% endif %} +
+{%endblock%} + +{% block js %} + + + +{% endblock %} -- cgit v1.2.3