Sha256: 901b7ac33a766aa4d96fcfaeb13f8ee58b061f2ebca735d0a8da38d6a798a963

Contents?: true

Size: 967 Bytes

Versions: 7

Compression:

Stored size: 967 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

7 entries across 7 versions & 1 rubygems

Version Path
commontator-4.10.5 app/views/commontator/shared/_thread.html.erb
commontator-4.10.4 app/views/commontator/shared/_thread.html.erb
commontator-4.10.3 app/views/commontator/shared/_thread.html.erb
commontator-4.10.2 app/views/commontator/shared/_thread.html.erb
commontator-4.10.1 app/views/commontator/shared/_thread.html.erb
commontator-4.10.0 app/views/commontator/shared/_thread.html.erb
commontator-4.9.0 app/views/commontator/shared/_thread.html.erb