2017-03-11 13:25:39 +05:30
|
|
|
%div{ style: "padding-left:#{padding}px" }
|
2015-02-27 11:11:14 -06:00
|
|
|
.well.comment-section
|
|
|
|
|
%strong= comment.user.name
|
|
|
|
|
%i= comment.created_at
|
|
|
|
|
%p.comment-body= comment.body
|
|
|
|
|
%div
|
2017-03-11 13:25:39 +05:30
|
|
|
%a.pull-right.comment-reply-link{ href: '#' } Reply
|
2015-02-27 11:11:14 -06:00
|
|
|
.comment-reply
|
2017-10-07 02:34:46 +05:30
|
|
|
= semantic_form_for :comment, url: comment_admin_conference_program_event_path(@conference.short_title, comment.commentable_id), method: :post do |f|
|
2016-03-20 19:06:12 +02:00
|
|
|
= f.input :body
|
2017-10-07 02:34:46 +05:30
|
|
|
%input{ name: 'parent', type: 'hidden', value: comment.id }
|
2017-03-11 13:25:39 +05:30
|
|
|
%input{ name: 'authenticity_token', type: 'hidden', value: '#{form_authenticity_token}' }
|
|
|
|
|
%button.btn.btn-primary.pull-right{ name: 'button', type: 'submit' } Add Reply
|
2015-02-27 11:11:14 -06:00
|
|
|
- comment.children.each do |child|
|
2017-03-11 13:25:39 +05:30
|
|
|
= render 'nested_comments', comment: child, padding: 50
|