# HG changeset patch # User cavaliet # Date 1348828590 -7200 # Node ID d764536e8eebce1eb60c8e650c47f1d660892983 # Parent e7546394653c0f048b5f22995d5d0afdd3f30fcc# Parent 6957287fbde75845b37550e880f96d0316f19bcc Merge with 6957287fbde75845b37550e880f96d0316f19bcc diff -r e7546394653c -r d764536e8eeb src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/error_confirm_popup.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/error_confirm_popup.html Fri Sep 28 12:36:30 2012 +0200 @@ -0,0 +1,61 @@ +{% extends "ldt/ldt_raw_base.html" %} + +{% load i18n %} {# form of creation of content #} + +{% block js_import %} + {{ block.super }} + + +{% endblock %} + +{% block css_import %} + {{ block.super }} + {{ content_form.media.css }} + + +{% endblock %} + + +{% block js_declaration %} + +{% endblock %} + +{% block body %} + +
+
{% if errors|length > 0 %}{% trans "error" %}{% else %}{% trans "confirm" %}{% endif %}
+
+ {{ message }} + {% if errors|length > 0 %} + + {% endif %} +
+ +
+
+ {% if errors|length > 0 %} + + {% else %} +
+ {% csrf_token %} + + +
+ {% endif %} +
+
+ +
+{% endblock %} \ No newline at end of file diff -r e7546394653c -r d764536e8eeb src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/embed_player.html --- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/embed_player.html Fri Sep 28 12:20:10 2012 +0200 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/embed_player.html Fri Sep 28 12:36:30 2012 +0200 @@ -2,7 +2,8 @@ {% load i18n %} {% load thumbnail %}
-
+
+
+ + {% endspaceless %} diff -r e7546394653c -r d764536e8eeb src/ldt/ldt/ldt_utils/views/content.py --- a/src/ldt/ldt/ldt_utils/views/content.py Fri Sep 28 12:20:10 2012 +0200 +++ b/src/ldt/ldt/ldt_utils/views/content.py Fri Sep 28 12:36:30 2012 +0200 @@ -317,7 +317,10 @@ if iri_id: content_temp = Content.objects.get(iri_id=iri_id) media_temp = content_temp.media_obj - member_list, admin_list = get_userlist_model(media_temp, request.user) + if media_temp: + member_list, admin_list = get_userlist_model(media_temp, request.user) + else: + member_list, admin_list = get_userlist_model(content_temp, request.user) if iri_id: create_content_action = reverse('ldt.ldt_utils.views.content.write_content', kwargs={'iri_id':iri_id}) img_container = content_form.instance diff -r e7546394653c -r d764536e8eeb src/ldt/ldt/ldt_utils/views/project.py --- a/src/ldt/ldt/ldt_utils/views/project.py Fri Sep 28 12:20:10 2012 +0200 +++ b/src/ldt/ldt/ldt_utils/views/project.py Fri Sep 28 12:36:30 2012 +0200 @@ -124,7 +124,7 @@ else: message = _("please confirm deleting project %(title)s") % {'title':project.title} title = _("confirm deletion") - return render_to_response('ldt/ldt_utils/error_confirm.html', {'errors':errors, 'message':message, 'title': title}, context_instance=RequestContext(request)) + return render_to_response('ldt/ldt_utils/error_confirm_popup.html', {'errors':errors, 'message':message, 'title': title}, context_instance=RequestContext(request)) elif submit_action == "delete": if project.state != 2: project.delete()