Sha256: 4fd98fd1b844d20b786e299fff42202489e07734dcf23c6cc8f5caaf3c8abfd8

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

<div class="comment__actions">
  <% if depth.zero? && has_replies_in_children? %>
    <button class="button button__sm button__text-secondary comment__hide" data-controls="comment-<%= model.id %>-replies" data-open="true" id="comment-<%= model.id %>-replies-trigger">
      <span class="show-comment-replies font-normal"><%= t("decidim.components.comment.show_replies", count: replies.size) %></span>
      <%= icon "arrow-up-s-line" %>
      <span class="hide-comment-replies font-normal"><%= t("decidim.components.comment.hide_replies", count: replies.size) %></span>
    </button>
  <% end %>
  <% if can_reply? %>
    <button class="button button__sm button__text-secondary" data-controls="panel-<%= reply_id %>" id="panel-<%= reply_id %>-trigger">
      <%= icon "chat-1-line" %>
      <span class="font-normal"><%= t("decidim.components.comment.reply") %></span>
      <%= icon "close-circle-line" %>
      <span class="font-normal"><%= t("decidim.components.comment.cancel_reply") %></span>
    </button>
  <% end %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-comments-0.28.4 app/cells/decidim/comments/comment/actions.erb
decidim-comments-0.28.3 app/cells/decidim/comments/comment/actions.erb
decidim-comments-0.28.2 app/cells/decidim/comments/comment/actions.erb