From 7875fa116fca77020b42ee183a0229b6e5e67f54 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Wed, 4 Oct 2023 15:32:48 +0300 Subject: Move dataset template to metadata directory. * wqflask/wqflask/templates/dataset.html: Move this ... * wqflask/wqflask/templates/metadata/dataset.html: here. Also, add htmx library. Signed-off-by: Munyoki Kilyungi --- wqflask/wqflask/templates/dataset.html | 152 ----------------------- wqflask/wqflask/templates/metadata/dataset.html | 156 ++++++++++++++++++++++++ 2 files changed, 156 insertions(+), 152 deletions(-) delete mode 100644 wqflask/wqflask/templates/dataset.html create mode 100644 wqflask/wqflask/templates/metadata/dataset.html diff --git a/wqflask/wqflask/templates/dataset.html b/wqflask/wqflask/templates/dataset.html deleted file mode 100644 index f465cb19..00000000 --- a/wqflask/wqflask/templates/dataset.html +++ /dev/null @@ -1,152 +0,0 @@ -{% extends "base.html" %} - -{% block css %} - -{% endblock %} - -{% block title %}Dataset: {{ name }}{% endblock %} - -{% block content %} - - - -
- {% if metadata == {} %} -

We appreciate your interest, but unfortunately, we don't have any additional information available for: {{ name }}. If you have any other questions or need assistance with something else, please feel free to reach out to us.

- {% else %} - - -
- {% if metadata.specifics %} -

Specifics of this Data Set:

-
{{ metadata.specifics}}
- {% endif %} - - {% if metadata.summary %} -

Summary:

-
{{ metadata.summary|safe }}
- {% endif %} - - {% if metadata.experimentDesign %} -

Experiment Design:

-
{{ metadata.experimentDesign|safe }}
- {% endif %} - - {% if metadata.aboutCases %} -

About the cases used to generate this set of data:

-
{{ metadata.aboutCases|safe }}
- {% endif %} - - {% if metadata.aboutTissue %} -

About the tissue used to generate this set of data:

-
{{ metadata.aboutTissue|safe }}
- {% endif %} - - {% if metadata.aboutPlatform %} -

About the array platform:

-
{{ metadata.aboutPlatform|safe }}
- {% endif %} - - {% if metadata.aboutDataProcessing %} -

About data values and data processing:

-
{{ metadata.aboutDataProcessing|safe }}
- {% endif %} - - {% if metadata.notes %} -

Notes:

-
{{ metadata.notes|safe }}
- {% endif %} - - {% if metadata.citation|trim %} -

Citation:

-
{{ metadata.citation|safe}}
- {% endif %} - - {% if metadata.acknowledgment|trim %} -

Acknowledgment:

-
{{ metadata.acknowledgment|safe}}
- {% endif %} -
- {% endif %} - -
- -{% endblock %} diff --git a/wqflask/wqflask/templates/metadata/dataset.html b/wqflask/wqflask/templates/metadata/dataset.html new file mode 100644 index 00000000..6bad6fda --- /dev/null +++ b/wqflask/wqflask/templates/metadata/dataset.html @@ -0,0 +1,156 @@ +{% extends "base.html" %} + +{% block css %} + +{% endblock %} + +{% block title %}Dataset: {{ name }}{% endblock %} + +{% block content %} + + + +
+ {% if metadata == {} %} +

We appreciate your interest, but unfortunately, we don't have any additional information available for: {{ name }}. If you have any other questions or need assistance with something else, please feel free to reach out to us.

+ {% else %} + + +
+ {% if metadata.specifics %} +

Specifics of this Data Set:

+
{{ metadata.specifics}}
+ {% endif %} + + {% if metadata.summary %} +

Summary:

+
{{ metadata.summary|safe }}
+ {% endif %} + + {% if metadata.experimentDesign %} +

Experiment Design:

+
{{ metadata.experimentDesign|safe }}
+ {% endif %} + + {% if metadata.aboutCases %} +

About the cases used to generate this set of data:

+
{{ metadata.aboutCases|safe }}
+ {% endif %} + + {% if metadata.aboutTissue %} +

About the tissue used to generate this set of data:

+
{{ metadata.aboutTissue|safe }}
+ {% endif %} + + {% if metadata.aboutPlatform %} +

About the array platform:

+
{{ metadata.aboutPlatform|safe }}
+ {% endif %} + + {% if metadata.aboutDataProcessing %} +

About data values and data processing:

+
{{ metadata.aboutDataProcessing|safe }}
+ {% endif %} + + {% if metadata.notes %} +

Notes:

+
{{ metadata.notes|safe }}
+ {% endif %} + + {% if metadata.citation|trim %} +

Citation:

+
{{ metadata.citation|safe}}
+ {% endif %} + + {% if metadata.acknowledgment|trim %} +

Acknowledgment:

+
{{ metadata.acknowledgment|safe}}
+ {% endif %} +
+ {% endif %} + +
+ +{% endblock %} + +{% block js %} + +{% endblock %} -- cgit 1.4.1