Skip to content

Commit

Permalink
Nicer loading
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Sep 24, 2012
1 parent 9e350a8 commit 2d50ff4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
9 changes: 9 additions & 0 deletions ckan/public/base/datapreview/css/json.css
Expand Up @@ -6,6 +6,15 @@ pre {
font-size: 13px;
}

.loading {
font-weight: bold;
font-family: sans-serif;
font-size: 16px;
position: fixed;
left: -20px;
top: 20px;
}

.string {
color: #009900;
}
Expand Down
4 changes: 3 additions & 1 deletion ckan/templates/dataviewer/json.html
Expand Up @@ -3,7 +3,9 @@
{% block page %}
<div>
<pre data-module="jsonpreview">
{{ _('loading...') }}
<div class="loading">
{{ _('Loading...') }}
</div>
</pre>
</div>
{% endblock %}
Expand Down
5 changes: 4 additions & 1 deletion ckan/templates/dataviewer/recline.html
Expand Up @@ -2,7 +2,10 @@

{% block page %}
<div data-module="reclinepreview">
<h4>Loading ... <img src="http://assets.okfn.org/images/icons/ajaxload-circle.gif" class="loading-spinner" /></h4>
<h4>
{{ _('Loading...') }}
<img src="http://assets.okfn.org/images/icons/ajaxload-circle.gif" class="loading-spinner" />
</h4>
</div>
{% endblock %}

Expand Down

0 comments on commit 2d50ff4

Please sign in to comment.