From 8b1f8712a843f7ad83f12b2959c5885472001c92 Mon Sep 17 00:00:00 2001 From: "Donald F. Coffin" Date: Sun, 7 Jun 2026 17:10:07 -0400 Subject: [PATCH 1/5] fix(#175): add Home link to custodian + customer portal navbars The customer self-service page was a dead end (navbar linked only to itself and Logout). Add a persistent "Home" item (-> /) to both portal navbar fragments so every authenticated page has a consistent way back to the site landing. Verified: custodian and customer pages each render one Home link; Home resolves (200) from a customer session. Co-Authored-By: Claude Opus 4.8 --- .../src/main/resources/templates/fragments/layout.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/openespi-datacustodian/src/main/resources/templates/fragments/layout.html b/openespi-datacustodian/src/main/resources/templates/fragments/layout.html index 2552fad5..5a349acf 100644 --- a/openespi-datacustodian/src/main/resources/templates/fragments/layout.html +++ b/openespi-datacustodian/src/main/resources/templates/fragments/layout.html @@ -76,7 +76,11 @@ @@ -159,9 +176,7 @@ diff --git a/openespi-datacustodian/src/main/resources/templates/home.html b/openespi-datacustodian/src/main/resources/templates/home.html index c2f5f9a6..6f055e09 100644 --- a/openespi-datacustodian/src/main/resources/templates/home.html +++ b/openespi-datacustodian/src/main/resources/templates/home.html @@ -17,7 +17,7 @@

Welcome to the Open Source project, is freely available for download by any interested parties.

From 041adfc4481a91dd1530fff05b429de5e3b5784e Mon Sep 17 00:00:00 2001 From: "Donald F. Coffin" Date: Sun, 7 Jun 2026 19:21:32 -0400 Subject: [PATCH 3/5] fix(#175): fix logout dropdown (Bootstrap JS) + allow creating admins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Logout dropdown was dead on the new portal pages: Bootstrap's JS was only loaded ad-hoc at the bottom of some templates, not on the pages that include just the head/footer fragments. Load the Bootstrap bundle once (deferred) in the head fragment so every page has working dropdown/collapse, and remove the now-duplicate bottom \ No newline at end of file diff --git a/openespi-datacustodian/src/main/resources/templates/custodian/retailcustomers/form.html b/openespi-datacustodian/src/main/resources/templates/custodian/retailcustomers/form.html index 844293aa..7986d05d 100644 --- a/openespi-datacustodian/src/main/resources/templates/custodian/retailcustomers/form.html +++ b/openespi-datacustodian/src/main/resources/templates/custodian/retailcustomers/form.html @@ -8,7 +8,7 @@
-

Retail Customer

+

User Account

@@ -34,6 +34,13 @@

Last name error

+
+ + +

Retail Customers

- Add new customer + Add user
diff --git a/openespi-datacustodian/src/main/resources/templates/fragments/layout.html b/openespi-datacustodian/src/main/resources/templates/fragments/layout.html index 32915720..05a9510e 100644 --- a/openespi-datacustodian/src/main/resources/templates/fragments/layout.html +++ b/openespi-datacustodian/src/main/resources/templates/fragments/layout.html @@ -17,6 +17,11 @@ + + + diff --git a/openespi-datacustodian/src/main/resources/templates/home.html b/openespi-datacustodian/src/main/resources/templates/home.html index 6f055e09..0f2cb6d6 100644 --- a/openespi-datacustodian/src/main/resources/templates/home.html +++ b/openespi-datacustodian/src/main/resources/templates/home.html @@ -76,7 +76,5 @@

API Reference

- - \ No newline at end of file From aa1cc501d16aad7e404da5912e478996e03d1251 Mon Sep 17 00:00:00 2001 From: "Donald F. Coffin" Date: Sun, 7 Jun 2026 21:45:43 -0400 Subject: [PATCH 4/5] fix(#175): error-page links + Enabled account toggle - Error pages (404 error.html, 400, 403): "Go Home"/"Login" used host-absolute hrefs that bypassed the /DataCustodian context path (dead links) -> context- relative th:href. Removed their duplicate bottom Bootstrap - - - \ No newline at end of file diff --git a/openespi-datacustodian/src/main/resources/templates/error/400.html b/openespi-datacustodian/src/main/resources/templates/error/400.html index e94e2aef..9da95f40 100644 --- a/openespi-datacustodian/src/main/resources/templates/error/400.html +++ b/openespi-datacustodian/src/main/resources/templates/error/400.html @@ -19,7 +19,7 @@

Bad Request

The request could not be understood by the server due to malformed syntax.

- Go Home + Go Home
@@ -27,11 +27,5 @@

Bad Request

- - - - - - \ No newline at end of file diff --git a/openespi-datacustodian/src/main/resources/templates/error/403.html b/openespi-datacustodian/src/main/resources/templates/error/403.html index 7f460e45..42ecf2e9 100644 --- a/openespi-datacustodian/src/main/resources/templates/error/403.html +++ b/openespi-datacustodian/src/main/resources/templates/error/403.html @@ -19,8 +19,8 @@

Access Forbidden

You don't have permission to access this resource. Please contact your administrator if you believe this is an error.

- Go Home - Login + Go Home + Login
@@ -28,11 +28,5 @@

Access Forbidden

- - - - - - \ No newline at end of file From 90a001a101736bedc84b03f95e47bef1b1811243 Mon Sep 17 00:00:00 2001 From: "Donald F. Coffin" Date: Sun, 7 Jun 2026 22:59:04 -0400 Subject: [PATCH 5/5] fix(#175): point home 'Open Source project' link at the OpenESPI-GreenButton-Java repo Co-Authored-By: Claude Opus 4.8 --- openespi-datacustodian/src/main/resources/templates/home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openespi-datacustodian/src/main/resources/templates/home.html b/openespi-datacustodian/src/main/resources/templates/home.html index 0f2cb6d6..a6816bdd 100644 --- a/openespi-datacustodian/src/main/resources/templates/home.html +++ b/openespi-datacustodian/src/main/resources/templates/home.html @@ -14,7 +14,7 @@

Welcome to the The Green Button Alliance has, with the support of the open source community, prepared a reference Green Button Data Custodian implementation. This implementation supports a full complement of Green Button facilities and, as an - Open Source project, is freely available for download by any interested parties. + Open Source project, is freely available for download by any interested parties.