Settings

<%= simple_form_for @user do |f| %>

<%= link_to "Basic settings", "#basic-settings", :class => 'active' %> | <%= link_to "Advanced settings", "#advanced-settings" %> | <%= link_to "Change password", "#change-password" %> | <%= link_to "Delete account", maintenance_user_deletion_path, :id => "delete-account" %>

<% if CurrentUser.user.is_gold? %>

<%= link_to "Request a name change", new_user_name_change_request_path %>

<% else %>

You must <%= link_to "upgrade your account", upgrade_information_users_path %> to request a name change

<% end %>

<% if CurrentUser.user.email.present? %> <%= CurrentUser.user.email %> <% else %> blank <% end %> – <%= link_to "Change your email", new_maintenance_user_email_change_path %>

<%= f.input :time_zone, :include_blank => false %> <%= f.input :receive_email_notifications, :as => :select, :include_blank => false %> <%= f.input :comment_threshold, :hint => "Comments below this score will be hidden by default" %> <%= f.input :default_image_size, :hint => "Show original image or show resized #{Danbooru.config.large_image_width} pixel version", :label => "Default image width", :collection => [["850px", "large"], ["original", "original"]], :include_blank => false %> <% if CurrentUser.user.is_gold? %> <%= f.input :per_page, :label => "Posts per page", :as => :select, :collection => (1..100), :include_blank => false %> <% end %> <%= f.input :blacklisted_tags, :hint => "Put any tag combinations you never want to see here. Each combination should go on a separate line.", :input_html => {:size => "40x5"} %>
<%= f.input :style_usernames, :as => :select, :label => "Colored usernames", :hint => "Color each user's name depending on their level", :include_blank => false, :collection => [["Yes", "true"], ["No", "false"]] %> <%= f.input :always_resize_images, :as => :select, :include_blank => false, :label => "Fit images to window", :hint => "Use JavaScript to resize images to fit window" %> <%= f.input :enable_post_navigation, :as => :select, :include_blank => false, :label => "Enable keyboard shortcuts" %> <%= f.input :enable_sequential_post_navigation, :as => :select, :label => "Enable slideshow mode", :hint => "Show prev/next links when viewing a post", :include_blank => false %> <%= f.input :new_post_navigation_layout, :as => :select, :label => "Navigation bar position", :include_blank => false, :collection => [["Below", "true"], ["Above", "false"]], :hint => "When browsing pools or slideshows, place navigation links above or below the image" %> <%= f.input :hide_deleted_posts, :as => :select, :label => "Deleted post filter", :hint => "Remove deleted posts from search results", :include_blank => false, :collection => [["Yes", "true"], ["No", "false"]] %> <%= f.input :enable_auto_complete, :as => :select, :collection => [["Yes", "true"], ["No", "false"]], :include_blank => false %>
A list of tags that you use often. They will appear when using the list of Related Tags.
<%= f.input :custom_style, :label => "Custom CSS style", :hint => "Style to apply to the whole site." %>
<%= f.input :password, :hint => "Leave blank if you don't want to change your password", :label => "New password", :input_html => {:autocomplete => "off"} %> <%= f.input :old_password, :as => :password, :input_html => {:autocomplete => "off"} %>
<%= f.button :submit, "Submit" %> <% end %>
<% content_for(:page_title) do %> Settings - <%= Danbooru.config.app_name %> <% end %> <% content_for(:html_header) do %> <% end %> <%= render "secondary_links" %>