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
61f0bcb1
Commit
61f0bcb1
authored
Sep 27, 2012
by
Ibrahim Awwal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop annoying /thread/ in discussion URLs that adds nothing.
parent
a4afea93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
lms/djangoapps/django_comment_client/forum/urls.py
+1
-1
lms/static/coffee/src/discussion/discussion_router.coffee
+2
-2
No files found.
lms/djangoapps/django_comment_client/forum/urls.py
View file @
61f0bcb1
...
@@ -4,7 +4,7 @@ import django_comment_client.forum.views
...
@@ -4,7 +4,7 @@ import django_comment_client.forum.views
urlpatterns
=
patterns
(
'django_comment_client.forum.views'
,
urlpatterns
=
patterns
(
'django_comment_client.forum.views'
,
url
(
r'users/(?P<user_id>\w+)/followed$'
,
'followed_threads'
,
name
=
'followed_threads'
),
url
(
r'users/(?P<user_id>\w+)/followed$'
,
'followed_threads'
,
name
=
'followed_threads'
),
url
(
r'users/(?P<user_id>\w+)$'
,
'user_profile'
,
name
=
'user_profile'
),
url
(
r'users/(?P<user_id>\w+)$'
,
'user_profile'
,
name
=
'user_profile'
),
url
(
r'(?P<discussion_id>[\w\-]+)/threads/(?P<thread_id>[-\w]+)$'
,
'single_thread'
,
name
=
'single_thread'
),
url
(
r'(?P<discussion_id>[\w\-]+)/inline$'
,
'inline_discussion'
,
name
=
'inline_discussion'
),
url
(
r'(?P<discussion_id>[\w\-]+)/inline$'
,
'inline_discussion'
,
name
=
'inline_discussion'
),
url
(
r'(?P<discussion_id>[\w\-]+)/(?P<thread_id>[-\w]+)$'
,
'single_thread'
,
name
=
'single_thread'
),
url
(
r''
,
'forum_form_discussion'
,
name
=
'forum_form_discussion'
),
url
(
r''
,
'forum_form_discussion'
,
name
=
'forum_form_discussion'
),
)
)
lms/static/coffee/src/discussion/discussion_router.coffee
View file @
61f0bcb1
...
@@ -2,7 +2,7 @@ if Backbone?
...
@@ -2,7 +2,7 @@ if Backbone?
class
@
DiscussionRouter
extends
Backbone
.
Router
class
@
DiscussionRouter
extends
Backbone
.
Router
routes
:
routes
:
""
:
"allThreads"
""
:
"allThreads"
":forum_name/
threads/
:thread_id"
:
"showThread"
":forum_name/:thread_id"
:
"showThread"
initialize
:
(
options
)
->
initialize
:
(
options
)
->
@
discussion
=
options
[
'discussion'
]
@
discussion
=
options
[
'discussion'
]
...
@@ -44,7 +44,7 @@ if Backbone?
...
@@ -44,7 +44,7 @@ if Backbone?
navigateToThread
:
(
thread_id
)
=>
navigateToThread
:
(
thread_id
)
=>
thread
=
@
discussion
.
get
(
thread_id
)
thread
=
@
discussion
.
get
(
thread_id
)
@
navigate
(
"
#{
thread
.
get
(
"commentable_id"
)
}
/
threads/
#{
(
thread
.
get
(
'slug'
)
or
thread_id
)
}
"
,
trigger
:
true
)
@
navigate
(
"
#{
thread
.
get
(
"commentable_id"
)
}
/
#{
(
thread
.
get
(
'slug'
)
or
thread_id
)
}
"
,
trigger
:
true
)
navigateToAllThreads
:
=>
navigateToAllThreads
:
=>
@
navigate
(
""
,
trigger
:
true
)
@
navigate
(
""
,
trigger
:
true
)
...
...
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