From 26a7f25e1d4718cd0b14aa76c5f76da1129fa3cf Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sun, 30 May 2021 02:51:34 +0200 Subject: [PATCH] Added subs list button in federation/organization/service. --- .../statoolinfos/htmlize/FederationPage.java | 1 + .../htmlize/OrganizationHeaderView.java | 1 + .../statoolinfos/htmlize/federation.xhtml | 1 + .../htmlize/organizationHeaderView.xhtml | 1 + .../htmlize/serviceHeaderView.xhtml | 1 + .../stuff/circle-icons/frames-mono.svg | 76 +++++++++++ .../htmlize/stuff/circle-icons/frames.svg | 129 ++++++++++++++++++ 7 files changed, 210 insertions(+) create mode 100644 src/fr/devinsy/statoolinfos/htmlize/stuff/circle-icons/frames-mono.svg create mode 100644 src/fr/devinsy/statoolinfos/htmlize/stuff/circle-icons/frames.svg diff --git a/src/fr/devinsy/statoolinfos/htmlize/FederationPage.java b/src/fr/devinsy/statoolinfos/htmlize/FederationPage.java index 590ab59..259d8b5 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/FederationPage.java +++ b/src/fr/devinsy/statoolinfos/htmlize/FederationPage.java @@ -106,6 +106,7 @@ public class FederationPage data.setEscapedAttribute("federationURL", "href", federation.getWebsite()); data.setContent("federationStartDate", StringUtils.defaultIfBlank(federation.getStartDate(), "n/a")); + data.setAttribute("subsLink", "href", "index.xhtml"); data.setAttribute("rawLink", "href", federation.getTechnicalName() + ".properties"); data.setAttribute("rawCheckLink", "href", federation.getTechnicalName() + "-check.xhtml"); data.setAttribute("statsLink", "href", federation.getTechnicalName() + "-stats.xhtml"); diff --git a/src/fr/devinsy/statoolinfos/htmlize/OrganizationHeaderView.java b/src/fr/devinsy/statoolinfos/htmlize/OrganizationHeaderView.java index fa15b16..d50e7af 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/OrganizationHeaderView.java +++ b/src/fr/devinsy/statoolinfos/htmlize/OrganizationHeaderView.java @@ -93,6 +93,7 @@ public class OrganizationHeaderView data.setContent("organizationStartDateWord", ""); } + data.setAttribute("subsLink", "href", organization.getTechnicalName() + ".xhtml"); data.setAttribute("rawLink", "href", organization.getTechnicalName() + ".properties"); data.setAttribute("rawCheckLink", "href", organization.getTechnicalName() + "-check.xhtml"); diff --git a/src/fr/devinsy/statoolinfos/htmlize/federation.xhtml b/src/fr/devinsy/statoolinfos/htmlize/federation.xhtml index 22c466c..c159147 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/federation.xhtml +++ b/src/fr/devinsy/statoolinfos/htmlize/federation.xhtml @@ -29,6 +29,7 @@ + diff --git a/src/fr/devinsy/statoolinfos/htmlize/organizationHeaderView.xhtml b/src/fr/devinsy/statoolinfos/htmlize/organizationHeaderView.xhtml index 812ee10..99befce 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/organizationHeaderView.xhtml +++ b/src/fr/devinsy/statoolinfos/htmlize/organizationHeaderView.xhtml @@ -31,6 +31,7 @@ + diff --git a/src/fr/devinsy/statoolinfos/htmlize/serviceHeaderView.xhtml b/src/fr/devinsy/statoolinfos/htmlize/serviceHeaderView.xhtml index 1a68398..9473bb0 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/serviceHeaderView.xhtml +++ b/src/fr/devinsy/statoolinfos/htmlize/serviceHeaderView.xhtml @@ -39,6 +39,7 @@ + diff --git a/src/fr/devinsy/statoolinfos/htmlize/stuff/circle-icons/frames-mono.svg b/src/fr/devinsy/statoolinfos/htmlize/stuff/circle-icons/frames-mono.svg new file mode 100644 index 0000000..7a97ef4 --- /dev/null +++ b/src/fr/devinsy/statoolinfos/htmlize/stuff/circle-icons/frames-mono.svg @@ -0,0 +1,76 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/src/fr/devinsy/statoolinfos/htmlize/stuff/circle-icons/frames.svg b/src/fr/devinsy/statoolinfos/htmlize/stuff/circle-icons/frames.svg new file mode 100644 index 0000000..5667e17 --- /dev/null +++ b/src/fr/devinsy/statoolinfos/htmlize/stuff/circle-icons/frames.svg @@ -0,0 +1,129 @@ + + + +image/svg+xml \ No newline at end of file