From: Julien Lancelot Date: Wed, 16 Oct 2013 07:40:34 +0000 (+0200) Subject: SONAR-4357 Remove details on requirement function X-Git-Tag: 4.0~84 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eae48090faeb78c30caf922e9b560f6191c1db48;p=sonarqube.git SONAR-4357 Remove details on requirement function --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_technicaldebt.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_technicaldebt.html.erb index 4934e5a9663..f9908e9e317 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_technicaldebt.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_technicaldebt.html.erb @@ -1,27 +1,4 @@ -<% function = @requirement.function %> -
- <%= @requirement.parent.parent.name %> > <%= @requirement.parent.name %> -
-
- <% if function.constant? %> - <%= message('issue.technical_debt.constant_resource') -%> - <% elsif function.linearWithThreshold? or function.linearWithOffset? %> - <% - case @requirement.offset.text_value - when CharacteristicProperty::DAY - value = message('issue.technical_debt.x_days', :params => @requirement.offset.value) - when CharacteristicProperty::HOUR - value = message('issue.technical_debt.x_hours', :params => @requirement.offset.value) - when CharacteristicProperty::MINUTE - value = message('issue.technical_debt.x_minutes', :params => @requirement.offset.value) - end - %> - <% if function.linearWithThreshold? %> - <%= message('issue.technical_debt.linear_threshold', :params => value) -%> - <% else %> - <%= message('issue.technical_debt.linear_offset', :params => value) -%> - <% end %> - <% end %> + <%= @requirement.parent.parent.name %> > <%= @requirement.parent.name %>