Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun
commit
e40e1d9965
@ -1,8 +1,8 @@
|
||||
json.disscuss_count @disscuss_count
|
||||
json.all @current_user.admin?
|
||||
json.comments @discusses do |discuss|
|
||||
json.partial! 'discusses/discuss', locals: { discuss: discuss, container: @container, current_user: @current_user }
|
||||
json.partial! 'discusses/discuss', locals: { discuss: discuss, container: @container, current_user: @current_user, children: false}
|
||||
json.children discuss.child_discuss(current_user) do |c_d|
|
||||
json.partial! 'discusses/discuss', locals: { discuss: c_d, container: @container, current_user: @current_user }
|
||||
json.partial! 'discusses/discuss', locals: { discuss: c_d, container: @container, current_user: @current_user, children: true }
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in new issue