mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-27 11:14:31 -04:00
21 lines
681 B
Plaintext
21 lines
681 B
Plaintext
= render :partial => "posts/single", :locals => { :post => @post || @comment.post, :subject => true }
|
|
|
|
%h2 Your comment
|
|
= form_for @comment do |f|
|
|
- if @comment.errors.any?
|
|
#error_explanation
|
|
%h2= "#{pluralize(@comment.errors.count, "error")} prohibited this comment from being saved:"
|
|
%ul
|
|
- @comment.errors.full_messages.each do |msg|
|
|
%li= msg
|
|
|
|
.field
|
|
= f.text_area :body, :rows => 6, :class => 'input-block-level'
|
|
%span.help-block
|
|
= render :partial => "shared/markdown_help"
|
|
.actions
|
|
= f.submit 'Post comment', :class => 'btn btn-primary'
|
|
- if defined?(@post)
|
|
.field
|
|
= f.hidden_field :post_id, :value => @post.id
|