<%= t('.title') %>
<% if @hat_requests.count == 0 %>
<%= t('.nohatrequests') %>
<% else %>
<% @hat_requests.each_with_index do |hr,x| %>
<% if x > 0 %>
<% end %>
<%= form_for hr, :url => approve_hat_request_url(:id => hr),
:method => :post do |f| %>
<%= f.label :hat, t('.hat'), :class => "required" %>
<%= f.text_field "hat", :size => 75 %>
<%= f.label :link, t('.link'), :class => "required" %>
<%= f.text_field "link", :size => 75 %>
<%= f.label :link, t('.comment'), :class => "required" %>
<%= raw(h(hr.comment.to_s).gsub(/\n/, "
")) %>
<%= submit_tag t('.approve') %>
<% end %>
<%= t('.hator') %>
<%= form_for hr, :url => reject_hat_request_url(:id => hr),
:method => :post do |f| %>
<%= f.label :link, t('.reason'), :class => "required" %>
<%= f.text_area :rejection_comment, :rows => 4 %>
<%= submit_tag t('.reject') %>
<% end %>
<% end %>
<% end %>