aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/dataset.html
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask/templates/dataset.html')
-rw-r--r--gn2/wqflask/templates/dataset.html49
1 files changed, 26 insertions, 23 deletions
diff --git a/gn2/wqflask/templates/dataset.html b/gn2/wqflask/templates/dataset.html
index e4ae34ae..1e2c5bc4 100644
--- a/gn2/wqflask/templates/dataset.html
+++ b/gn2/wqflask/templates/dataset.html
@@ -73,30 +73,27 @@
{% if dataset %}
-<header class="page-header text-justify">
- <h1>
- {% if dataset.title or dataset.label or dataset.altLabel %}
- {{ dataset.title or dataset.label or dataset.altLabel }}
- {% if dataset.title != dataset.altLabel and dataset.label != dataset.altLabel %}
- <br/>
- <small>({{ dataset.altLabel }})</small>
- {% endif %}
- {% else %}
- {{ name }}
- {% endif %}
- <small>
- <sup>
- [&nbsp;
- <a href="" target="_blank">
- View history
- </a>
- &nbsp;]
- </sup>
- </small>
- </h1>
-</header>
-
<div class="container dataset-content">
+ <header class="page-header text-justify">
+ <h1>
+ {% if dataset.title or dataset.label or dataset.altLabel %}
+ {{ dataset.title or dataset.label or dataset.altLabel }}
+ {% if dataset.title != dataset.altLabel and dataset.label != dataset.altLabel %}
+ <br/>
+ <small>({{ dataset.altLabel }})</small>
+ {% endif %}
+ {% else %}
+ {{ name }}
+ {% endif %}
+ <small>
+ <sup>
+ [&nbsp;
+ <a hx-get={{ url_for('metadata.view_history', id_=dataset.id.split('/')[-1], name=name, title=(dataset.title or dataset.label or dataset.altLabel)) }} hx-target=".dataset-content" hx-push-url="true" hx-select="#history">History</a>
+ &nbsp;]
+ </sup>
+ </small>
+ </h1>
+ </header>
<div class="panel-about panel panel-info panel-metadata text-muted">
<div class="panel-heading">
<strong>
@@ -358,3 +355,9 @@
{% endif %}
{% endblock %}
+
+{% block js %}
+
+<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='htmx.min.js') }}"></script>
+
+{% endblock %}