From 7692fd0193af2ca3ac3aaee1d4dbb45a50f69f15 Mon Sep 17 00:00:00 2001 From: jh-RLI Date: Thu, 20 Mar 2025 14:17:21 +0100 Subject: [PATCH 1/2] add draft for reworked dataset list page --- .../dataedit/dataedit_tablelist.html | 560 +++++++++++++++++- 1 file changed, 534 insertions(+), 26 deletions(-) diff --git a/dataedit/templates/dataedit/dataedit_tablelist.html b/dataedit/templates/dataedit/dataedit_tablelist.html index 6251f1af5..96883e566 100644 --- a/dataedit/templates/dataedit/dataedit_tablelist.html +++ b/dataedit/templates/dataedit/dataedit_tablelist.html @@ -1,11 +1,298 @@ {% extends "dataedit/filter.html" %} {% block title %} - {{schema}}{% endblock %} +{% block after-head %} + + + +{% endblock after-head %} + {% block site-header %}

- + Database

@@ -18,31 +305,252 @@

{% block data_content %} {% load dataedit.taghandler %} - - - - - - - - - {% for table, label, tags in tables %} + + - - {% if label %} - - {% else %} - - {% endif %} - +
NameTags
{{ label }}{{ table }} - {% for tag in tags %} - {{tag.name}} + +
+ +
+
+

Available Datasets {{ tables|length }}

+
+ + +
+
+ +
+ + + + + + + + + {% for table, label, tags in tables %} + + {% if label %} + + {% else %} + + {% endif %} + + {% endfor %} - - - {% endfor %} - - -
NameTags
{{ label }}{{ table }} + {% for tag in tags %} + {{tag.name}} + {% endfor %} +
+
+

+ + + +
+
+

Available Datasets {{ tables|length }}

+
+ + +
+
+ + +
+ {% for table, label, tags in tables %} +
+
+
+
+ {% if label %} +

{{ label }}

+ {% else %} +

{{ table }}

+ {% endif %} + + + {% if tags|length > 2 %} + Verified + {% else %} + Under Review + {% endif %} +
+

Table ID: {{ table }}

+
+
+ +

Dataset from the {{ schema }} schema.

+ + +
+ + +
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + +
+
+ + +
+

Detailed Metadata

+ + + + + + + + + + + + + + +

How to Cite

+
+ Open Energy Platform ({% now "Y" %}). {{ label|default:table }} [Data set]. Open Energy Platform. https://openenergy-platform.org/dataedit/view/{{ schema }}/{{ table }} +
+
+
+
+ {% endfor %} +
+
+ -{% endblock %} + +{% endblock %} \ No newline at end of file From 2132737b2cec61c9e4f152f14bd75694d87417d4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 7 May 2026 10:31:50 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../dataedit/dataedit_tablelist.html | 485 +++++++++--------- 1 file changed, 254 insertions(+), 231 deletions(-) diff --git a/dataedit/templates/dataedit/dataedit_tablelist.html b/dataedit/templates/dataedit/dataedit_tablelist.html index 2e6a962eb..899742e52 100644 --- a/dataedit/templates/dataedit/dataedit_tablelist.html +++ b/dataedit/templates/dataedit/dataedit_tablelist.html @@ -1,25 +1,24 @@ {% extends "dataedit/filter.html" %} -{% block title %} - {{schema}}{% endblock %} - +{% block title %}- {{ schema }}{% endblock %} {% block after-head %} - - - + + + {% endblock after-head %} - {% block site-header %} -
-

- - - - Database -

-
- Topics / {{ schema }} -
+
+

+ + + + Database +

+
+ Topics / {{ schema }}
+
{% endblock site-header %} {% block data_content %} -{% load dataedit.taghandler %} - - -
+ {% load dataedit.taghandler %} + + - - -
+
+ +
-
-
-

Available Datasets {{ tables|length }}

-
- - -
-
- -
- - - - - - - - - {% for table, label, tags in tables %} - - {% if label %} - - {% else %} - - {% endif %} - - - {% endfor %} - -
NameTags
{{ label }}{{ table }} - {% for tag in tags %} - {{tag.name}} - {% endfor %} -
+
+
+

+ Available Datasets {{ tables|length }} +

+
+ +
+
+
+ + + + + + + + + {% for table, label, tags in tables %} + + {% if label %} + + {% else %} + + {% endif %} + + + {% endfor %} + +
NameTags
{{ label }}{{ table }} + {% for tag in tags %} + {{ tag.name }} + {% endfor %} +
+
- -
-
-

Available Datasets {{ tables|length }}

-
- - -
+
+
+

+ Available Datasets {{ tables|length }} +

+
+ +
- - -
- {% for table, label, tags in tables %} -
-
-
-
- {% if label %} -

{{ label }}

- {% else %} -

{{ table }}

- {% endif %} - - - {% if tags|length > 2 %} - Verified - {% else %} - Under Review - {% endif %} -
-

Table ID: {{ table }}

-
-
- -

Dataset from the {{ schema }} schema.

- - -
- - -
- - -
-
- - -
-
- - -
-
- - -
- - -
-
- - -
-

Detailed Metadata

- - - - - - - - - - - - - - -

How to Cite

-
- Open Energy Platform ({% now "Y" %}). {{ label|default:table }} [Data set]. Open Energy Platform. https://openenergy-platform.org/dataedit/view/{{ schema }}/{{ table }} -
-
+
+ +
+ {% for table, label, tags in tables %} +
+
+
+
+ {% if label %} +

{{ label }}

+ {% else %} +

{{ table }}

+ {% endif %} + + {% if tags|length > 2 %} + Verified + {% else %} + Under Review + {% endif %} +
+

Table ID: {{ table }}

+
+
+ +

Dataset from the {{ schema }} schema.

+ +
+ + +
+ +
+
+ + +
+
+ + +
- {% endfor %} -
+ +
+ + +
+
+ +
+

Detailed Metadata

+ + + + + + + + + + + + + +

How to Cite

+
+ Open Energy Platform ({% now "Y" %}). {{ label|default:table }} [Data set]. Open Energy Platform. https://openenergy-platform.org/dataedit/view/{{ schema }}/{{ table }} +
+
+
+
+ {% endfor %} +
-
- - + {% endblock %}