From 883d79b2f7a8d57c5a3f8bcbc4bd018dea7f82c7 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 18 Jun 2015 14:45:20 +0200 Subject: [PATCH] SONAR-6507 apply feedback --- .../src/main/webapp/WEB-INF/app/models/user.rb | 2 +- .../webapp/WEB-INF/app/views/account/index.html.erb | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/models/user.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/models/user.rb index a727b0b529e..fed2167f346 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/models/user.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/models/user.rb @@ -86,7 +86,7 @@ class User < ActiveRecord::Base # SCM accounts should also contain login and email def full_scm_accounts - new_scm_accounts = self.scm_accounts.split(',').reject { |c| c.empty? } if self.scm_accounts + new_scm_accounts = self.scm_accounts.split(/\r?\n/).reject { |c| c.empty? } if self.scm_accounts new_scm_accounts = [] unless new_scm_accounts new_scm_accounts << self.login new_scm_accounts << self.email diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/account/index.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/account/index.html.erb index 412bd704e06..34b20b53303 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/account/index.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/account/index.html.erb @@ -6,10 +6,10 @@ <% if configuration('sonar.lf.enableGravatar', 'true') == 'true' %>
<% end %> -

<%= current_user.name %>

-

<%= current_user.login %>

+

<%= current_user.name -%>

+

<%= current_user.login -%>

-

<%= current_user.email %>

+

<%= current_user.email -%>

@@ -17,7 +17,7 @@

<%= message('my_profile.groups') -%>

@@ -26,14 +26,14 @@

<%= message('my_profile.scm_accounts') -%>

<% if User.editable_password? %>
- -- 2.39.5