Skip to content

Commit

Permalink
fixed indention
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Sep 21, 2012
1 parent 609f3ef commit 419df38
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions ckan/templates/package/snippets/data_preview.html
@@ -1,18 +1,18 @@
<div class="module-content">
{% if no_preview %}
<div class="alert alert-block" data-module="dismiss-alerts">
<button type="button" class="close" data-dismiss="alert">×</button>
<h4>{{_('Preview not available')}} </h4>
{{_('No handler defined for data type:')}} <code>{{ resource_type }}</code>
</div>
{% else %}
{% if embed %}
{# images can be embedded directly #}
<img class="ckanext-datapreview-direct-embed" src="{{ resource_url }}"></img>
{% else %}
<iframe src="{{ resource_url }}" class="ckanext-datapreview-iframe" frameborder="0" scrolling="auto" width="100%" data-module="data-viewer">
<p>{{_('Your browser does not support iframes.')}}</p>
</iframe>
{% endif %}
{% endif %}
{% if no_preview %}
<div class="alert alert-block" data-module="dismiss-alerts">
<button type="button" class="close" data-dismiss="alert">×</button>
<h4>{{_('Preview not available')}} </h4>
{{_('No handler defined for data type:')}} <code>{{ resource_type }}</code>
</div>
{% else %}
{% if embed %}
{# images can be embedded directly #}
<img class="ckanext-datapreview-direct-embed" src="{{ resource_url }}"></img>
{% else %}
<iframe src="{{ resource_url }}" class="ckanext-datapreview-iframe" frameborder="0" scrolling="auto" width="100%" data-module="data-viewer">
<p>{{_('Your browser does not support iframes.')}}</p>
</iframe>
{% endif %}
{% endif %}
</div>

0 comments on commit 419df38

Please sign in to comment.