% # 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" %>
<% if @commontator_thread_show %>
<%= render :partial => 'commontator/threads/show', :locals => {:thread => thread,
:user => user} %>
<% else %>
<%= link_to "Show #{thread.config.comment_name.pluralize} (#{subscription ? subscription.unread + '/' + thread.comments.count : thread.comments.count})", \
commontator.thread_path(thread), :remote => true %>
<% end %>
<% end %>