diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erb index 9efafd6ce5..898d98541a 100644 --- a/app/views/users/_form.html.erb +++ b/app/views/users/_form.html.erb @@ -28,6 +28,18 @@ <% end %>
+ <% if Rails.env == "production" %> + <% if params[:controller] == "users" && params[:action] == "edit" %> +
+ +
+
+ <%= render :partial => "layouts/social_icons" %> +
+ <% end %> + <% end %> +
+ <%= f.text_field :email, { tabindex: 3, placeholder: "you@email.com", class: 'form-control', id: 'email' } %> diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index fa8160591b..3d6e8eddb6 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb @@ -3,14 +3,5 @@

<%= t('users.edit.edit_profile') %>


- <% if Rails.env == "production"%> -
- -
-
- <%= render :partial => "layouts/social_icons" %> -
- <% end %> - - -<%= render 'form' %> + + <%= render 'form' %>