]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3755 Display status in issue code viewer when issues are not resolved
authorJulien Lancelot <julien.lancelot@gmail.com>
Thu, 23 May 2013 09:01:21 +0000 (11:01 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Thu, 23 May 2013 09:01:21 +0000 (11:01 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/issue/_issue.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb

index c5520fed88b9aecc97c72351d61f912f415e8ce3..ea1f85f8ad736c0202437f2218e978d2bf9dde51 100644 (file)
       &nbsp;
       <span><%= message("issue.resolution.#{issue.resolution}") -%></span>
       &nbsp;
+    <% else %>
+      <%= image_tag 'sep12.png' -%>
+      &nbsp;
+      <span><%= message("issue.status.#{issue.status}") -%></span>
+      &nbsp;
     <% end %>
     <%
        if issue.assignee
index 6ce50505ef59a2a8ce9d7c562a176e54ae532cc7..7e57d1e0146007c98d5fbfec062b43d6f299823c 100644 (file)
@@ -63,7 +63,7 @@
             <img src="<%= ApplicationController.root_context -%>/images/priority/<%= issue.severity -%>.png" title="<%= message(issue.severity.downcase).capitalize -%>"/>
           </td>
           <td>
-            <%= message(issue.status.downcase).capitalize -%>
+            <%= message("issue.status.#{issue.status}") -%>
           </td>
           <td>
             <%= link_to h(truncate(issue.message, :length => 200)), :controller => 'issue', :action => 'view', :id => issue.key -%>