Sha256: 2017206a6c92344ec9def25262044c3666b1bac6b3843ba3d9d62336eaa0f888

Contents?: true

Size: 1003 Bytes

Versions: 5

Compression:

Stored size: 1003 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_tag 'thredded/three-dot-menu.svg', class: 'thredded--post--dropdown--toggle' %>
    <div class='thredded--post--dropdown--actions'>
      <%= actions_html %>
    </div>
  </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thredded-1.1.0 app/views/thredded/posts_common/_actions.html.erb
thredded-1.0.1 app/views/thredded/posts_common/_actions.html.erb
thredded-1.0.0 app/views/thredded/posts_common/_actions.html.erb
thredded-0.16.16 app/views/thredded/posts_common/_actions.html.erb
thredded-0.16.15 app/views/thredded/posts_common/_actions.html.erb