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
a04e4bfb
Commit
a04e4bfb
authored
Aug 14, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed wiki urls bug. Fixed reverse for course wiki.
parent
88282b5b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
lms/templates/course_navigation.html
+1
-1
lms/urls.py
+1
-6
No files found.
lms/templates/course_navigation.html
View file @
a04e4bfb
...
@@ -22,7 +22,7 @@ def url_class(url):
...
@@ -22,7 +22,7 @@ def url_class(url):
% endif
% endif
% endif
% endif
% if settings.WIKI_ENABLED:
% if settings.WIKI_ENABLED:
<li
class=
"wiki"
><a
href=
"${reverse('
wiki_root
', args=[course.id])}"
class=
"${url_class('wiki')}"
>
Wiki
</a></li>
<li
class=
"wiki"
><a
href=
"${reverse('
course_wiki
', args=[course.id])}"
class=
"${url_class('wiki')}"
>
Wiki
</a></li>
% endif
% endif
% if user.is_authenticated():
% if user.is_authenticated():
<li
class=
"profile"
><a
href=
"${reverse('profile', args=[course.id])}"
class=
"${url_class('profile')}"
>
Profile
</a></li>
<li
class=
"profile"
><a
href=
"${reverse('profile', args=[course.id])}"
class=
"${url_class('profile')}"
>
Profile
</a></li>
...
...
lms/urls.py
View file @
a04e4bfb
...
@@ -146,10 +146,6 @@ if settings.WIKI_ENABLED:
...
@@ -146,10 +146,6 @@ if settings.WIKI_ENABLED:
from
wiki.urls
import
get_pattern
as
wiki_pattern
from
wiki.urls
import
get_pattern
as
wiki_pattern
from
django_notify.urls
import
get_pattern
as
notify_pattern
from
django_notify.urls
import
get_pattern
as
notify_pattern
# urlpatterns += (
# url(r'^wiki/', include('simplewiki.urls')),
# url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/wiki/', include('simplewiki.urls')),
# )
urlpatterns
+=
(
urlpatterns
+=
(
# First we include views from course_wiki that we use to override the default views.
# First we include views from course_wiki that we use to override the default views.
# They come first in the urlpatterns so they get resolved first
# They come first in the urlpatterns so they get resolved first
...
@@ -157,8 +153,7 @@ if settings.WIKI_ENABLED:
...
@@ -157,8 +153,7 @@ if settings.WIKI_ENABLED:
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/wiki$'
,
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/wiki$'
,
'course_wiki.views.course_wiki_redirect'
,
name
=
"course_wiki"
),
'course_wiki.views.course_wiki_redirect'
,
name
=
"course_wiki"
),
url
(
r'^wiki/'
,
include
(
wiki_pattern
())),
url
(
r'wiki/'
,
include
(
wiki_pattern
())),
url
(
r'^notify/'
,
include
(
notify_pattern
())),
url
(
r'^notify/'
,
include
(
notify_pattern
())),
)
)
...
...
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