% if current_user %> <% unless current_user.confirmed? %> <%= render 'common/confirm_email_modal' %> <% end %> <% else %> <%= render 'common/choose_role_modal' %> <%= render 'users/signup_modal' %> <%= render 'users/login_modal' %> <% end %>