Sha256: 0cb7c25fbedc65ed4a354e73b04ee434696eaf5df4287e042a1b10c81b9abbc2

Contents?: true

Size: 831 Bytes

Versions: 2

Compression:

Stored size: 831 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 "Show #{thread.config.comment_name.pluralize} (#{subscription ? subscription.unread + '/' + thread.comments.count : thread.comments.count})", \
                  commontator.thread_path(thread), :remote => true %>
    <% end %>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
commontator-4.0.1 app/views/commontator/shared/_thread.html.erb
commontator-4.0.0 app/views/commontator/shared/_thread.html.erb