Replace broken logic in import template with working logic in view.

This commit is contained in:
Jonathan Piacenti
2015-03-11 15:11:06 +00:00
parent b4c6211e4a
commit 8c920b469c
4 changed files with 54 additions and 8 deletions

View File

@@ -304,6 +304,7 @@ def _import_handler(request, courselike_key, root_name, successful_url, context_
context_name: courselike_module,
'successful_import_redirect_url': successful_url,
'import_status_url': status_url,
'library': isinstance(courselike_key, LibraryLocator)
})
else:
return HttpResponseNotFound()

View File

@@ -4,10 +4,6 @@
<%!
from django.utils.translation import ugettext as _
import json
try:
library = True
except NameError:
library = False
%>
<%block name="title">
%if library: