Sha256: db8c6444dcd3c3096a6be9e2145324ea8704f52a7b24c0808c5e7d24a7385845

Contents?: true

Size: 656 Bytes

Versions: 5

Compression:

Stored size: 656 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 => '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

5 entries across 5 versions & 1 rubygems

Version Path
radiant-forum-extension-2.1.6 app/views/posts/_edit_links.html.haml
radiant-forum-extension-2.1.4 app/views/posts/_edit_links.html.haml
radiant-forum-extension-2.1.3 app/views/posts/_edit_links.html.haml
radiant-forum-extension-2.1.2 app/views/posts/_edit_links.html.haml
radiant-forum-extension-2.1.1 app/views/posts/_edit_links.html.haml