]> source.dussan.org Git - sonarqube.git/commitdiff
New Issues Page: do not show resolution icon
authorStas Vilchik <vilchiks@gmail.com>
Tue, 4 Feb 2014 12:24:23 +0000 (18:24 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 4 Feb 2014 12:24:23 +0000 (18:24 +0600)
sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue.hbs.erb
sonar-server/src/main/webapp/WEB-INF/app/views/issues/templates/_issue_detail_inner.hbs.erb
sonar-server/src/main/webapp/javascripts/navigator/issues-app.js

index 550e1902959320ee6bab82beebd5ff7d85c95066..3534bc04cfd1fa574d5b341795c83d8ebc792600 100644 (file)
@@ -2,9 +2,7 @@
   <div class="line line-small">
       {{severityIcon severity}}{{translate "severities" severity}}&nbsp;
       {{statusIcon status}}{{translate "statuses" status}}
-      {{#if resolution}}
-        &nbsp;{{resolutionIcon resolution}}{{translate "resolutions" resolution}}
-      {{/if}}
+      {{#if resolution}}({{translate "resolutions" resolution}}){{/if}}
 
       <div class="line-right">
         {{fUpdateAge}}
index 16fa75c3e88fb199f10718f3d9c86d8ac7519e49..abe586e4526d9380671f96427e15c6af2de27e45 100644 (file)
       {{/inArray}}
 
 
-      <li>{{statusIcon status}}{{translate "statuses" status}}</li>
-
-      {{#if resolution}}
-        <li>{{resolutionIcon resolution}}{{translate "resolutions" resolution}}</li>
-      {{/if}}
+      <li>
+        {{statusIcon status}}{{translate "statuses" status}}
+        {{#if resolution}}({{translate "resolutions" resolution}}){{/if}}
+      </li>
 
 
       {{#ifNotEmpty transitions}}
index efe44e91529dc73898827822734eb72b83c99b59..1e632cdf72b899badc514e1465b65d8c9272c30c 100644 (file)
@@ -74,11 +74,11 @@ jQuery(function() {
         enabled: true,
         optional: false,
         choices: {
-          'BLOCKER': window.SS.phrases.severities.blocker,
-          'CRITICAL': window.SS.phrases.severities.critical,
-          'MAJOR': window.SS.phrases.severities.major,
-          'MINOR': window.SS.phrases.severities.minor,
-          'INFO': window.SS.phrases.severities.info
+          'BLOCKER': window.SS.phrases.severities.BLOCKER,
+          'CRITICAL': window.SS.phrases.severities.CRITICAL,
+          'MAJOR': window.SS.phrases.severities.MAJOR,
+          'MINOR': window.SS.phrases.severities.MINOR,
+          'INFO': window.SS.phrases.severities.INFO
         },
         choiceIcons: {
           'BLOCKER': 'severity-blocker',
@@ -96,11 +96,11 @@ jQuery(function() {
         enabled: true,
         optional: false,
         choices: {
-          'OPEN': window.SS.phrases.statuses.open,
-          'CONFIRMED': window.SS.phrases.statuses.confirmed,
-          'REOPENED': window.SS.phrases.statuses.reopened,
-          'RESOLVED': window.SS.phrases.statuses.resolved,
-          'CLOSED': window.SS.phrases.statuses.closed
+          'OPEN': window.SS.phrases.statuses.OPEN,
+          'CONFIRMED': window.SS.phrases.statuses.CONFIRMED,
+          'REOPENED': window.SS.phrases.statuses.REOPENED,
+          'RESOLVED': window.SS.phrases.statuses.RESOLVED,
+          'CLOSED': window.SS.phrases.statuses.CLOSED
         },
         choiceIcons: {
           'OPEN': 'status-open',
@@ -126,9 +126,9 @@ jQuery(function() {
         enabled: false,
         optional: true,
         choices: {
-          'FALSE-POSITIVE': window.SS.phrases.resolutions.falsePositive,
-          'FIXED': window.SS.phrases.resolutions.fixed,
-          'REMOVED': window.SS.phrases.resolutions.removed
+          'FALSE-POSITIVE': window.SS.phrases.resolutions['FALSE-POSITIVE'],
+          'FIXED': window.SS.phrases.resolutions.FIXED,
+          'REMOVED': window.SS.phrases.resolutions.REMOVED
         }
       }),