forked from ckan/ckanext-scheming
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8548240
commit 94d4236
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} | ||
| ||
|
||
|
||
{% 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 %} |