diff options
-rw-r--r-- | wqflask/wqflask/templates/dataset.html | 45 | ||||
-rw-r--r-- | wqflask/wqflask/templates/metadata/dataset.html | 43 |
2 files changed, 45 insertions, 43 deletions
diff --git a/wqflask/wqflask/templates/dataset.html b/wqflask/wqflask/templates/dataset.html new file mode 100644 index 00000000..94452e9e --- /dev/null +++ b/wqflask/wqflask/templates/dataset.html @@ -0,0 +1,45 @@ +{% extends "base.html" %} + +{% block css %} +<style type="text/css"> + .page-header { + text-underline-offset: 0.5rem; + padding: 1em; + } + .panel-about { + background: #F8F8F8; + max-width: 35em; + margin: 10px; + } + .panel-metadata { + display: inline-block; + width: fit-content; + height: fit-content; + padding: 0; + } + + .panel-metadata dt { + color: green; + } + + .panel-metadata dt::after { + content: ":"; + } + +</style> +{% endblock %} + +{% block title %}Dataset: {{ name }}{% endblock %} +{% block content %} + +{% include 'metadata/dataset.html' %} + +{% endblock %} + +{% block js %} +<script language="javascript" + type="text/javascript" + src="{{ url_for('js', filename='js_alt/htmx.min.js') }}" + integrity="sha384-0+7g9BudUk9DgXmamowaKrIUbGxY2XGM2qH3qQe+YB/nzsgA6SdFPTQ6HBKtSyHq" + crossorigin="anonymous"></script> +{% endblock %} diff --git a/wqflask/wqflask/templates/metadata/dataset.html b/wqflask/wqflask/templates/metadata/dataset.html index cd8acc7a..70f2bfb9 100644 --- a/wqflask/wqflask/templates/metadata/dataset.html +++ b/wqflask/wqflask/templates/metadata/dataset.html @@ -1,37 +1,3 @@ -{% extends "base.html" %} - -{% block css %} -<style type="text/css"> - .page-header { - text-underline-offset: 0.5rem; - padding: 1em; - } - .panel-about { - background: #F8F8F8; - max-width: 35em; - margin: 10px; - } - .panel-metadata { - display: inline-block; - width: fit-content; - height: fit-content; - padding: 0; - } - - .panel-metadata dt { - color: green; - } - - .panel-metadata dt::after { - content: ":"; - } - -</style> -{% endblock %} - -{% block title %}Dataset: {{ metadata.label }}{% endblock %} -{% block content %} - <header class="page-header text-justify"> <h1> {% if dataset.title %} @@ -148,12 +114,3 @@ </div> -{% endblock %} - -{% block js %} -<script language="javascript" - type="text/javascript" - src="{{ url_for('js', filename='js_alt/htmx.min.js') }}" - integrity="sha384-0+7g9BudUk9DgXmamowaKrIUbGxY2XGM2qH3qQe+YB/nzsgA6SdFPTQ6HBKtSyHq" - crossorigin="anonymous" -{% endblock %} |