Commit f0e5a64c authored by Merret Buurman's avatar Merret Buurman
Browse files

Warning signs for replaced files and dataset.

parent 39c52d15
......@@ -51,6 +51,33 @@
<div class="section">
<h2>General information</h2>
<table>
<!-- Newer version exists: Table with 3 columns: -->
{% if newerversion %}
{% if drs %}
<tr>
<td class="leftcol" colspan="2">DRS name</td>
<td>{{drs}}</td>
</tr>
{% endif %}
{% if version %}
<tr>
<td class="leftcol" colspan="2">Version number</td>
<td>{{version}}</td>
</tr>
{% endif %}
<tr>
<td class="leftcol_slim">Persistent identifier</td>
<td class="middlecol warning_icon_replaced"><img height="35px" src="/static/warning_cmip6_green_transparent.png"></td>
<td><a href="http://hdl.handle.net/{{handle}}">hdl:{{handle}}</a><br/><br/><span class="note"><img height="14px" src="/static/warning_cmip6_green_transparent.png"><strong>&nbsp;This dataset was replaced by a newer version.</strong> Please refer to the dataset's errata description to get more information. You can find information on the errata on the dataset's landing page or at the ESGF Errata Service.</span> </td>
</tr>
<tr>
<td class="leftcol" colspan="2">Newer version</td>
<td><a href="http://hdl.handle.net/{{handle}}">hdl:{{newerversion}}</a></td>
</tr>
{% else %}
<!-- No newer version: Table with 2 columns: -->
{% if drs %}
<tr>
<td class="leftcol">DRS name</td>
......@@ -63,20 +90,16 @@
<td>{{version}}</td>
</tr>
{% endif %}
<tr>
<td class="leftcol">Persistent identifier</td>
<td><a href="http://hdl.handle.net/{{handle}}">hdl:{{handle}}</a></td>
</tr>
{% if newerversion %}
<tr>
<td class="leftcol">Newer version</td>
<td><a href="http://hdl.handle.net/{{handle}}">hdl:{{newerversion}}</a></td>
<td class="leftcol">Persistent identifier</td>
<td><a href="http://hdl.handle.net/{{handle}}">hdl:{{handle}}</a></td>
</tr>
{% endif %}
</table>
</div>
<div class="section">
<h2>Dataset host(s)</h2>
......
......@@ -132,12 +132,14 @@
(version {{ item.version }})
{% endif %}
<br/><a href="http://hdl.handle.net/{{ item.handle }}/">hdl:{{ item.handle }}</a>
<!--{% if item.replaced %}
</td><td class="replaced"><span class="attention">Attention, this {{item.level}} was replaced by a newer version!*</span>
{% endif %}-->
{% if item.replaced %}
<!--/td><td class="replaced"><span class="attention">Attention, this {{item.level}} was replaced by a newer version!*</span-->
<br/><br/><span class="note"><img height="14px" src="/static/warning_cmip6_green_transparent.png"><strong>&nbsp;This {{item.level}} was replaced by a newer version.</strong> If a dataset containing this file was replaced by a newer version, it is possible that there was an issue with this file, but not necessarily. It is also possible that the dataset was replaced due to problems in other files or due to lacking files. Please refer to the dataset's errata description to get more information. You can find information on the errata on the dataset's landing page or at the ESGF Errata Service.</span>
{% endif %}
</td>
</tr>
{% endfor %}
<!--
{% if any_parent_replaced %}
<tr class="note">
<td colspan="3"><span class="note">
......@@ -145,6 +147,7 @@
</td>
</tr>
{% endif %}
-->
</table>
{% else %}{% if list_of_aggregation_handles %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment