Sha256: a81c52202d82524436957466447aeafd0c11ae8d95c599dbce3332318d5a1224

Contents?: true

Size: 1.02 KB

Versions: 7

Compression:

Stored size: 1.02 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? ? ' commontator-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

7 entries across 7 versions & 1 rubygems

Version Path
commontator-7.0.1 app/views/commontator/threads/_reply.html.erb
commontator-7.0.0 app/views/commontator/threads/_reply.html.erb
commontator-6.3.2 app/views/commontator/threads/_reply.html.erb
commontator-6.3.1 app/views/commontator/threads/_reply.html.erb
commontator-6.3.0 app/views/commontator/threads/_reply.html.erb
commontator-6.2.1 app/views/commontator/threads/_reply.html.erb
commontator-6.2.0 app/views/commontator/threads/_reply.html.erb