write_attribute :email, (value && value.downcase)
end
+ # 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 = [] unless new_scm_accounts
+ new_scm_accounts << self.login
+ new_scm_accounts << self.email
+ new_scm_accounts
+ end
+
def available_groups
Group.all - self.groups
end
</tr>
<tr>
<td><b><%= message('my_profile.scm_accounts') -%>:</b></td>
- <td id="groups"><%= current_user.scm_accounts.split(',').reject { |c| c.empty? }.join(', ') if current_user.scm_accounts %></td>
+ <td id="groups"><%= current_user.full_scm_accounts.join(', ') %></td>
</tr>
</table>
</div>
my_profile.name=Name
my_profile.email=Email
my_profile.groups=Groups
-my_profile.scm_accounts=SCM ccounts
+my_profile.scm_accounts=SCM Accounts
my_profile.password.title=Change password
my_profile.password.old=Old value
my_profile.password.new=New value