diff --git a/src/fr/devinsy/statoolinfos/htmlize/OrganizationListView.java b/src/fr/devinsy/statoolinfos/htmlize/OrganizationListView.java index 0fea56b..84252f5 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/OrganizationListView.java +++ b/src/fr/devinsy/statoolinfos/htmlize/OrganizationListView.java @@ -65,6 +65,8 @@ public class OrganizationListView String monthLabel = LocalDate.now().minusMonths(1).format(DateTimeFormatter.ofPattern("MMMM yyyy")).replace(" ", " "); data.setContent("monthLabel", monthLabel); + data.setAttribute("userCountHeaderColumn", "title", monthLabel); + data.setAttribute("visitCountHeaderColumn", "title", monthLabel); int index = 0; for (Organization organization : organizations.sortByReverseServiceCount()) diff --git a/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java b/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java index 780f0ae..5bcf5e4 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java +++ b/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java @@ -18,6 +18,7 @@ */ package fr.devinsy.statoolinfos.htmlize; +import java.time.LocalDate; import java.time.format.DateTimeFormatter; import org.apache.commons.lang3.StringUtils; @@ -68,6 +69,11 @@ public class ServiceListView } else { + String monthLabel = LocalDate.now().minusMonths(1).format(DateTimeFormatter.ofPattern("MMMM yyyy")).replace(" ", " "); + data.setContent("monthLabel", monthLabel); + data.setAttribute("userCountHeaderColumn", "title", monthLabel); + data.setAttribute("visitCountHeaderColumn", "title", monthLabel); + int index = 0; for (Service service : services.sortByName()) { diff --git a/src/fr/devinsy/statoolinfos/htmlize/organizationListView.xhtml b/src/fr/devinsy/statoolinfos/htmlize/organizationListView.xhtml index 592912d..e00bba2 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/organizationListView.xhtml +++ b/src/fr/devinsy/statoolinfos/htmlize/organizationListView.xhtml @@ -21,8 +21,8 @@