Sha256: e497d5903cb866d2569a92040adbc43a54c54d120daa73b6579e943245cbcfab

Contents?: true

Size: 383 Bytes

Versions: 14

Compression:

Stored size: 383 Bytes

Contents

<% if post.can_update? %>
  <%= link_to t('thredded.posts.edit'), post.edit_path, class: 'thredded--post--edit' %>
<% end %>

<% if post.can_destroy? %>
  <%= link_to t('thredded.posts.delete'), post.destroy_path,
              method: :delete,
              class:  'thredded--post--delete',
              data:   { confirm: I18n.t('thredded.posts.delete_confirm') }
  %>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
thredded-0.10.0 app/views/thredded/posts_common/_actions.html.erb
thredded-0.9.4 app/views/thredded/posts_common/_actions.html.erb
thredded-0.9.3 app/views/thredded/posts_common/_actions.html.erb
thredded-0.9.2 app/views/thredded/posts_common/_actions.html.erb
thredded-0.9.1 app/views/thredded/posts_common/_actions.html.erb
thredded-0.8.4 app/views/thredded/posts_common/_actions.html.erb
thredded-0.8.2 app/views/thredded/posts_common/_actions.html.erb
thredded-0.7.0 app/views/thredded/posts_common/_actions.html.erb
thredded-0.6.3 app/views/thredded/posts_common/_actions.html.erb
thredded-0.6.2 app/views/thredded/posts_common/_actions.html.erb
thredded-0.6.1 app/views/thredded/posts_common/_actions.html.erb
thredded-0.6.0 app/views/thredded/posts_common/_actions.html.erb
thredded-0.5.1 app/views/thredded/posts_common/_actions.html.erb
thredded-0.5.0 app/views/thredded/posts_common/_actions.html.erb