From 88a1cd4c298160cd365dafb693c8c5be0b6ca68e Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Tue, 11 Jan 2022 00:28:45 +0100 Subject: [PATCH] Added asterisk month in organization list view. --- .../devinsy/statoolinfos/htmlize/OrganizationListView.java | 6 +++++- .../devinsy/statoolinfos/htmlize/organizationListView.xhtml | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/htmlize/OrganizationListView.java b/src/fr/devinsy/statoolinfos/htmlize/OrganizationListView.java index 5f83ca6..056aa87 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/OrganizationListView.java +++ b/src/fr/devinsy/statoolinfos/htmlize/OrganizationListView.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2021 Christian Pierre MOMON + * Copyright (C) 2020-2022 Christian Pierre MOMON * * This file is part of StatoolInfos, simple service statistics tool. * @@ -19,6 +19,7 @@ package fr.devinsy.statoolinfos.htmlize; import java.io.IOException; +import java.time.LocalDate; import java.time.format.DateTimeFormatter; import org.slf4j.Logger; @@ -61,6 +62,9 @@ public class OrganizationListView data.setContent("organizationCount", organizations.size()); data.setContent("serviceCount", organizations.getServiceCount()); + String monthLabel = LocalDate.now().minusMonths(1).format(DateTimeFormatter.ofPattern("MMMM yyyy")).replace(" ", " "); + data.setContent("monthLabel", monthLabel); + int index = 0; for (Organization organization : organizations.sortByReverseServiceCount()) { diff --git a/src/fr/devinsy/statoolinfos/htmlize/organizationListView.xhtml b/src/fr/devinsy/statoolinfos/htmlize/organizationListView.xhtml index fbd0a40..592912d 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/organizationListView.xhtml +++ b/src/fr/devinsy/statoolinfos/htmlize/organizationListView.xhtml @@ -21,8 +21,8 @@ Membre URL Services - Utilisateurs mensuels - Visites mensuelles + Utilisateurs mensuels* + Visites mensuelles* Date @@ -42,6 +42,7 @@ +
(*) chiffres de n/a