Skip to content

Commit

Permalink
add other data resources section.
Browse files Browse the repository at this point in the history
  • Loading branch information
rshewitt committed Dec 6, 2023
1 parent 7f6a261 commit ac7cd0b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ckanext/datagovtheme/templates/package/read.html
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,14 @@ <h3>{{ _('Metadata Source') }}</h3>
{% endif %}
{% endif %}

{% set geoplatform_link = h.get_geoplatform_link(pkg_dict["name"]) %}
{% if geoplatform_link %}
<section id="dataset-other-resources" class="resources module-content">
<h3>Other Data Resources</h3>
<a href="{{ geoplatform_link }}">View this on Geoplatform</a>
</section>
{% endif %}

{% set graphic_preview_file =h.get_pkg_dict_extra(pkg, 'graphic-preview-file', None) %}
{% if graphic_preview_file and graphic_preview_file.lower()[:4] == 'http' %}
<section id="dataset-graphic-preview" class="resources module-content">
Expand All @@ -284,7 +292,7 @@ <h3>Graphic Preview</h3>
<img src="{{ h.get_pkg_dict_extra(pkg, 'graphic-preview-file') }}" alt="{{ graphic_preview_desc }}" title="{{ graphic_preview_desc }}" />
</section>
{% endif %}

{% endblock %}

{% block package_additional_info %}
Expand Down

0 comments on commit ac7cd0b

Please sign in to comment.