Sha256: 3d63cd08ab22e7ffd230c07c6bf255b48d768c996f8c18ee1d0cd5d171c5ba9c

Contents?: true

Size: 963 Bytes

Versions: 6

Compression:

Stored size: 963 Bytes

Contents

<% # Clients of this partial must supply the following variables:
   # thread
   # user
%>

<% if thread.can_be_read_by?(user) %>
  <%= stylesheet_link_tag "commontator/application.css", :media => "all" %>

  <div id="thread_<%= thread.id %>_div" class="thread" style="display: none;">
    <% if @commontator_thread_show %>
      <%= render :partial => 'commontator/threads/show',
                 :locals => {:thread => thread,
                             :user => user,
                             :page => @commontator_page,
                             :per_page => @commontator_per_page} %>
    <% 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

6 entries across 6 versions & 1 rubygems

Version Path
commontator-4.8.0 app/views/commontator/shared/_thread.html.erb
commontator-4.7.2 app/views/commontator/shared/_thread.html.erb
commontator-4.7.1 app/views/commontator/shared/_thread.html.erb
commontator-4.7.0 app/views/commontator/shared/_thread.html.erb
commontator-4.6.1 app/views/commontator/shared/_thread.html.erb
commontator-4.6.0 app/views/commontator/shared/_thread.html.erb