Sha256: 4b33993043cfdf1a1255a41087358cdc1297cd9d6c7fc56765a48efe0a5a1aa8

Contents?: true

Size: 714 Bytes

Versions: 1

Compression:

Stored size: 714 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 post.owner_or_admin?(mongoid_forums_user)
  - if can?(:edit_post, post.topic.forum)
    = link_to "Edit", edit_topic_post_path(post.topic_id, post)
  - if can?(:destroy_post, post.topic.forum)
    = button_to "Delete", topic_post_path(post.topic_id, post), :method => :delete


%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.4 app/views/mongoid_forums/posts/_post.haml