Sha256: ca50fb576f2ce0d0427e3e9f66d11acfd33f7b3c41c397a4559c5b08da17b621

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

<% # Clients of this partial must supply the following variables:
   # thread
   # user
   # per_page

   hidden_class = @new_comment.nil? ? ' hidden' : '' %>

<div id="thread_<%= thread.id %>_reply" class="thread_reply">
  <% if thread.is_closed? %>
    <p><%= t 'commontator.thread.status.cannot_post' %></p>
  <% elsif !user %>
    <p><%= t 'commontator.require_login' %>.</p>
  <% else %>
    <div id="thread_<%= thread.id %>_new_comment_form_div" class="thread_new_comment_form<%=
    hidden_class %>">
      <% unless @new_comment.nil? %>
        <%= render :partial => 'commontator/comments/form',
                   :locals => { :comment => @new_comment,
                                :thread => thread,
                                :per_page => per_page } %>
      <% end %>
    </div>

    <% if @new_comment.nil? %>
      <div id="thread_<%= thread.id %>_new_comment_link_div" class="thread_new_comment_link">
        <%= link_to t('commontator.comment.actions.new'),
            commontator.new_thread_comment_path(thread, :per_page => per_page),
            :remote => true %>
      </div>
    <% end %>
  <% end %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
commontator-4.10.2 app/views/commontator/threads/_reply.html.erb
commontator-4.10.1 app/views/commontator/threads/_reply.html.erb
commontator-4.10.0 app/views/commontator/threads/_reply.html.erb
commontator-4.9.0 app/views/commontator/threads/_reply.html.erb