<% # Clients of this partial must supply the following variables: # thread # user %> <% if thread.can_be_read_by?(user) %> <%= stylesheet_link_tag "commontator/application", :media => "all" %>
<% if @commontator_thread_show %> <%= render :partial => 'commontator/threads/show', :locals => {:thread => thread, :user => user} %> <% else %> <%= link_to "Show #{thread.config.comment_name.pluralize} (#{thread.comments.count})", commontator.thread_path(thread), :remote => true %> <% end %>
<% end %>