From 6194a1a3e19cd026da8806ccf84ebc8a22524b1d Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 3 May 2013 09:33:43 +0200 Subject: [PATCH] SONAR-3755 fix display of creation date --- .../src/main/webapp/WEB-INF/app/views/issue/_issue.html.erb | 4 ++-- .../src/main/webapp/WEB-INF/app/views/issues/_list.html.erb | 6 +++--- .../main/webapp/WEB-INF/app/views/resource/_issue.html.erb | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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 a299a07569c..9c20ecb21b8 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 @@ -73,13 +73,13 @@ <%= message('created') -%>: - <%= l(to_date(@issue.created_at)) -%> + <%= l(to_date(@issue.creationDate())) -%> <%= message('updated') -%>: - <%= l(to_date(@issue.updated_at)) if @issue.updated_at -%> + <%= l(to_date(@issue.updateDate())) if @issue.updateDate() -%> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb index d0b5db736a1..37f8a78c38e 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_list.html.erb @@ -102,13 +102,13 @@ <%= issue.attributes -%> - <%= issue.created_at -%> + <%= issue.creationDate() -%> - <%= issue.updated_at -%> + <%= issue.updateDate() -%> - <%= issue.closed_at -%> + <%= issue.closeDate() -%> <% diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_issue.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_issue.html.erb index 7d1127502dd..30bed8226d5 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_issue.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/resource/_issue.html.erb @@ -17,7 +17,7 @@ <%= image_tag 'sep12.png' -%>   - <%= distance_of_time_in_words_to_now(to_date(issue.created_at)) -%> + <%= distance_of_time_in_words_to_now(to_date(issue.creationDate())) -%>   <% if issue.resolution == 'FALSE-POSITIVE' -- 2.39.5