]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6008 Display SCM accounts in My Profile page
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 6 Jan 2015 12:49:13 +0000 (13:49 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 6 Jan 2015 13:11:00 +0000 (14:11 +0100)
server/sonar-web/src/main/webapp/WEB-INF/app/views/account/index.html.erb
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index 426d20b00371242868265765df859351456dec23..1fdc995856984e65cb6d867b0862db7379e1fa55 100644 (file)
         <td><b><%= message('my_profile.groups') -%>:</b></td>
         <td id="groups"><%= current_user.groups.sort.map(&:name).join(', ') %></td>
       </tr>
+      <tr>
+        <td><b><%= message('my_profile.scm_accounts') -%>:</b></td>
+        <td id="groups"><%= current_user.scm_accounts.split(',').reject { |c| c.empty? }.join(', ') %></td>
+      </tr>
     </table>
   </div>
 
index 13eaa3d208f8cce141d083ae55f50621620de99a..ce5d428586e7401a98bf3b74023eb9f360ed6904 100644 (file)
@@ -1997,6 +1997,7 @@ my_profile.login=Login
 my_profile.name=Name
 my_profile.email=Email
 my_profile.groups=Groups
+my_profile.scm_accounts=SCM ccounts
 my_profile.password.title=Change password
 my_profile.password.old=Old value
 my_profile.password.new=New value