<%= select_tag 'notification_option', options_for_select(@notification_options.collect {|o| [l(o.last), o.first]}, @notification_option.to_sym), :onchange => 'if ($("notification_option").value == "selected") {Element.show("notified-projects")} else {Element.hide("notified-projects")}' %>
<% content_tag 'div', :id => 'notified-projects', :style => (@notification_option == 'selected' ? '' : 'display:none;') do %><% @user.projects.each do |project| %>
<% end %>
<%= l(:text_user_mail_option) %>
<% end %><%= check_box_tag 'no_self_notified', 1, @user.pref[:no_self_notified] %>