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
Showing
4 changed files
with
27 additions
and
52 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,20 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block subtitle %}{{ h.dataset_display_name(c.package) }} - {{h.resource_display_name(c.resource) }}{% endblock %} | ||
|
||
{# remove any scripts #} | ||
{% block scripts %} | ||
{% resource 'base/main' %} | ||
{% resource 'vendor/vendor' %} | ||
|
||
<script> | ||
var preload_resource = {{ h.literal(c.resource_json) }}; | ||
</script> | ||
{% endblock %} | ||
|
||
{# remove any ckan styles #} | ||
{% block styles %} | ||
{% endblock %} | ||
|
||
{% block custom_styles %} | ||
{% endblock %} |
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 |
---|---|---|
@@ -1,32 +1,14 @@ | ||
{% extends "base.html" %} | ||
|
||
{% set res = c.resource %} | ||
|
||
{% block subtitle %}{{ h.dataset_display_name(c.package) }} - {{ h.resource_display_name(res) }}{% endblock %} | ||
{% extends "dataviewer/base.html" %} | ||
|
||
{% block page %} | ||
<div> | ||
<pre data-module="jsonpreview"> | ||
{{_('loading...')}} | ||
{{ _('loading...') }} | ||
</pre> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block scripts %} | ||
{{ super() }} | ||
{% resource 'base/main' %} | ||
{% resource 'vendor/vendor' %} | ||
{% resource 'datapreview/jsonpreview' %} | ||
|
||
<script> | ||
var preload_resource = {{ h.literal(c.resource_json) }}; | ||
</script> | ||
{% endblock %} | ||
|
||
|
||
{# remove any ckan styles #} | ||
{% block styles %} | ||
{% endblock %} | ||
|
||
{% block custom_styles %} | ||
{% endblock %} | ||
{% endblock %} |
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
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