Changed Ruby syntax in views. Fixed #1326
This commit is contained in:
parent
b0a84ad1c6
commit
1ca448df6f
74 changed files with 371 additions and 376 deletions
|
|
@ -1,15 +1,15 @@
|
|||
%div{style: "padding-left:#{padding}px"}
|
||||
%div{ style: "padding-left:#{padding}px" }
|
||||
.well.comment-section
|
||||
%strong= comment.user.name
|
||||
%i= comment.created_at
|
||||
%p.comment-body= comment.body
|
||||
%div
|
||||
%a.pull-right.comment-reply-link{href: "#"} Reply
|
||||
%a.pull-right.comment-reply-link{ href: '#' } Reply
|
||||
.comment-reply
|
||||
= semantic_form_for :comment, url: "#{comment_admin_conference_program_event_path(@conference.short_title, comment.commentable_id)}", method: :post do |f|
|
||||
= semantic_form_for :comment, url: '#{comment_admin_conference_program_event_path(@conference.short_title, comment.commentable_id)}', method: :post do |f|
|
||||
= f.input :body
|
||||
%input{name: "parent", type: "hidden", value: "#{comment.id}"}
|
||||
%input{name: "authenticity_token", type: "hidden", value: "#{form_authenticity_token}"}
|
||||
%button.btn.btn-primary.pull-right{name: "button", type: "submit"} Add Reply
|
||||
%input{ name: 'parent', type: 'hidden', value: '#{comment.id}' }
|
||||
%input{ name: 'authenticity_token', type: 'hidden', value: '#{form_authenticity_token}' }
|
||||
%button.btn.btn-primary.pull-right{ name: 'button', type: 'submit' } Add Reply
|
||||
- comment.children.each do |child|
|
||||
= render "nested_comments", comment: child, padding: 50
|
||||
= render 'nested_comments', comment: child, padding: 50
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue