Sha256: 7fd86b5fc36276884d0d6c07f2f363687701f9c368add5815f11baf212b8028e

Contents?: true

Size: 1.31 KB

Versions: 6

Compression:

Stored size: 1.31 KB

Contents

<%= content_tag :div, id: node_id, data: { decidim_comments: comments_data } do %>
  <div class="comments-container" id="comments">
    <div class="comments">
      <div class="row collapse comments__header">
        <h3 class="order-by__text section-heading">
          <%= comments_count %> <%= Decidim::Comments::Comment.model_name.human(count: comments_count) %>
        </h3>
        <% if comments_count > 2 && current_component.settings.comments_enabled %>
          <%= link_to '#add_comment', class: 'link' do %>
            <%= icon "comment-square", class: "icon--small", role: "img", "aria-hidden": true %>
            <span><%= t('decidim.enhanced_textwork.actions.add_comment') %></span>
          <% end %>
        <% end %>
      </div>

      <%= single_comment_warning %>
      <%= blocked_comments_warning %>
      <div class="comment-threads">
        <% comments.each do |comment| %>
          <%= cell("decidim/comments/comment_thread", comment, order: order) %>
        <% end %>
      </div>
      <div id="add_comment">
        <%= add_comment %>
      </div>
      <%= user_comments_blocked_warning %>
    </div>
    <div class="callout primary loading-comments hide">
      <p><%= t("decidim.components.comments.loading") %></p>
    </div>
  </div>
<% end %>
<%= javascript_include_tag("decidim/comments/comments") %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-enhanced_textwork-1.0.5 app/cells/decidim/enhanced_textwork/comments/show.erb
decidim-enhanced_textwork-1.0.4 app/cells/decidim/enhanced_textwork/comments/show.erb
decidim-enhanced_textwork-1.0.3 app/cells/decidim/enhanced_textwork/comments/show.erb
decidim-enhanced_textwork-1.0.2 app/cells/decidim/enhanced_textwork/comments/show.erb
decidim-enhanced_textwork-1.0.1 app/cells/decidim/enhanced_textwork/comments/show.erb
decidim-enhanced_textwork-1.0.0 app/cells/decidim/enhanced_textwork/comments/show.erb