]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7238 do not display identity provider details when it is "sonarqube"
authorStas Vilchik <vilchiks@gmail.com>
Mon, 11 Apr 2016 13:42:05 +0000 (15:42 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 11 Apr 2016 13:42:05 +0000 (15:42 +0200)
server/sonar-web/src/main/js/apps/account/components/UserCard.js
server/sonar-web/src/main/js/apps/users/templates/users-list-item.hbs

index b680781a718aedd1e0f974f9f6f571508c4766d1..82f9b939b286f3135acea47be66363c2fdf48f5d 100644 (file)
@@ -36,7 +36,7 @@ export default function UserCard ({ user }) {
             <h1 id="name" className="display-inline-block">{user.name}</h1>
           </IndexLink>
           <span id="login" className="note big-spacer-left">{user.login}</span>
-          {!user.local && (
+          {!user.local && user.externalProvider !== 'sonarqube' && (
               <span id="identity-provider" className="big-spacer-left">
                 <UserExternalIdentity user={user}/>
               </span>
index d59d649d1c80e81560af42f36725d1a621f862b0..f9c238d69c96763dbfc19b2ae3e52e39283f11a5 100644 (file)
   {{/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>
+    {{#notEq externalProvider 'sonarqube'}}
+      <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>
+    {{/notEq}}
   {{/unless}}
 </td>