X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/132297f0be27da544304733bd24da32282310235..1c4c468783e5f380324c29ebc3b2c452da8cc2a0:/apps/fileupload/templatetags/upload_tags.py
diff --git a/apps/fileupload/templatetags/upload_tags.py b/apps/fileupload/templatetags/upload_tags.py
index aefce2e3..a924a603 100644
--- a/apps/fileupload/templatetags/upload_tags.py
+++ b/apps/fileupload/templatetags/upload_tags.py
@@ -1,7 +1,9 @@
+# -*- coding: utf-8 -*-
from django import template
register = template.Library()
+
@register.simple_tag
def upload_js():
return """
@@ -13,10 +15,15 @@ def upload_js():
{%=file.name%} |
{%=o.formatFileSize(file.size)%} |
{% if (file.error) { %}
- {%=locale.fileupload.error%} {%=locale.fileupload.errors[file.error] || file.error%} |
+
+ {%=locale.fileupload.error%}
+ {%=locale.fileupload.errors[file.error] || file.error%}
+ |
{% } else if (o.files.valid && !i) { %}
-
+
|
{% if (!o.options.autoUpload) { %}
|