]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5209 Cross project duplications
authorStas Vilchik <vilchiks@gmail.com>
Mon, 30 Jun 2014 06:31:44 +0000 (12:31 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 30 Jun 2014 06:31:44 +0000 (12:31 +0600)
sonar-server/src/main/hbs/component-viewer/duplicationPopup.hbs
sonar-server/src/main/less/component-viewer.less

index 5ca853ca564188a4a87b1cecfcaa2c784615a907..4444ac429c20d875e8b2b8f933e47ad3bd4bb528 100644 (file)
@@ -2,15 +2,13 @@
   <div class="component-viewer-popup-title">{{t 'component_viewer.transition.duplication'}}</div>
   {{#each duplications}}
     <div class="component-viewer-popup-section">
-      {{#eq file.projectName ../component.projectName}}
-        <a class="link-action" data-key="{{file.key}}" title="{{file.name}}">
-          {{file.name}}
-        </a>
-      {{else}}
-        <a class="link-action" data-key="{{file.key}}" title="{{file.projectName}}:{{file.name}}">
-          {{file.projectName}}:{{file.name}}
-        </a>
-      {{/eq}}
+      {{#notEq file.projectName ../component.projectName}}
+        <span class="component-viewer-popup-label">{{file.projectName}}</span>
+      {{/notEq}}
+      <a class="link-action" data-key="{{file.key}}" title="{{file.name}}">
+        {{file.name}}
+      </a>
+
       <div class="component-viewer-popup-duplications">
         Lines:
         {{#joinEach blocks ','}}
index 20b57ddb7b0b1617a330abf9b77ab5e7c1e53772..f506d0b7976a8d58674dd20074d690da7cc39c88 100644 (file)
   padding: 4px 0;
 }
 
+.component-viewer-popup-label {
+  padding: 0 6px;
+  background-color: @barBackgroundColor;
+  font-weight: 500;
+}
+
 
 
 @font-face {
   src: url('../fonts/sourcecodepro-regular.woff') format('woff');
   font-weight: normal;
   font-style: normal;
-}
\ No newline at end of file
+}