diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-04-15 22:03:47 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-04-15 22:03:47 -0400 |
commit | 3c640cb94438dda317198843f5b498306a2bf989 (patch) | |
tree | 67ce7dc393383d5205a9e1fa56db3aa9ff18d893 /templates/devel/index.html | |
parent | 2ea4e6f4d5245dd5e43c90d54635477c6e7dd6a7 (diff) | |
parent | 1a2709552704a91f9601a13c350153b3daf3a455 (diff) |
Merge tag 'release_2014-12-08' into archweb-generic
Minor fixes and package updates
Diffstat (limited to 'templates/devel/index.html')
-rw-r--r-- | templates/devel/index.html | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/templates/devel/index.html b/templates/devel/index.html index 8ed9f9ac..0de285d5 100644 --- a/templates/devel/index.html +++ b/templates/devel/index.html @@ -157,8 +157,11 @@ </ul> </div>{# #dev-dashboard #} -<div id='stats-area'> - <p>Enable Javascript to get more useful info here.</p> +<div id="stats-area"> + <div class="box"> + <h2>Developer Stats</h2> + <p id="stats-message">Enable JavaScript to get more useful info here.</p> + </div> </div> {% endblock %} @@ -167,8 +170,12 @@ <script type="text/javascript" src="{% static "archweb.js" %}"></script> <script type="text/javascript"> $(document).ready(function() { - $("#stats-area").html('<p>Loading stats…</p>'); - $("#stats-area").load('stats/', function() { + $("#stats-message").html('Loading developer stats…'); + $("#stats-area").load('stats/', function(response, status, xhr) { + if (status === 'error' || status === 'timeout') { + $("#stats-message").html('Developer stats loading encountered an error. Sorry.'); + return; + } var settings = { widgets: ['zebra'], sortList: [[0,0]], |