Commit 38541a0f authored by Merret Buurman's avatar Merret Buurman
Browse files

Adapted templates for displaying new versions.

parent ec31349a
......@@ -140,19 +140,20 @@
<div class="section">
<h2>Parts</em></h2>
<h2>Files belonging to this dataset</em></h2>
{% if list_of_parts_records %}
<table>
{% for item in list_of_parts_records %}
<tr>
<td class="leftcol">{{item.level}}</td>
<td>
{{ item.title }}
<td class="leftcol">
{{item.title}}
{% if item.version %}
(version {{ item.version }})
{% endif %}
<br/><a href="http://hdl.handle.net/{{ item.handle }}/">hdl:{{ item.handle }}</a>
</td>
<td>
<a href="http://hdl.handle.net/{{ item.handle }}/">hdl:{{ item.handle }}</a>
{% if item.replaced %}
<br/><span class="attention">Attention, this {{item.level}} was replaced by a newer version!*</span>
{% endif %}
......
......@@ -94,7 +94,7 @@
{% if urls_original %}
{% for entry in urls_original %}
<tr>
<td class="leftcol">Hosted by {{entry.host}}:</td>
<td class="leftcol">{{entry.host}}</td>
<td><a href="{{entry.url}}">{{entry.url}}</a></td>
</tr>
{% endfor %}
......@@ -102,8 +102,8 @@
{% if urls_replicas %}
{% for entry in urls_replicas %}
<tr>
<td class="leftcol">Mirrored at {{entry.host}}:</td>
<td><a href="{{entry.url}}">{{entry.url}}</a> (Replica)</td>
<td class="leftcol">{{entry.host}} (mirror)</td>
<td><a href="{{entry.url}}">{{entry.url}}</a></td>
</tr>
{% endfor %}
{% endif %}
......@@ -119,30 +119,32 @@
<table>
{% for item in list_of_aggregation_records %}
<tr>
<td class="leftcol">{{item.level}}</td>
<td class="leftcol">
{{item.level}}
</td>
<td>
{{ item.title }}
{% if item.version %}
(version {{ item.version }})
{% endif %}
<br/><a href="http://hdl.handle.net/{{ item.handle }}/">hdl:{{ item.handle }}</a>
<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-->
<br/><br/><span class="note"><img height="20px" 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>
<br/><br/><span class="note"><img height="20px" src="/static/warning_cmip6_green_transparent.png">&nbsp;This {{item.level}} was replaced by a newer version.</span>
{% endif %}
</td>
</tr>
{% endfor %}
<!--
</table>
{% if any_parent_replaced %}
<tr class="note">
<td colspan="3"><span class="note">
<img height="14px" src="/static/warning_cmip6_green_transparent.png"><strong>&nbsp;This dataset 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>
</td>
</tr>
<p>
<span class="note">
<!--<img height="14px" src="/static/warning_cmip6_green_transparent.png">&nbsp-->
<strong>Note: </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.
<br/>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>
</p>
{% endif %}
-->
</table>
{% else %}{% if list_of_aggregation_handles %}
<table>
......
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