This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
tuxbliki/app/views/comments/_comment_form.html.erb

28 lines
727 B
Plaintext
Raw Permalink Normal View History

2008-06-27 00:13:15 -04:00
<fieldset>
<legend>Post a comment on <em><%= @page.name -%></em></legend>
<%= hidden_field :name => 'page_id', :value => @page.name.gsub(/ /, '_') %>
<% if logged_in? -%>
<p>
Author: <%= Author.find(session[:author_id]).name -%><%= hidden_field :name => 'comment[author_id]', :value => session[:author_id] -%>
</p>
<% else -%>
<p>
2008-10-01 02:57:49 -04:00
<%= text_field :user, :label => 'Name: ', :size => 32 %>
2008-06-27 00:13:15 -04:00
</p>
<% end -%>
<p>
2008-10-01 02:57:49 -04:00
<%= text_field :url, :label => 'URL: ', :size => 60, :max_size => 256 %>
2008-06-27 00:13:15 -04:00
</p>
<p>
2008-10-01 02:57:49 -04:00
<%= text_area :comment, :label => 'Comment: ', :rows => 8, :cols => 60 %>
2008-06-27 00:13:15 -04:00
</p>
2008-08-28 19:36:31 -04:00
<% unless logged_in? -%>
<p>
<strong>Ident</strong>
<%= recaptcha_tags %>
</p>
<% end -%>
2008-06-27 00:13:15 -04:00
</fieldset>