From 6288224e497c9e4107e29b1614ad70f110e904cb Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 9 Sep 2021 01:13:38 +0200 Subject: [PATCH] Improved social networks sort pages. --- .../htmlize/SocialNetworksPage.java | 11 +--- .../statoolinfos/htmlize/socialNetworks.xhtml | 62 +++++++++++++------ 2 files changed, 45 insertions(+), 28 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/htmlize/SocialNetworksPage.java b/src/fr/devinsy/statoolinfos/htmlize/SocialNetworksPage.java index cadc278..65e1676 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/SocialNetworksPage.java +++ b/src/fr/devinsy/statoolinfos/htmlize/SocialNetworksPage.java @@ -31,7 +31,6 @@ import fr.devinsy.statoolinfos.HtmlizerContext; import fr.devinsy.statoolinfos.core.Federation; import fr.devinsy.statoolinfos.core.Organization; import fr.devinsy.statoolinfos.core.Organizations; -import fr.devinsy.statoolinfos.core.SocialNetworks; import fr.devinsy.statoolinfos.core.StatoolInfosException; import fr.devinsy.statoolinfos.crawl.CrawlCache; import fr.devinsy.xidyn.XidynException; @@ -60,16 +59,8 @@ public class SocialNetworksPage logger.info("Htmlize social networks pages."); Organizations organizations = federation.getOrganizations().filterBySocialNetworks(); - String page = SocialNetworksPage.htmlize("Tous", organizations); + String page = SocialNetworksPage.htmlize("Réseaux sociaux", organizations); FileUtils.write(new File(htmlizeDirectory, "socialNetworks.xhtml"), page, StandardCharsets.UTF_8); - - organizations = federation.getOrganizations().filterBySocialNetwork(SocialNetworks.DIASPORA); - page = SocialNetworksPage.htmlize("Disapora*", organizations); - FileUtils.write(new File(htmlizeDirectory, "socialNetworks-diaspora.xhtml"), page, StandardCharsets.UTF_8); - - organizations = federation.getOrganizations().filterBySocialNetwork(SocialNetworks.MASTODON); - page = SocialNetworksPage.htmlize("Mastodon", organizations); - FileUtils.write(new File(htmlizeDirectory, "socialNetworks-mastodon.xhtml"), page, StandardCharsets.UTF_8); } /** diff --git a/src/fr/devinsy/statoolinfos/htmlize/socialNetworks.xhtml b/src/fr/devinsy/statoolinfos/htmlize/socialNetworks.xhtml index d1b8038..edaf027 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/socialNetworks.xhtml +++ b/src/fr/devinsy/statoolinfos/htmlize/socialNetworks.xhtml @@ -12,17 +12,15 @@
- -
- Tous - Diaspora* - Mastodon -
-

n/a

Nombre de membres : n/a
+
+ Tous + Diaspora* + Mastodon +
@@ -76,18 +74,46 @@