aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-03-04 18:42:10 +0100
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-03-04 18:42:22 +0100
commitf90ef17c9a5226a699b4bc4316d9626b92940c0a (patch)
tree6ef07b4df2bf04934d496f63f2ff4fdd2cc1251f /plugins
parent43791ffba2fb73e8d344d8e10ff499eaf41d7329 (diff)
downloadsonarqube-f90ef17c9a5226a699b4bc4316d9626b92940c0a.tar.gz
sonarqube-f90ef17c9a5226a699b4bc4316d9626b92940c0a.zip
SONAR-5086 Add commonentRoots parameter to links on action plan progress bar
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb
index 8e1a42e73a0..cb5b925d041 100644
--- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb
+++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/issues/action_plans.html.erb
@@ -14,7 +14,7 @@
</a>
</div>
<% end %>
-
+
<h3><%= message('widget.action_plans.title') -%></h3>
</div>
@@ -25,7 +25,7 @@
<span class="empty_widget"><%= message('widget.action_plans.no_action_plan') -%></span>
-<%
+<%
else
show_resolved_issues = widget_properties["showResolvedIssues"]
if show_resolved_issues
@@ -33,7 +33,7 @@
else
line_class = "middle"
max_unresolved_issues = open_action_plans.map {|plan| plan.unresolvedIssues()}.max
- end
+ end
%>
<table class="width100 <%= show_resolved_issues ? 'actionPlans' : 'data' -%>">
@@ -49,7 +49,7 @@
<tr class="<%= show_resolved_issues ? '' : cycle("even", "odd", :name => "action_plan_" + widget.id.to_s) -%>">
<td class="nowrap <%= line_class -%>"><%= h(plan.name) -%></td>
<td class="nowrap small <%= line_class -%> <%= 'over-due' if plan.overDue() -%>" style="text-align: right; padding-left:10px"><%= format_date(plan.deadLine()) -%></td>
-
+
<% if show_resolved_issues %>
<% if plan.totalIssues()==0 %>
<td class="noprogress nowrap <%= line_class -%>"><%= message('action_plans.no_issues_linked_to_action_plan') -%></td>
@@ -58,7 +58,7 @@
<%= render :partial => 'action_plans/progress', :locals => {:action_plan => plan} -%>
</td>
<% end %>
- <%
+ <%
else
unresolved_issues_size = plan.unresolvedIssues()
%>
@@ -66,7 +66,7 @@
<% if unresolved_issues_size == 0 %>
<%= unresolved_issues_size -%>
<% else %>
- <a href="<%= url_for_issues({:actionPlans => plan.key, :resolved => 'false'}) -%>"
+ <a href="<%= url_for_issues({:actionPlans => plan.key, :resolved => 'false', :componentRoots => u(@project.key)}) -%>"
title="<%= message('widget.action_plans.x_unresolved_issues', :params => unresolved_issues_size.to_s) -%>"><%= unresolved_issues_size -%></a>
<% end %>
</td>
@@ -76,16 +76,16 @@
</div>
</td>
<% end %>
-
+
</tr>
- <%
- end
+ <%
+ end
%>
</tbody>
</table>
<% end %>
-
+
</div>
<% end %>