Sha256: f2aab8ef9c28eb5bed88607e66d69f3c5b6a52f3a2ed696a3761b5f87b8e0927

Contents?: true

Size: 1019 Bytes

Versions: 1

Compression:

Stored size: 1019 Bytes

Contents

<%
  # Controllers that use this partial must supply the following variables:
  # thread
  # user
  # per_page
  # page
  # show_all
  # Additionally, they may override the following variable:
  @commontator_thread_show ||= false
%>

<% if !thread.nil? && thread.can_be_read_by?(user) %>
  <div id="commontator-thread-<%= thread.id %>" class="commontator thread">
    <% if @commontator_thread_show %>
      <%=
        render partial: 'commontator/threads/show', locals: {
          thread: thread,
          user: user,
          page: page,
          per_page: per_page,
          show_all: show_all
        }
      %>
    <% else %>
      <% subscription = thread.subscription_for(user) %>
      <%= link_to "#{t 'commontator.thread.actions.show'} (#{
                    (subscription.unread_comments.count.to_s + '/') if subscription
                  }#{thread.filtered_comments.count.to_s})",
                  commontator.thread_path(thread),
                  remote: true %>
    <% end %>
  </div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
commontator-6.0.0.pre.1 app/views/commontator/shared/_thread.html.erb