Post a comment on <%= @page.name -%> <%= hidden_field :name => 'page_id', :value => @page.name.gsub(/ /, '_') %> <% if logged_in? -%>

Author: <%= Author.find(session[:author_id]).name -%><%= hidden_field :name => 'comment[author_id]', :value => session[:author_id] -%>

<% else -%>

<%= text_control :user, :label => 'Name: ', :size => 32 %>

<% end -%>

<%= text_control :url, :label => 'URL: ', :size => 60, :max_size => 256 %>

<%= text_area_control :comment, :label => 'Comment: ', :rows => 8, :cols => 60 %>