Sha256: b6f8c159eb748d6a4d30fc7f3795169f801a3cc4c98e4d1a75a67471a0b9db95
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
<%# Views that use this partial must supply the following variables: thread user %> <div id="commontator-thread-<%= thread.id %>-reply" class="reply"> <% if thread.is_closed? %> <p><%= t 'commontator.thread.status.cannot_post' %></p> <% elsif !user %> <p><%= t 'commontator.require_login' %>.</p> <% else %> <div id="commontator-thread-<%= thread.id %>-new-comment" class="new-comment<%= @commontator_new_comment.nil? ? ' hidden' : '' %>"> <% unless @commontator_new_comment.nil? %> <%= render partial: 'commontator/comments/form', locals: { comment: @commontator_new_comment, thread: thread } %> <% end %> </div> <% if @commontator_new_comment.nil? %> <div id="commontator-thread-<%= thread.id %>-new-comment-link" class="new-comment"> <%= link_to t('commontator.comment.actions.new'), commontator.new_thread_comment_path(thread), remote: true %> </div> <% end %> <% end %> </div>
Version data entries
3 entries across 3 versions & 1 rubygems