Sha256: 5f264cb4f6cd0b2246a4848107efcbf66c478747202791a82145306f41b989fd
Contents?: true
Size: 1.01 KB
Versions: 2
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 %> <% 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 %> <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> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
commontator-6.1.1 | app/views/commontator/threads/_reply.html.erb |
commontator-6.1.0 | app/views/commontator/threads/_reply.html.erb |