Sha256: f5ab216ba5dabbe24bab904f95d061a61d116d4026eef12bf0bccd8e2464663b

Contents?: true

Size: 1.08 KB

Versions: 11

Compression:

Stored size: 1.08 KB

Contents

<% # Clients of this partial must provide the following variables:
   # comment
   #
   # Additionally, they can override the following variables:
   thread ||= nil
   no_remote ||= false
%>

<% config = comment.thread.config %>

<% if comment.errors.any? %>
  <div class="comment_error_explanation">
    <h3>This <%= config.comment_name %> could not be
          <%= comment.id.blank? ? config.comment_create_verb_past : 'updated' %> because of the following error<%= comment.errors.count == 1 ? '' : 's' %>:</h3>

    <ul>
      <% comment.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
    </ul>
  </div>
<% end %>

<%= form_for([commontator, thread, comment],
             :remote => !no_remote) do |f| %>
  
  <div class="comment_form_field">
    <%= f.text_area :body, :rows => '7' %>
  </div>
  
  <div class="comment_form_actions">
    <%= f.submit (comment.id.blank? ? \
                   config.comment_create_verb_present : \
                   config.comment_edit_verb_present).capitalize + \
          ' ' + config.comment_name %>
  </div>
  
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
commontator-4.2.2 app/views/commontator/comments/_form.html.erb
commontator-4.2.1 app/views/commontator/comments/_form.html.erb
commontator-4.2.0 app/views/commontator/comments/_form.html.erb
commontator-4.1.2 app/views/commontator/comments/_form.html.erb
commontator-4.1.1 app/views/commontator/comments/_form.html.erb
commontator-4.0.2 app/views/commontator/comments/_form.html.erb
commontator-2.0.2 app/views/commontator/comments/_form.html.erb
commontator-4.0.1 app/views/commontator/comments/_form.html.erb
commontator-4.0.0 app/views/commontator/comments/_form.html.erb
commontator-2.0.1 app/views/commontator/comments/_form.html.erb
commontator-2.0.0 app/views/commontator/comments/_form.html.erb