% focus_on = logged_in? ? 'title' : 'name' %> <% if @comment && @comment.errors.any? && @comment.reply_of_id.blank? %> <%= error_messages_for :comment %> <% end %> <% @form_div ||= 'closed' %>
<%= _('If you are a registered user, you can login and be automatically recognized.') %>
<%= content_tag('a', '', :name => 'comment_form') + _('Post a comment') %>
<% end %> <% unless pass_without_comment_captcha? %><%= _('Please type the two words below') %>
<%= recaptcha_tags(:display => { :theme => 'clean' }, :ajax => true) %> <% button_bar do %> <%= button_to_function :add, _('Confirm'), "return false", :id => "confirm-captcha" %> <%= button_to_function :cancel, _('Cancel'), "jQuery.colorbox.close()" %> <% end %><%= _('If you are a registered user, you can login and be automatically recognized.') %>
<% end %> <% unless pass_without_comment_captcha? %> <%= hidden_field_tag(:recaptcha_response_field, nil, :id => nil) %> <%= hidden_field_tag(:recaptcha_challenge_field, nil, :id => nil) %> <% end %> <%= labelled_form_field(_('Title'), text_field(:comment, :title)) %> <%= required labelled_form_field(_('Enter your comment'), text_area(:comment, :body, :rows => 5)) %> <% button_bar do %> <%= submit_button('add', _('Post comment'), :onclick => "submit_comment_form(this); return false") %> <% if cancel_triggers_hide %> <%= button_to_function :cancel, _('Cancel'), "f=jQuery(this).parents('.post_comment_box'); f.removeClass('opened'); f.addClass('closed'); return false" %> <% else %> <%= button('cancel', _('Cancel'), {:action => 'view_page', :profile => profile.identifier, :page => @comment.article.explode_path})%> <% end %> <% end %> <% end %>