Skip to content

Commit

Permalink
[#3011] Make style of error message that is shown
Browse files Browse the repository at this point in the history
if Recline preview is temporarily unavailable
similar to message that is shown when no preview
is available for a resource type.
  • Loading branch information
johnglover committed Nov 27, 2012
1 parent daf790d commit 5c96c6f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions ckan/templates/dataviewer/snippets/data_preview.html
Expand Up @@ -4,12 +4,15 @@
<img src="{{ resource_url }}"></img>
{% else %}
<div class="data-viewer-error" style="display:none;">
<p class="text-error">
<i class="icon-exclamation-sign"></i>
{{ _('This resource can not be previewed at the moment.') }}
<a href="#" data-toggle="collapse" data-target="#data-view-error">{{ _('more info') }}</a>
</p>
<p id="data-view-error" class="collapse"></p>
<div class="alert alert-block">
<p class="text-error">
{{ _('This resource can not be previewed at the moment.') }}
<button class="btn btn-link btn-mini" data-toggle="collapse" data-target="#data-view-error">
<i class="icon-info-sign"></i> More details...
</button>
</p>
<p id="data-view-error" class="collapse"></p>
</div>
<p>
<a href="{{ raw_resource_url }}" class="btn btn-large" target="_blank">
<i class="icon-large icon-download"></i>
Expand Down

0 comments on commit 5c96c6f

Please sign in to comment.