diff --git a/ckanext/odsh/public/odsh.css b/ckanext/odsh/public/odsh.css index 3530e9c7d6ab4900ea6662fed1bf1e5c2dd2e2a9..1b3187983711665b2a09ff14095c0b2bf97b581b 100644 --- a/ckanext/odsh/public/odsh.css +++ b/ckanext/odsh/public/odsh.css @@ -739,7 +739,11 @@ label.rangesearch.disabled { border-bottom: none; } -.opaque { +.historical { + opacity: 0.8; +} + +.historical img { opacity: 0.6; } diff --git a/ckanext/odsh/templates/snippets/package_item.html b/ckanext/odsh/templates/snippets/package_item.html index c94fa9a412b4661923e853018c154a7192737055..0867c1d252bac4ff39c3b13798c8a7bc1e345249 100644 --- a/ckanext/odsh/templates/snippets/package_item.html +++ b/ckanext/odsh/templates/snippets/package_item.html @@ -34,7 +34,7 @@ Example: {% set successor_url = collection['successor']['url'] if collection else None %} {% block package_item %} -<li class="odsh-dataset-item {% if successor_url %}opaque{% endif %}"> +<li class="odsh-dataset-item {% if successor_url %}historical{% endif %}"> <div class="preview-image-container"> {% if thumbnail %} <a href={{ h.url_for(controller='package', action='read', id=package.name) }}> @@ -73,7 +73,7 @@ Example: {% if successor_url %} <span class='label historical-dataset-label'>{{ _('historical') }}</span> {% endif %} - {% if package.is_new %} + {% if package.is_new and not successor_url %} <span class='label new-dataset-label'>{{ _('NEW') }}</span> {% endif %} {% if package.private %}