]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5209 Workspace feedback
authorStas Vilchik <vilchiks@gmail.com>
Wed, 11 Jun 2014 10:09:49 +0000 (16:09 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Wed, 11 Jun 2014 10:09:49 +0000 (16:09 +0600)
sonar-core/src/main/resources/org/sonar/l10n/core.properties
sonar-server/src/main/hbs/component-viewer/workspace.hbs
sonar-server/src/main/less/component-viewer.less

index c5e1da579dd9833b81f058abfbe7f84960b5daf8..883ab7527c7db3139323eedc01229186d284446b 100644 (file)
@@ -2675,3 +2675,6 @@ component_viewer.transition.covers=Covers
 component_viewer.transition.duplication=Duplicated By
 
 component_viewer.x_lines_are_covered={0} lines are covered
+
+component_viewer.workspace=Workspace
+component_viewer.workspace.tooltip=Keeps track of history of navigation
index 33365f78c44863b11900f815042cc587ea2d5c17..54a134528b05a3af232c6cdf462352cab57c8595 100644 (file)
@@ -1,4 +1,6 @@
-<div class="component-viewer-workspace-container">
+<div class="component-viewer-workspace-header">
+  <div class="component-viewer-workspace-title"
+       title="{{t 'component_viewer.workspace.tooltip'}}">{{t 'component_viewer.workspace'}}</div>
   <button class="button-clean component-viewer-workspace-toggle js-toggle-workspace">
     {{#if settings.workspace}}
       <i class="icon-double-chevron-left"></i>
@@ -6,27 +8,27 @@
       <i class="icon-double-chevron-right"></i>
     {{/if}}
   </button>
+</div>
 
-  <ul class="component-viewer-workspace-list">
-    {{#eachReverse workspace}}
-      <li class="component-viewer-workspace-item {{#if active}}active{{/if}}">
-        {{qualifierIcon component.q}}
-        <a class="link-action" data-key="{{component.key}}">{{component.name}}</a>
-        {{#if component.dir}}
-          <div class="text-ellipsis subtitle">{{component.dir}}</div>
-        {{/if}}
-        {{#if options}}
-          <div class="component-viewer-workspace-transition">{{t 'component_viewer.transition' ../transition}}</div>
-          <ul class="component-viewer-workspace-options">
-            {{#each options}}
-              <li class="component-viewer-workspace-option {{#if active}}active{{/if}}">
-                <a class="link-action text-ellipsis" data-workspace-key="{{../component.key}}" data-key="{{key}}">{{name}}</a>
-                {{#if subname}}<div class="text-ellipsis subtitle">{{subname}}</div>{{/if}}
-              </li>
-            {{/each}}
-          </ul>
-        {{/if}}
-      </li>
-    {{/eachReverse}}
-  </ul>
-</div>
\ No newline at end of file
+<ul class="component-viewer-workspace-list">
+  {{#eachReverse workspace}}
+    <li class="component-viewer-workspace-item {{#if active}}active{{/if}}">
+      {{qualifierIcon component.q}}
+      <a class="link-action" data-key="{{component.key}}">{{component.name}}</a>
+      {{#if component.dir}}
+        <div class="text-ellipsis subtitle">{{component.dir}}</div>
+      {{/if}}
+      {{#if options}}
+        <div class="component-viewer-workspace-transition">{{t 'component_viewer.transition' ../transition}}</div>
+        <ul class="component-viewer-workspace-options">
+          {{#each options}}
+            <li class="component-viewer-workspace-option text-ellipsis {{#if active}}active{{/if}}" title="{{name}}">
+              <a class="link-action" data-workspace-key="{{../component.key}}" data-key="{{key}}">{{name}}</a>
+              {{#if subname}}<div class="text-ellipsis subtitle" title="{{subname}}">{{subname}}</div>{{/if}}
+            </li>
+          {{/each}}
+        </ul>
+      {{/if}}
+    </li>
+  {{/eachReverse}}
+</ul>
\ No newline at end of file
index 0113e875c51ee8bc6844c3ced3939e2aec3b7084..4879fdd64bd2335d6f8460c5967f542cbc43dd4d 100644 (file)
   background-color: @barBackgroundColor;
 }
 
-.component-viewer-workspace-container { position: relative; }
+.component-viewer-workspace-header {
+  position: relative;
+  height: 30px;
+  border-bottom: 1px solid @barBorderColor;
+}
+
+.component-viewer-workspace-title {
+  padding: 0 30px 0 10px;
+  line-height: 30px;
+  text-transform: uppercase;
+}
 
 .component-viewer-workspace-list {
   display: none;