aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/users/templates
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-03-30 10:09:32 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-03-30 13:11:11 +0200
commit737b9fdfcc2cd876c34620a9cc228fe760366c7b (patch)
tree98aac8ed5536d5c227ef131c61e00cfbbd9c3d15 /server/sonar-web/src/main/js/apps/users/templates
parent0c1c2ec4c0a6185b3c40782661078c2e581eb545 (diff)
downloadsonarqube-737b9fdfcc2cd876c34620a9cc228fe760366c7b.tar.gz
sonarqube-737b9fdfcc2cd876c34620a9cc228fe760366c7b.zip
SONAR-7238 Display external identity information on user
Diffstat (limited to 'server/sonar-web/src/main/js/apps/users/templates')
-rw-r--r--server/sonar-web/src/main/js/apps/users/templates/users-list-item.hbs24
1 files changed, 21 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/users/templates/users-list-item.hbs b/server/sonar-web/src/main/js/apps/users/templates/users-list-item.hbs
index fb5987fbbd8..d59d649d1c8 100644
--- a/server/sonar-web/src/main/js/apps/users/templates/users-list-item.hbs
+++ b/server/sonar-web/src/main/js/apps/users/templates/users-list-item.hbs
@@ -9,7 +9,23 @@
<strong class="js-user-name">{{name}}</strong>
<span class="js-user-login note little-spacer-left">{{login}}</span>
</div>
- <div class="js-user-email little-spacer-top">{{email}}</div>
+
+ {{#if email}}
+ <div class="js-user-email little-spacer-top">{{email}}</div>
+ {{/if}}
+
+ {{#unless local}}
+ <div class="js-user-identity-provider little-spacer-top">
+ {{#if identityProvider}}
+ <div class="identity-provider" style="background-color: {{identityProvider.backgroundColor}}">
+ <img src="{{link identityProvider.iconPath}}" width="14" height="14"/>
+ {{externalIdentity}}
+ </div>
+ {{else}}
+ {{externalProvider}}: {{externalIdentity}}
+ {{/if}}
+ </div>
+ {{/unless}}
</td>
<td>
@@ -46,7 +62,9 @@
<td class="thin nowrap text-right">
<a class="js-user-update icon-edit little-spacer-right" title="Update Details" data-toggle="tooltip" href="#"></a>
- <a class="js-user-change-password icon-lock little-spacer-right" title="Change Password" data-toggle="tooltip"
- href="#"></a>
+ {{#if local}}
+ <a class="js-user-change-password icon-lock little-spacer-right" title="Change Password" data-toggle="tooltip"
+ href="#"></a>
+ {{/if}}
<a class="js-user-deactivate icon-delete" title="Deactivate" data-toggle="tooltip" href="#"></a>
</td>