Sha256: 745b3aa759909e15d843efa656630617966d248a8e3569096f79107b72e969b2

Contents?: true

Size: 666 Bytes

Versions: 7

Compression:

Stored size: 666 Bytes

Contents

- post ||= @post
- unless post.frozen?
  - if post.editable_by?(current_reader)
    - if post.editable_interval
      = t('time_remaining_to_edit', :time => distance_of_time_in_words(post.still_editable_for))
    = link_to t('edit_your_post'), edit_topic_post_url(post.topic, post), :class => 'edit_post remote', :id => "revise_post_#{post.id}"
  - elsif admin?
    = link_to t("edit_minimal"), edit_topic_post_url(post.topic, post), :class => 'edit_post remote', :id => "revise_post_#{post.id}", :title => "edit post"
    = link_to t("remove_minimal"), remove_post_url(post), :class => 'delete_post remote', :id => "delete_post_#{post.id}", :title => "remove post"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
radiant-forum-extension-2.0.9 app/views/posts/_edit_links.html.haml
radiant-forum-extension-2.0.8 app/views/posts/_edit_links.html.haml
radiant-forum-extension-2.0.7 app/views/posts/_edit_links.html.haml
radiant-forum-extension-2.0.6 app/views/posts/_edit_links.html.haml
radiant-forum-extension-2.0.5 app/views/posts/_edit_links.html.haml
radiant-forum-extension-2.0.4 app/views/posts/_edit_links.html.haml
radiant-forum-extension-2.0.3 app/views/posts/_edit_links.html.haml