Sha256: d35c3ec5ae04455d35669bf89b5ebed6810750a485e6fc38434102479570143e

Contents?: true

Size: 842 Bytes

Versions: 2

Compression:

Stored size: 842 Bytes

Contents

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

<% subscription = thread.subscription_for(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} %>
    <% else %>
      <%= link_to "#{t 'commontator.thread.actions.show'} (#{subscription ? (subscription.unread.to_s + '/' + thread.comments.count.to_s) : thread.comments.count.to_s})", \
                  commontator.thread_path(thread), :remote => true %>
    <% end %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
commontator-4.4.1 app/views/commontator/shared/_thread.html.erb
commontator-4.3.0 app/views/commontator/shared/_thread.html.erb