From b3ee21ad294fa0439bbb8fbccb4dc467c2fc1cd0 Mon Sep 17 00:00:00 2001 From: Alexander Bach Date: Thu, 10 Sep 2015 10:15:56 +0200 Subject: [PATCH] Move custom fields from settings to profile menu --- app/views/my/account.html.erb | 5 +++++ app/views/my/settings.erb | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb index 9bc5b8b0c5..69ecd916af 100644 --- a/app/views/my/account.html.erb +++ b/app/views/my/account.html.erb @@ -57,6 +57,11 @@ See doc/COPYRIGHT.rdoc for more details. <% end %> <%= call_hook(:view_my_account, user: @user, form: f) %> + + <%= render partial: 'customizable/field', + collection: @user.custom_field_values.select(&:editable?), + as: :value, + locals: { form: f } %> diff --git a/app/views/my/settings.erb b/app/views/my/settings.erb index f7a9b7a38c..2e1468b340 100644 --- a/app/views/my/settings.erb +++ b/app/views/my/settings.erb @@ -42,11 +42,6 @@ See doc/COPYRIGHT.rdoc for more details. <%= render :partial => 'users/preferences' %> - <%= render partial: 'customizable/field', - collection: @user.custom_field_values.select(&:editable?), - as: :value, - locals: { form: f } %> - <%= call_hook(:view_my_settings, :user => @user, :form => f) %> <% end %>