From 924b8656241e1f0de5dc024bb3d6e9acf740e74c Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Tue, 24 Mar 2020 02:40:54 +0100 Subject: [PATCH] Added last update date in project page. --- src/org/april/agirstatool/core/pages/ProjectPage.java | 5 +++++ src/org/april/agirstatool/core/pages/project.xhtml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/org/april/agirstatool/core/pages/ProjectPage.java b/src/org/april/agirstatool/core/pages/ProjectPage.java index fde0ffd..a26f0f4 100644 --- a/src/org/april/agirstatool/core/pages/ProjectPage.java +++ b/src/org/april/agirstatool/core/pages/ProjectPage.java @@ -19,6 +19,9 @@ package org.april.agirstatool.core.pages; import java.time.LocalDate; +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; +import java.util.Locale; import org.apache.commons.lang3.StringUtils; import org.april.agirstatool.core.AgirStatoolException; @@ -71,6 +74,8 @@ public class ProjectPage } data.setContent("versionsup", BuildInformation.instance().version()); + data.setContent("lastUpdateDate", LocalDateTime.now().format(DateTimeFormatter.ofPattern("dd/MM/yyyy hh':'mm", Locale.FRANCE))); + data.setContent("createClosePreviousYearButton", LocalDate.now().getYear() - 1); data.setContent("createdClosed3MonthsChart", CreatedClosedCountChartView.buildLastMonths("Created/closed 3 months Count", project, 3)); data.setContent("created-Closed3MonthsChart", CreatedClosedDiffChartView.buildLastMonths("Created-closed 3 months Count", project, 3)); diff --git a/src/org/april/agirstatool/core/pages/project.xhtml b/src/org/april/agirstatool/core/pages/project.xhtml index 41e0e0d..c980570 100644 --- a/src/org/april/agirstatool/core/pages/project.xhtml +++ b/src/org/april/agirstatool/core/pages/project.xhtml @@ -12,7 +12,7 @@
-

Agir Statoolv0.0.14n/aLink to AgirAbout

+

Agir Statoolv0.0.14n/aLink to AgirAboutPage updated on
xx/xx/xxxx xx:xx