Skip to content

Commit

Permalink
moved templates one directory up
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Oct 19, 2012
1 parent 14581a5 commit ca8a274
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckanext/jsonpreview/plugin.py
Expand Up @@ -36,4 +36,4 @@ def can_preview(self, resource):
return format_lower in ['jsonp', 'json']

def preview_template(self, context):
return 'dataviewer/json.html'
return 'json.html'
16 changes: 16 additions & 0 deletions ckanext/jsonpreview/theme/templates/json.html
@@ -0,0 +1,16 @@
{% extends 'dataviewer/base.html' %}

{% block page %}
<div>
<pre data-module="jsonpreview">
<div class="loading">
{{ _('Loading...') }}
</div>
</pre>
</div>
{% endblock %}

{% block scripts %}
{{ super() }}
{% resource 'ckanext-jsonpreview/main' %}
{% endblock %}
2 changes: 1 addition & 1 deletion ckanext/pdfpreview/plugin.py
Expand Up @@ -36,4 +36,4 @@ def can_preview(self, resource):
return format_lower in self.PDF

def preview_template(self, context):
return 'dataviewer/pdf.html'
return 'pdf.html'
File renamed without changes.

0 comments on commit ca8a274

Please sign in to comment.