Sha256: 81dcc5640293dd35b1227b7ee5a066ae148844191997c52c57150244f9abab8b

Contents?: true

Size: 542 Bytes

Versions: 2

Compression:

Stored size: 542 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)

%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

2 entries across 2 versions & 1 rubygems

Version Path
mongoid-forums-0.0.2 app/views/mongoid_forums/posts/_post.haml
mongoid-forums-0.0.1 app/views/mongoid_forums/posts/_post.haml