Merge pull request #692 from MITx/feature/dave/new-discussions

Small fixes
This commit is contained in:
arjun810
2012-09-14 13:06:53 -07:00
3 changed files with 4 additions and 5 deletions

View File

@@ -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))