Sha256: 82b4d09ceeb9be83dcd75443d848c0808d4ce94b1a9d0fe8e3c2311e19a70aff

Contents?: true

Size: 720 Bytes

Versions: 11

Compression:

Stored size: 720 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
radiant-forum-extension-3.0.7 app/views/posts/_edit_links.html.haml
radiant-forum-extension-3.0.6 app/views/posts/_edit_links.html.haml
radiant-forum-extension-3.0.5 app/views/posts/_edit_links.html.haml
radiant-forum-extension-3.0.4 app/views/posts/_edit_links.html.haml
radiant-forum-extension-3.0.3 app/views/posts/_edit_links.html.haml
radiant-forum-extension-3.0.2 app/views/posts/_edit_links.html.haml
radiant-forum-extension-3.0.1 app/views/posts/_edit_links.html.haml
radiant-forum-extension-3.0.0 app/views/posts/_edit_links.html.haml
radiant-forum-extension-3.0.0.rc6 app/views/posts/_edit_links.html.haml
radiant-forum-extension-3.0.0.rc4 app/views/posts/_edit_links.html.haml
radiant-forum-extension-3.0.0.rc3 app/views/posts/_edit_links.html.haml