diff --git a/lms/djangoapps/simplewiki/views.py b/lms/djangoapps/simplewiki/views.py index d7c9558532..8ac7b3c387 100644 --- a/lms/djangoapps/simplewiki/views.py +++ b/lms/djangoapps/simplewiki/views.py @@ -461,7 +461,7 @@ def not_found(request, article_path, course): d = {'wiki_err_notfound': True, 'article_path': article_path, 'namespace' : course.wiki_namespace} - update_template_dictionary(request, course) + update_template_dictionary(d, request, course) return render_to_response('simplewiki/simplewiki_error.html', d) def get_article(request, article_path, course): @@ -495,7 +495,7 @@ def check_permissions(request, article, course, check_read=False, check_write=Fa 'wiki_err_nowrite': write_err, 'wiki_err_locked': locked_err, 'wiki_err_deleted': deleted_err,} - update_template_dictionary(request, course) + update_template_dictionary(d, request, course) # TODO: Make this a little less jarring by just displaying an error # on the current page? (no such redirect happens for an anon upload yet) # benjaoming: I think this is the nicest way of displaying an error, but diff --git a/lms/templates/simplewiki/simplewiki_error.html b/lms/templates/simplewiki/simplewiki_error.html index 9610423b2c..0ce0763def 100644 --- a/lms/templates/simplewiki/simplewiki_error.html +++ b/lms/templates/simplewiki/simplewiki_error.html @@ -3,8 +3,7 @@ <%inherit file="simplewiki_base.html"/> <%! - from django.core.urlresolvers import reverse - from simplewiki.views import wiki_namespace_reverse + from simplewiki.views import wiki_reverse %> <%block name="title">
- The page you requested could not be found. - Click here to create it. -
- %else: -- Or maybe rather: Congratulations! It seems that there's no root - article, which is probably because you just installed simple-wiki - and your installation is working. Now you can create the root article. - Click here to create it. -
- %endif -%else: -%if wiki_err_no_namespace is not UNDEFINED and wiki_err_no_namespace: ++ The page you requested could not be found. + Click here to create it. +
+%elif wiki_err_no_namespace is not UNDEFINED and wiki_err_no_namespace:You must specify a namespace to create an article in.
@@ -73,7 +62,7 @@ ${wiki_error} %elif wiki_err_deleted is not UNDEFINED and wiki_err_deleted:- The article you tried to access has been deleted. You may be able to restore it to an earlier version in its history, or create a new version. + The article you tried to access has been deleted. You may be able to restore it to an earlier version in its history, or create a new version.
%elif wiki_err_norevision is not UNDEFINED:@@ -84,7 +73,6 @@ ${wiki_error} An error has occured.
%endif -%endif %block>