aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-02-07 16:15:20 +0600
committerStas Vilchik <vilchiks@gmail.com>2014-02-07 16:15:20 +0600
commit8a89a591b195786930a06cbfdfe960532f0de772 (patch)
tree2242fc2f0ba66d137b108565d496788d945ea3c1 /plugins
parentefba78f947451ae722862843dc4b5cae69575b72 (diff)
downloadsonarqube-8a89a591b195786930a06cbfdfe960532f0de772.tar.gz
sonarqube-8a89a591b195786930a06cbfdfe960532f0de772.zip
Update all severity icons
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_resources.html.erb12
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb2
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/issues.html.erb15
3 files changed, 12 insertions, 17 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_resources.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_resources.html.erb
index af7aaf65adf..f9697b58ab2 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_resources.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_resources.html.erb
@@ -66,31 +66,31 @@
<%= link_to_resource(resource, h(resource.name), {:tab => :violations}) -%>
</td>
<td class="small right">
- <%= image_tag('priority/BLOCKER.png') -%>
+ <i class="icon-severity-blocker"></i>
</td>
<td class="small left">
<%= violations_per_severity["BLOCKER"] ? violations_per_severity["BLOCKER"].to_s : "0" -%>
</td>
<td class="small right">
- <%= image_tag('priority/CRITICAL.png') -%>
+ <i class="icon-severity-critical"></i>
</td>
<td class="small left">
<%= violations_per_severity["CRITICAL"] ? violations_per_severity["CRITICAL"].to_s : "0" -%>
</td>
<td class="small right">
- <%= image_tag('priority/MAJOR.png') -%>
+ <i class="icon-severity-major"></i>
</td>
<td class="small left">
<%= violations_per_severity["MAJOR"] ? violations_per_severity["MAJOR"].to_s : "0" -%>
</td>
<td class="small right">
- <%= image_tag('priority/MINOR.png') -%>
+ <i class="icon-severity-minor"></i>
</td>
<td class="small left">
<%= violations_per_severity["MINOR"] ? violations_per_severity["MINOR"].to_s : "0" -%>
</td>
<td class="small right">
- <%= image_tag('priority/INFO.png') -%>
+ <i class="icon-severity-info"></i>
</td>
<td class="small left">
<%= violations_per_severity["INFO"] ? violations_per_severity["INFO"].to_s : "0" -%>
@@ -102,4 +102,4 @@
</tbody>
</table>
-<% end %> \ No newline at end of file
+<% end %>
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb
index 5327406508a..6fe5dcf44a5 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb
@@ -94,7 +94,7 @@
%>
<tr class="<%= cycle 'even', 'odd', :name => ("hotspot_most_violated_rules-#{widget.id}-#{severity}") -%>">
<td class="thin">
- <%= image_tag('priority/' + m.severity + '.png') -%>
+ <i class="icon-severity-<%= m.severity.downcase -%>"></i>
</td>
<td>
<%= h rule.name -%>
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/issues.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/issues.html.erb
index 1099057c35b..6e2da2ec2f7 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/issues.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/issues.html.erb
@@ -92,8 +92,7 @@
%>
<table class="clear width100">
<tr>
- <td><%= image_tag 'priority/BLOCKER.png' %></td>
- <td> &nbsp;<%= message('blocker') -%></td>
+ <td><i class="icon-severity-blocker"></i> <%= message('blocker') -%></td>
<td style="padding: 0 5px;" align="right">
<%= link_to format_measure(blocker_issues), {:controller => 'drilldown', :action => 'issues', :id => @project.key, :severity => 'BLOCKER'}, :class => 'nolink drilldown_BLOCKER' -%>
</td>
@@ -113,8 +112,7 @@
</td>
</tr>
<tr>
- <td><%= image_tag 'priority/CRITICAL.png' %></td>
- <td> &nbsp;<%= message('critical') -%></td>
+ <td><i class="icon-severity-critical"></i> <%= message('critical') -%></td>
<td style="padding: 0 5px;" align="right">
<%= link_to format_measure(critical_issues), {:controller => 'drilldown', :action => 'issues', :id => @project.key, :severity => 'CRITICAL'}, :class => 'nolink drilldown_CRITICAL' -%>
</td>
@@ -134,8 +132,7 @@
</td>
</tr>
<tr>
- <td><%= image_tag 'priority/MAJOR.png' %></td>
- <td> &nbsp;<%= message('major') -%></td>
+ <td><i class="icon-severity-major"></i> <%= message('major') -%></td>
<td style="padding: 0 5px;" align="right">
<%= link_to format_measure(major_issues), {:controller => 'drilldown', :action => 'issues', :id => @project.key, :severity => 'MAJOR'}, :class => 'nolink drilldown_MAJOR' -%>
</td>
@@ -155,8 +152,7 @@
</td>
</tr>
<tr>
- <td><%= image_tag 'priority/MINOR.png' %></td>
- <td> &nbsp;<%= message('minor') -%></td>
+ <td><i class="icon-severity-minor"></i> <%= message('minor') -%></td>
<td style="padding: 0 5px;" align="right">
<%= link_to format_measure(minor_issues), {:controller => 'drilldown', :action => 'issues', :id => @project.key, :severity => 'MINOR'}, :class => 'nolink drilldown_MINOR' -%>
</td>
@@ -176,8 +172,7 @@
</td>
</tr>
<tr>
- <td><%= image_tag 'priority/INFO.png' %></td>
- <td> &nbsp;<%= message('info') -%></td>
+ <td><i class="icon-severity-info"></i> <%= message('info') -%></td>
<td style="padding: 0 5px;" align="right">
<%= link_to format_measure(info_issues), {:controller => 'drilldown', :action => 'issues', :id => @project.key, :severity => 'INFO'}, :class => 'nolink drilldown_INFO' -%>
</td>