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
01bdfb12
Commit
01bdfb12
authored
Mar 30, 2015
by
Waqas Khalid
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7403 from edx/waqas/tnl1717-discussion-404
View discussion of user profile return 404
parents
dad4b673
daadfeab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
common/static/coffee/spec/discussion/view/discussion_thread_profile_view_spec.coffee
+5
-0
common/static/coffee/src/discussion/content.coffee
+1
-1
No files found.
common/static/coffee/spec/discussion/view/discussion_thread_profile_view_spec.coffee
View file @
01bdfb12
...
...
@@ -18,6 +18,7 @@ describe "DiscussionThreadProfileView", ->
body
:
"dummy body"
,
discussion
:
new
Discussion
()
abuse_flaggers
:
[],
commentable_id
:
'dummy_discussion'
,
votes
:
{
up_count
:
"42"
}
}
@
imageTag
=
'<img src="https://www.google.com.pk/images/srpr/logo11w.png">'
...
...
@@ -111,3 +112,7 @@ describe "DiscussionThreadProfileView", ->
for
truncatedText
in
[
true
,
false
]
it
"body with
#{
numImages
}
images and
#{
if
truncatedText
then
"truncated"
else
"untruncated"
}
text"
,
->
checkPostWithImages
(
numImages
,
truncatedText
,
@
threadData
,
@
imageTag
)
it
"check the thread retrieve url"
,
->
thread
=
makeThread
(
@
threadData
)
expect
(
thread
.
urlFor
(
'retrieve'
)).
toBe
(
'/courses/edX/999/test/discussion/forum/dummy_discussion/threads/1'
)
common/static/coffee/src/discussion/content.coffee
View file @
01bdfb12
...
...
@@ -126,7 +126,7 @@ if Backbone?
class
@
Thread
extends
@
Content
urlMappers
:
'retrieve'
:
->
DiscussionUtil
.
urlFor
(
'retrieve_single_thread'
,
@
discussion
.
id
,
@
id
)
'retrieve'
:
->
DiscussionUtil
.
urlFor
(
'retrieve_single_thread'
,
@
.
get
(
'commentable_id'
)
,
@
id
)
'reply'
:
->
DiscussionUtil
.
urlFor
(
'create_comment'
,
@
id
)
'unvote'
:
->
DiscussionUtil
.
urlFor
(
"undo_vote_for_
#{
@
get
(
'type'
)
}
"
,
@
id
)
'upvote'
:
->
DiscussionUtil
.
urlFor
(
"upvote_
#{
@
get
(
'type'
)
}
"
,
@
id
)
...
...
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