# HG changeset patch # User ymh # Date 1362046010 -3600 # Node ID e53e900f3f1c7c56ce35083940d3130e77f1b0e6 # Parent 73403060f297527a109c58ba58e64b20d39cc917 updarte url templatetag for django 1.5 diff -r 73403060f297 -r e53e900f3f1c src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/create_content.html --- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/create_content.html Thu Feb 28 00:38:51 2013 +0100 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/create_content.html Thu Feb 28 11:06:50 2013 +0100 @@ -1,6 +1,6 @@ {% extends "ldt/ldt_utils/workspace_base.html" %} {% load i18n %} -{% load absstatic %} +{% load static %} {% load absurl %} {# form of creation of content #} @@ -10,12 +10,12 @@ {{ block.super }} - - + + - - - + + + {{ content_form.media.js }} {% endblock %} @@ -28,15 +28,15 @@ post_added_params = {"csrfmiddlewaretoken" : "{{csrf_token}}", "{{cookie_name}}" : "{{session_key}}"}; - onCreateContentReady("{% url ldt.ldt_utils.views.content.upload %}", - "{% absstatic 'ldt' %}", + onCreateContentReady("{% url 'ldt.ldt_utils.views.content.upload' %}", + "{% static 'ldt' %}", post_added_params, "{% trans 'Browse' %}", "{% trans 'File uploaded' %}", "{% trans 'Please wait, the upload is not finished yet' %}", "{% trans 'Cancel upload' %", - "{% url ldt.ldt_utils.views.content.remove_temp_file %}", - "{% url ldt.ldt_utils.views.content.get_duration %}"); + "{% url 'ldt.ldt_utils.views.content.remove_temp_file' %}", + "{% url 'ldt.ldt_utils.views.content.get_duration' %}"); }); // the function stopRKey prevents from the validation of the form if the user tape enter button while entering a field function stopRKey(evt) { @@ -48,8 +48,8 @@ document.onkeypress = stopRKey; chunked_uploads_endpoints = { - upload_url: '{{WEB_URL}}{% url upload %}', - done_url: '{{WEB_URL}}{% url upload_done uuid='00000000-0000-0000-0000-000000000000' %}', + upload_url: '{{WEB_URL}}{% url 'upload' %}', + done_url: '{{WEB_URL}}{% url 'upload_done' uuid='00000000-0000-0000-0000-000000000000' %}', }; $(function() { @@ -86,7 +86,7 @@ {% block css_import %} {{ content_form.media.css }} {{ block.super }} - + {% endblock %} {% block content %} @@ -162,7 +162,7 @@
-
loader
+
loader
{% trans "media file is being processed please wait." %}
 
@@ -175,8 +175,8 @@
- - - - + + + + {% endblock %}