]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4406 Some minor improvements
authorStas Vilchik <vilchiks@gmail.com>
Mon, 18 Aug 2014 06:54:12 +0000 (12:54 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 18 Aug 2014 06:54:12 +0000 (12:54 +0600)
server/sonar-web/src/main/coffee/design/view.coffee
server/sonar-web/src/main/hbs/design/design.hbs
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index 23a2f16cb88eda79ba682447e7b393144ff69ed2..ea2483623b530a223ea297a82ef85b03ca05f908 100644 (file)
@@ -100,6 +100,7 @@ define [
       column = cell.parent().children().index(cell) - 1
       row = cell.parent().parent().children().index cell.parent()
       id = @collection.at(row).get('v')[column].i
+      return unless id
       @showInfoViewSpinner()
       @scrollToInfoView()
       $.get API_DEPENDECIES, parent: id, (data) =>
index 743c4db6ebd50bbc17cfc9f0260e1b225fb9bbc7..f9a7b5230663adeaa884b33e3b68b90befe35244 100644 (file)
@@ -1,21 +1,21 @@
 <div class="dsm-header">
-  <i class="icon-help"></i> <a href="http://docs.codehaus.org/x/QQFhC">{{t 'help'}}</a>
+  <i class="icon-help"></i> <a href="http://docs.codehaus.org/x/QQFhC">{{t 'design.help'}}</a>
 </div>
 
 <ul class="dsm-legend">
   <li>
     <span class="dsm-legend-square gray"></span>
-    <span class="dsm-legend-label">Dependency</span>
+    <span class="dsm-legend-label">{{t 'design.legend.dependencies'}}</span>
   </li>
   <li>
     <span class="dsm-legend-square red"></span>
-    <span class="dsm-legend-label">Suspect dependency (cycle)</span>
+    <span class="dsm-legend-label">{{t 'design.legend.cycles'}}</span>
   </li>
   <li>
     <span class="dsm-legend-square green"></span>
-    <span class="dsm-legend-label">uses</span>
+    <span class="dsm-legend-label">{{t 'design.legend.uses'}}</span>
     <span class="dsm-legend-square blue"></span>
-    <span class="dsm-legend-label">uses</span>
+    <span class="dsm-legend-label">{{t 'design.legend.uses'}}</span>
     <span class="dsm-legend-square yellow"></span>
   </li>
 </ul>
     <tbody>
     {{#eachIndex items}}
       <tr>
-        <td class="dsm-body-title">
+        <td class="dsm-body-title" title="{{t 'design.rowTooltip'}}">
           {{qualifierIcon q}} {{n}}
           <span class="dsm-body-title-indicator"></span>
         </td>
         {{#eachIndex v}}
-          <td class="dsm-body-cell {{#if status}}dsm-body-cell-{{status}}{{/if}}">
+          <td class="dsm-body-cell {{#if status}}dsm-body-cell-{{status}}{{/if}}" title="{{t 'design.cellTooltip'}}">
             {{#eq index ../index}}–{{else}}{{w}}{{/eq}}
           </td>
         {{/eachIndex}}
index 9170f96b64b06fbf2dbcf84c219c67572b5c50ab..4e9c3d65d216427fd59ea5d4d7b134042ae9b812 100644 (file)
@@ -2719,3 +2719,16 @@ component_viewer.workspace=Workspace
 component_viewer.workspace.tooltip=Keeps track of history of navigation
 component_viewer.workspace.show_workspace=Show workspace
 component_viewer.workspace.hide_workspace=Hide workspace
+
+
+#------------------------------------------------------------------------------
+#
+# DESIGN
+#
+#------------------------------------------------------------------------------
+design.help=Help
+design.legend.dependencies=Dependency
+design.legend.cycles=Suspect dependency (cycle)
+design.legend.uses=- uses >
+design.cellTooltip=Click to highlight, double-click to display more details
+design.rowTooltip=Click to highlight, double-click to zoom