Sha256: 997f661ce46de9ee5bebce8addbf09b23e996cfa627916a5df8dcb9ee2b7f3e7
Contents?: true
Size: 742 Bytes
Versions: 1
Compression:
Stored size: 742 Bytes
Contents
= post.user.forum_display_name - if post.reply_to_id replied to = MongoidForums::Post.find(post.reply_to_id).user.forum_display_name - else created = time_ago_in_words(post.created_at) ago = link_to 'Quote', new_topic_post_path(post.topic_id, :reply_to_id => post.id) - if allow? "mongoid_forums/posts", :edit, post = link_to "Edit", edit_topic_post_path(post.topic_id, post) - if allow? "mongoid_forums/posts", :destroy, post = button_to "Delete", topic_post_path(post.topic_id, post), :method => :delete, data: { :confirm => "Are you sure?" }, :class => "btn btn-danger" %br - if post.reply_to_id = render :partial => 'mongoid_forums/posts/quoted', :locals => {:post => post} %br = mongoid_forums_format(post.text) %br %hr
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid-forums-0.0.3 | app/views/mongoid_forums/posts/_post.haml |