Sha256: 0841a2f8e677e7436f8dec5563cbd26898c6d449a699967cc152452b7a83ebd1
Contents?: true
Size: 966 Bytes
Versions: 12
Compression:
Stored size: 966 Bytes
Contents
<% # Controllers that use this partial must supply the following variables: # thread # user # page # show_all # Additionally, they may override the following variable: @commontator_thread_show ||= false %> <% if !thread.nil? && thread.can_be_read_by?(user) %> <div id="commontator-thread-<%= thread.id %>" class="commontator thread"> <% if @commontator_thread_show %> <%= render partial: 'commontator/threads/show', locals: { thread: thread, user: user, page: page, show_all: show_all } %> <% else %> <% subscription = thread.subscription_for(user) %> <%= link_to "#{t 'commontator.thread.actions.show'} (#{ (subscription.unread_comments(show_all).count.to_s + '/') if subscription }#{thread.filtered_comments(show_all).count.to_s})", commontator.thread_path(thread), remote: true %> <% end %> </div> <% end %>
Version data entries
12 entries across 12 versions & 1 rubygems