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
0ad3e8a7
Commit
0ad3e8a7
authored
Sep 14, 2012
by
arjun810
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #692 from MITx/feature/dave/new-discussions
Small fixes
parents
11289e6d
a32be295
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
lms/static/coffee/src/discussion/views/discussion_thread_profile_view.coffee
+1
-2
lms/templates/discussion/_user_profile.html
+1
-1
lms/templates/discussion/mustache/_profile_thread.mustache
+2
-2
No files found.
lms/static/coffee/src/discussion/views/discussion_thread_profile_view.coffee
View file @
0ad3e8a7
...
...
@@ -17,10 +17,9 @@ if Backbone?
render
:
->
@
template
=
DiscussionUtil
.
getTemplate
(
"_profile_thread"
)
if
not
@
model
.
has
(
'abbreviatedBody'
)
@
abbreviateBody
()
params
=
$
.
extend
(
@
model
.
toJSON
(),{
expanded
:
@
expanded
})
params
=
$
.
extend
(
@
model
.
toJSON
(),{
expanded
:
@
expanded
,
permalink
:
@
model
.
urlFor
(
'retrieve'
)
})
if
not
@
model
.
get
(
'anonymous'
)
params
=
$
.
extend
(
params
,
user
:
{
username
:
@
model
.
username
,
user_url
:
@
model
.
user_url
})
@
$el
.
html
(
Mustache
.
render
(
@
template
,
params
))
...
...
lms/templates/discussion/_user_profile.html
View file @
0ad3e8a7
...
...
@@ -5,7 +5,7 @@
<div
class=
"user-profile"
>
<
%
role_names =
sorted(
map(attrgetter('name'),
django_user
.
roles
.
all
(
)))
role_names =
sorted(
set(map(attrgetter('name'),
django_user
.
roles
.
all
()
)))
%
>
<div
class=
"sidebar-username"
>
${django_user.username | h}
</div>
<div
class=
"sidebar-user-roles"
>
...
...
lms/templates/discussion/mustache/_profile_thread.mustache
View file @
0ad3e8a7
...
...
@@ -25,8 +25,8 @@
</ol>
<div
class=
"local post-tools"
>
<a
href=
"
javascript:void(0)"
class=
"expand-post
"
>
View discussion
</a>
<
a
href=
"javascript:void(0)"
class=
"collapse-post"
>
Hide discussion
</a
>
<a
href=
"
{{
permalink
}}
"
>
View discussion
</a>
<
!-- <a href="javascript:void(0)" class="collapse-post">Hide discussion</a> --
>
</div>
</article>
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