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/collections/add.html | 86 ++++ .../templates/collections/add_anonymous.html | 21 + gn2/wqflask/templates/collections/list.html | 189 ++++++++ .../templates/collections/not_logged_in.html | 23 + gn2/wqflask/templates/collections/remove.html | 48 ++ gn2/wqflask/templates/collections/view.html | 483 +++++++++++++++++++++ .../templates/collections/view_anonymous.html | 143 ++++++ 7 files changed, 993 insertions(+) create mode 100644 gn2/wqflask/templates/collections/add.html create mode 100644 gn2/wqflask/templates/collections/add_anonymous.html create mode 100644 gn2/wqflask/templates/collections/list.html create mode 100644 gn2/wqflask/templates/collections/not_logged_in.html create mode 100644 gn2/wqflask/templates/collections/remove.html create mode 100644 gn2/wqflask/templates/collections/view.html create mode 100644 gn2/wqflask/templates/collections/view_anonymous.html (limited to 'gn2/wqflask/templates/collections') diff --git a/gn2/wqflask/templates/collections/add.html b/gn2/wqflask/templates/collections/add.html new file mode 100644 index 00000000..478c80fb --- /dev/null +++ b/gn2/wqflask/templates/collections/add.html @@ -0,0 +1,86 @@ +
+ + +
+ + diff --git a/gn2/wqflask/templates/collections/add_anonymous.html b/gn2/wqflask/templates/collections/add_anonymous.html new file mode 100644 index 00000000..2eb7525f --- /dev/null +++ b/gn2/wqflask/templates/collections/add_anonymous.html @@ -0,0 +1,21 @@ +
+ + +
+ + diff --git a/gn2/wqflask/templates/collections/list.html b/gn2/wqflask/templates/collections/list.html new file mode 100644 index 00000000..c553717f --- /dev/null +++ b/gn2/wqflask/templates/collections/list.html @@ -0,0 +1,189 @@ +{% extends "base.html" %} +{%from "oauth2/display_error.html" import display_error%} +{% block title %}Your Collections{% endblock %} +{% block css %} + + + +{% endblock %} +{% block content %} + +
+ {{flash_me()}} + + {% if g.user_session.logged_in %} +

Collections owned by {% if g.user_session.user_name %}{{ g.user_session.user_name }}{% else %}{{ g.user_session.user_email }} {% endif %}

+ {% else %} +

Your Collections

+ {% endif %} + +
+ + + + + + +
+
+ +
+
+
+
+
+ {%if anon_collections_error is defined%} + {{display_error("Anonymous Collections", anon_collections_error)}} + {%endif%} + {%if anon_collections | length > 0%} + + + + + + + + + + + + + + + {% for uc in anon_collections %} + + + + + + + + {% endfor %} + +
Anonymous Collections
IndexNameCreatedLast Changed# Records
{{ loop.index }} + {{ uc.name }}{{ uc.created_timestamp }}{{ uc.changed_timestamp }}{{ uc.num_members }}
+ {%endif%} + {% if collections|length > 0 %} + {% if (anon_collections | length > 0) and (collections | length > 0) %} +
+ {%endif%} + + + + + + + + + + + + + + + {% for uc in collections %} + + + + + + + + {% endfor %} + +
User Collections
IndexNameCreatedLast Changed# Records
{{ loop.index }} + {{ uc.name }}{{ uc.created_timestamp }}{{ uc.changed_timestamp }}{{ uc.num_members }}
+ {% else %} + You have no collections yet. + {% endif %} +
+
+ + + +{% endblock %} + +{% block js %} + + + + + + + + + + +{% endblock %} diff --git a/gn2/wqflask/templates/collections/not_logged_in.html b/gn2/wqflask/templates/collections/not_logged_in.html new file mode 100644 index 00000000..49b0e07d --- /dev/null +++ b/gn2/wqflask/templates/collections/not_logged_in.html @@ -0,0 +1,23 @@ +{% extends "base.html" %} +{% block title %}Your Collections{% endblock %} +{% block content %} + + {{ header("Not logged in") }} + + +
+ +
+ + + +{% endblock %} + +{% block js %} + + +{% endblock %} diff --git a/gn2/wqflask/templates/collections/remove.html b/gn2/wqflask/templates/collections/remove.html new file mode 100644 index 00000000..faee4f78 --- /dev/null +++ b/gn2/wqflask/templates/collections/remove.html @@ -0,0 +1,48 @@ +
+ + +
+ + diff --git a/gn2/wqflask/templates/collections/view.html b/gn2/wqflask/templates/collections/view.html new file mode 100644 index 00000000..c850e163 --- /dev/null +++ b/gn2/wqflask/templates/collections/view.html @@ -0,0 +1,483 @@ +{% extends "base.html" %} +{% block title %}View Collection{% endblock %} +{% block css %} + + + + + +{% endblock %} +{% block content %} + + +
+ {{flash_me()}} +

+ {{ uc.name }} +
+ + +
+ + +

+

This collection has {{ '{}'.format(numify(trait_obs|count, "record", "records")) }}

+ +
+
+ + + + + + + {% include 'tool_buttons.html' %} + +
+
+
+
+ +
+ +
+   +
+ +
+
+
+
+
+ + + + + + + + + + + + + + +
+
+
+ Show/Hide Columns:   + + + + + + + + + + +
+
+ + + + +

Loading...
+
+
+
+
+ + + +{% endblock %} + +{% block js %} + + + + + + + + + + + + + + + + + + +{% endblock %} + diff --git a/gn2/wqflask/templates/collections/view_anonymous.html b/gn2/wqflask/templates/collections/view_anonymous.html new file mode 100644 index 00000000..56323e10 --- /dev/null +++ b/gn2/wqflask/templates/collections/view_anonymous.html @@ -0,0 +1,143 @@ +{% extends "base.html" %} +{% block title %}View Collection{% endblock %} +{% block content %} + + {% if uc %} + {{ header(uc.name, + 'This collection has {}.'.format(numify(trait_obs|count, "record", "records"))) }} + {% else %} + {{ header('Your Collection', + 'This collection has {}.'.format(numify(trait_obs|count, "record", "records"))) }} + {% endif %} +
+ + + + +
+ + + + + + + + + + + + + + + {% for this_trait in trait_obs %} + + + + + + + + + + + + {% endfor %} + + +
RecordDescriptionLocationMeanMax LRSMax LRS Location
+ + + + {{ this_trait.name }} + + {{ this_trait.description_display }}{{ this_trait.location_repr }}{{ this_trait.mean }}{{ this_trait.LRS_score_repr }}{{ this_trait.LRS_location_repr }}
+ +
+ + + + + + + +
+
+ + + +{% endblock %} + +{% block js %} + +{% endblock %} -- cgit v1.2.3