]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4357 Remove details on requirement function
authorJulien Lancelot <julien.lancelot@gmail.com>
Wed, 16 Oct 2013 07:40:34 +0000 (09:40 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Wed, 16 Oct 2013 07:40:34 +0000 (09:40 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/issue/_technicaldebt.html.erb

index 4934e5a96636bd1b40ff8332b27f0ed892818aee..f9908e9e317d0051cde944f0457c755e952f5dc9 100644 (file)
@@ -1,27 +1,4 @@
-<% function = @requirement.function %>
-<div class="<%= function.linear? ? '' : 'marginbottom10' %>">
-  <%= @requirement.parent.parent.name %>&nbsp;&gt;&nbsp;<%= @requirement.parent.name %>
-</div>
-
 <div>
-  <% 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 %>&nbsp;&gt;&nbsp;<%= @requirement.parent.name %>
 </div>