Sha256: 95e640f484ac463dddc31abef380cbacf8f45ccf5e3adb2f5830c8d0de968f10

Contents?: true

Size: 831 Bytes

Versions: 3

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

3 entries across 3 versions & 1 rubygems

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