diff options
author | Munyoki Kilyungi | 2023-10-04 17:45:30 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-11-27 12:32:27 +0300 |
commit | 9c175c2b041855b3429eb9e81869d8ea55eb8ffc (patch) | |
tree | ad7629c76ca5d8d813cb9937ce9d39c4d3102d64 | |
parent | 5b7b23788b65f5f7a5a1f1b3f08736ad3668ab06 (diff) | |
download | genenetwork2-9c175c2b041855b3429eb9e81869d8ea55eb8ffc.tar.gz |
Make dataset it's own html entity.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-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 %} |