# #{@post.title}

Created at #{@created_at} and written by #{@post.user.username}

#{RDiscount.new(@post.body).to_html}

#{Posts.a('Edit', :edit, @post.id)} | #{Posts.a('Delete', :delete, @post.id)}

## Comments

# #{comment.username}

#{comment.created_at.strftime('%Y-%m-%d')}

#{comment.comment}

No comments have been added yet.

## Add Comment

#{form_for( @new_comment, :method => :post, :action => Posts.r(:add_comment) ) do |f| f.input_hidden(:post_id, @post.id) unless logged_in? f.input_text('Username', :username) end f.textarea('Comment', :comment, :rows => 7, :cols => 60) f.input_submit('Submit') end}