Skip to content

Commit

Permalink
Create read.html
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijaKnezevic authored Nov 7, 2023
1 parent 8548240 commit 94d4236
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions ckanext/scheming/templates/package/read.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{% extends "package/read_base.html" %}

{% set pkg = c.pkg_dict %}

{% block primary_content_inner %}
{{ super() }}
{% block package_description %}
{% if pkg.private %}
<span class="dataset-private label label-inverse pull-right">
<i class="fa fa-lock"></i>
{{ _('Private') }}
</span>
{% endif %}
<h1>
{% block page_heading %}
{{ h.dataset_display_name(pkg) }}
{% if pkg.state.startswith('draft') %}
[{{ _('Draft') }}]
{% endif %}
{% if pkg.state == 'deleted' %}
[{{ _('Deleted') }}]
{% endif %}
{% endblock %}
</h1>
{% block package_notes %}
{% if pkg.notes %}
<div class="notes embedded-content">
{{ h.render_markdown(h.get_translated(pkg, 'notes')) }}
</div>
{% endif %}
{% endblock %}
{# FIXME why is this here? seems wrong #}
<span class="insert-comment-thread"></span>
{% endblock %}

{% block package_resources %}
{% snippet "package/snippets/resources_list.html", pkg=pkg, resources=pkg.resources %}
{% endblock %}

{% set dataset_extent = h.get_pkg_dict_extra(c.pkg_dict, 'spatial', '') %}
{% if dataset_extent and dataset_extent != ''%}
{% snippet "spatial/snippets/dataset_map.html", extent=dataset_extent %}
{% endif %}
{% if pkg.spatial and pkg.spatial != '' %}
{% snippet "spatial/snippets/dataset_map.html", extent=pkg.spatial %}
{% endif %}
&nbsp;&nbsp;


{% block package_tags %}
{% snippet "package/snippets/tags.html", tags=pkg.tags %}
{% endblock %}

{% block package_additional_info %}
{% snippet "package/snippets/additional_info.html", pkg_dict=pkg %}
{% endblock %}

{% endblock %}

0 comments on commit 94d4236

Please sign in to comment.