Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
adbe71b5
Commit
adbe71b5
authored
Aug 19, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Got simplewiki just cleaned up enough to work again, so I could view a page for reference.
parent
cdfeeb0c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
lms/djangoapps/simplewiki/views.py
+3
-3
lms/templates/simplewiki/simplewiki_edit.html
+1
-0
No files found.
lms/djangoapps/simplewiki/views.py
View file @
adbe71b5
...
...
@@ -39,7 +39,7 @@ def update_template_dictionary(dictionary, request=None, course=None, article=No
if
course
:
dictionary
[
'course'
]
=
course
if
'namespace'
not
in
dictionary
:
dictionary
[
'namespace'
]
=
course
.
wiki_namespace
dictionary
[
'namespace'
]
=
"edX"
else
:
dictionary
[
'course'
]
=
None
...
...
@@ -99,7 +99,7 @@ def root_redirect(request, course_id=None):
course
=
get_opt_course_with_access
(
request
.
user
,
course_id
,
'load'
)
#TODO: Add a default namespace to settings.
namespace
=
course
.
wiki_namespace
if
course
else
"edX"
namespace
=
"edX"
try
:
root
=
Article
.
get_root
(
namespace
)
...
...
@@ -479,7 +479,7 @@ def not_found(request, article_path, course):
"""Generate a NOT FOUND message for some URL"""
d
=
{
'wiki_err_notfound'
:
True
,
'article_path'
:
article_path
,
'namespace'
:
course
.
wiki_namespace
}
'namespace'
:
"edX"
}
update_template_dictionary
(
d
,
request
,
course
)
return
render_to_response
(
'simplewiki/simplewiki_error.html'
,
d
)
...
...
lms/templates/simplewiki/simplewiki_edit.html
View file @
adbe71b5
...
...
@@ -69,6 +69,7 @@ ${"Edit " + wiki_title + " - " if wiki_title is not UNDEFINED else ""}MITx 6.002
%else:
<input
type=
"submit"
id=
"submit_edit"
name=
"edit"
value=
"Save Changes"
/>
<input
type=
"submit"
id=
"submit_delete"
name=
"delete"
value=
"Delete article"
/>
%endif
<
%
include
file=
"simplewiki_instructions.html"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment