|
|
@ -5,6 +5,7 @@ json.id discuss.id
|
|
|
|
json.content content_safe(discuss.content)
|
|
|
|
json.content content_safe(discuss.content)
|
|
|
|
json.time time_from_now(discuss.created_at)
|
|
|
|
json.time time_from_now(discuss.created_at)
|
|
|
|
json.hack_id discuss.dis_id
|
|
|
|
json.hack_id discuss.dis_id
|
|
|
|
|
|
|
|
json.hidden discuss.hidden
|
|
|
|
# 主贴和回复有一些不同点
|
|
|
|
# 主贴和回复有一些不同点
|
|
|
|
if discuss.parent_id
|
|
|
|
if discuss.parent_id
|
|
|
|
json.can_delete discuss.can_deleted?(current_user)
|
|
|
|
json.can_delete discuss.can_deleted?(current_user)
|
|
|
|