allow flagging for abuse and spoilers

This commit is contained in:
Your Name
2012-11-16 18:39:54 -05:00
parent 7c7ca3ff6b
commit fb6a07c812
4 changed files with 16 additions and 5 deletions

View File

@@ -78,7 +78,8 @@ if Backbone?
if @getContent(id)
@getContent(id).updateInfo(info)
$.extend @contentInfos, infos
class @Thread extends @Content
urlMappers:
'retrieve' : -> DiscussionUtil.urlFor('retrieve_single_thread', @discussion.id, @id)
@@ -119,7 +120,13 @@ if Backbone?
else
@get("body")
display_title: ->
display_tigetCommentsCount: ->
count = 0
@get('comments').each (comment) ->
count += comment.getCommentsCount() + 1
count
class @Comments extends Backbtle: ->
if @has("highlighted_title")
String(@get("highlighted_title")).replace(/<highlight>/g, '<mark>').replace(/<\/highlight>/g, '</mark>')
else
@@ -134,6 +141,7 @@ if Backbone?
created_at_time: ->
new Date(@get("created_at")).getTime()
class @Comment extends @Content
urlMappers: