Django 1.8 and other updates.
[wolnelektury.git] / apps / waiter / templates / waiter / wait.html
index f4dedc7..6ef1b77 100644 (file)
@@ -1,6 +1,6 @@
 {% extends "base.html" %}
 {% load i18n %}
-{% load url from future %}
+{% load static from staticfiles %}
 
 {% block titleextra %}
 {% if file_url %}
@@ -39,7 +39,8 @@
     </div>
 {% else %}
  {% if waiting %}
-    <h1>{% trans "Your file is being prepared, please wait." %}</h1>
+    <h1><img src="{% static "img/indicator.gif" %}" alt="{% trans 'Please wait' %}"/>
+        {% trans "Your file is being prepared, please wait." %}</h1>
 
     <div class="normal-text">
     <p>{% blocktrans with d=waiting.description %}The file you requested was: <em>{{d}}</em>.{% endblocktrans %}</p>
@@ -77,8 +78,8 @@ function wait() {
             else
                 setTimeout(wait, 10*1000);
         },
-        error: function() {
-            setTimeout(wait, 10*1000);
+        error: function(xhr) {
+            location.reload();
         }
     });
 }