<% title "Settings" %> <% if flash[:settings_notice] %>
<%= flash[:settings_notice] %>
<% end %> <% if flash[:error].present? %>
<%= flash[:error] %>
<% end %> <% if params[:state] == "previous-registration" %>
There is an existing account authorized with that social account. Contact <%= email_link %> if this is a mistake.
<% end %>
<% if @tab == "organization" && @organizations.present? %>

Settings for

<% else %>

Settings for ">@<%= @user.username.truncate(User::USERNAME_MAX_LENGTH) %>

<% end %>
<% if current_user.email.blank? %>

Confirm your email to complete your profile.

While you're at it, go ahead and fill everything out. <% if @user.twitter_username.blank? %> Connect your twitter account as well to complete your identity. <% elsif @user.github_username.blank? %> Connect your github account as well to complete your identity. <% end %>

<% end %> <% if @user.unconfirmed_email.present? %>

Email verification.

You have requested a change to <%= @user.unconfirmed_email %>. Check your inbox for the verification link to finalize the change.

<% end %> <% if @user.errors.any? %> <%= render partial: "users/errors", locals: { errors: @user.errors, title_suffix: "prohibited your profile from being saved" } %> <% end %> <% if @organization&.errors&.any? %> <%= render partial: "users/errors", locals: { errors: @organization.errors, title_suffix: "prohibited your organization profile from being saved" } %> <% end %> <%= render "users/" + @tab.tr("-", "_"), tab: @tab %>