aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2014-02-19 12:28:38 +0100
committerJulien Lancelot <julien.lancelot@gmail.com>2014-02-25 18:52:32 +0100
commit23124a18155d030527aa7760b35a0bea5744f9ce (patch)
tree16cbf1b35ca932b177e42b6a4d068704df643cf0 /sonar-server/src/main/webapp
parent0fae2d552337885d31d10348c9900e7ce993dfb4 (diff)
downloadsonarqube-23124a18155d030527aa7760b35a0bea5744f9ce.tar.gz
sonarqube-23124a18155d030527aa7760b35a0bea5744f9ce.zip
SONAR-4996 Update issue debt to seconds (backend + display)
Diffstat (limited to 'sonar-server/src/main/webapp')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/models/issue.rb2
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/issue/_issue.html.erb4
2 files changed, 3 insertions, 3 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/issue.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/issue.rb
index 0350bfbea9a..f0a93bd3067 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/models/issue.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/models/issue.rb
@@ -33,7 +33,7 @@ class Issue
hash[:message] = issue.message if issue.message
hash[:line] = issue.line.to_i if issue.line
hash[:effortToFix] = issue.effortToFix.to_f if issue.effortToFix
- hash[:technicalDebt] = technical_debt_to_hash(issue.technicalDebt) if issue.technicalDebt
+ hash[:technicalDebt] = technical_debt_to_hash(issue.debt) if issue.debt
hash[:reporter] = issue.reporter if issue.reporter
hash[:assignee] = issue.assignee if issue.assignee
hash[:author] = issue.authorLogin if issue.authorLogin
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_issue.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_issue.html.erb
index d283763dd69..efd6b582ccc 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_issue.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issue/_issue.html.erb
@@ -95,8 +95,8 @@
</li>
<% end %>
<% end %>
- <% if issue.technicalDebt %>
- <li><%= message('issue.debt') -%>&nbsp;<%= Internal.technical_debt.format(issue.technicalDebt) -%></li>
+ <% if issue.debt %>
+ <li><%= message('issue.debt') -%>&nbsp;<%= Internal.technical_debt.format(issue.debt) -%></li>
<% end %>
<% if issue.authorLogin %>
<li><%= message('issue.authorLogin') -%>&nbsp;<%= issue.authorLogin -%></li>