% form_tag(:controller=>"user", :action=>"set_receive_email_alerts") do %>
<% if @user.receive_email_alerts %>
<%= _('You are currently receiving notification of new activity on your wall by email.', :wall_url => show_user_wall_path) %>
<%= hidden_field_tag 'receive_email_alerts', 'false' %>
<%= hidden_field_tag 'came_from', request.url %>
<%= submit_tag _("Turn off email alerts") %>
<% else %>
<%= _('Items matching the following conditions are currently displayed on your wall.') %>
<%= hidden_field_tag 'receive_email_alerts', 'true' %>
<%= hidden_field_tag 'came_from', request.url %>
<%= submit_tag _("Also send me alerts by email") %>
<% end %>
<% end %>