Sha256: 20b46ab932821345690d64d973d03671f0f4669d2358c58b2affd4623c0fae01

Contents?: true

Size: 999 Bytes

Versions: 38

Compression:

Stored size: 999 Bytes

Contents

<% actions ||= {} %>
<% actions_html = capture do %>
  <%= view_hooks.post_common.actions.render self, post: post do %>
    <% if actions[:quote] && post.can_reply? %>
      <%= render 'thredded/posts_common/actions/quote', post: post %>
    <% end  %>
    <% if post.can_update? %>
      <%= render 'thredded/posts_common/actions/edit', post: post %>
    <% end %>
    <% if post.can_destroy? %>
      <%= render 'thredded/posts_common/actions/delete', post: post %>
    <% end %>
    <% if post.read_state %>
      <%= view_hooks.post_common.mark_as_unread.render self, post: post do %>
        <%= render 'thredded/posts_common/actions/mark_as_unread', post: post %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

<%- if actions_html.present? %>
  <div class='thredded--post--dropdown'>
    <%= inline_svg 'thredded/three-dot-menu.svg', class: 'thredded--post--dropdown--toggle' %>
    <div class='thredded--post--dropdown--actions'>
      <%= actions_html %>
    </div>
  </div>
<% end %>

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
thredded-0.16.14 app/views/thredded/posts_common/_actions.html.erb
thredded-0.16.13 app/views/thredded/posts_common/_actions.html.erb
thredded-0.16.12 app/views/thredded/posts_common/_actions.html.erb
thredded-0.16.11 app/views/thredded/posts_common/_actions.html.erb
thredded-0.16.10 app/views/thredded/posts_common/_actions.html.erb
thredded-0.16.9 app/views/thredded/posts_common/_actions.html.erb
thredded-0.16.8 app/views/thredded/posts_common/_actions.html.erb
thredded-0.16.7 app/views/thredded/posts_common/_actions.html.erb
thredded-0.16.6 app/views/thredded/posts_common/_actions.html.erb
thredded-0.16.5 app/views/thredded/posts_common/_actions.html.erb
thredded-0.16.4 app/views/thredded/posts_common/_actions.html.erb
thredded-0.16.3 app/views/thredded/posts_common/_actions.html.erb
thredded-0.16.1 app/views/thredded/posts_common/_actions.html.erb
thredded-0.16.0 app/views/thredded/posts_common/_actions.html.erb
thredded-0.15.5 app/views/thredded/posts_common/_actions.html.erb
thredded-0.15.4 app/views/thredded/posts_common/_actions.html.erb
thredded-0.15.3 app/views/thredded/posts_common/_actions.html.erb
thredded-0.15.2 app/views/thredded/posts_common/_actions.html.erb
thredded-0.15.1 app/views/thredded/posts_common/_actions.html.erb
threddedDANIEL-0.14.5 app/views/thredded/posts_common/_actions.html.erb