From d9524597b4ab6ecd863eed45f34657ee5688c46e Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 8 Oct 2020 18:55:54 +0200 Subject: [PATCH] Added link to the column software in services table. --- src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java | 5 ++++- src/fr/devinsy/statoolinfos/htmlize/serviceListView.xhtml | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java b/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java index a5ec22f..a6f333c 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java +++ b/src/fr/devinsy/statoolinfos/htmlize/ServiceListView.java @@ -71,7 +71,10 @@ public class ServiceListView data.setEscapedContent("serviceListLine", index, "serviceListLineUrlLink", service.getWebsite()); data.setEscapedContent("serviceListLine", index, "serviceListLineWebsiteLink", service.getWebsite()); data.setAttribute("serviceListLine", index, "serviceListLineWebsiteLink", "href", service.getWebsite()); - data.setEscapedContent("serviceListLine", index, "serviceListLineSoftware", service.getSoftwareName()); + + data.setEscapedContent("serviceListLine", index, "serviceListLineSoftwareLink", service.getSoftwareName()); + data.setAttribute("serviceListLine", index, "serviceListLineSoftwareLink", "href", "software-" + service.getSoftwareTechnicalName() + ".xhtml"); + data.setEscapedContent("serviceListLine", index, "serviceListLineDate", service.getCrawledDate().toString()); data.setAttribute("serviceListLine", index, "serviceStatusImg", "src", "status-" + service.getStatus().toString().toLowerCase() + ".png"); diff --git a/src/fr/devinsy/statoolinfos/htmlize/serviceListView.xhtml b/src/fr/devinsy/statoolinfos/htmlize/serviceListView.xhtml index 12ec673..641ccda 100644 --- a/src/fr/devinsy/statoolinfos/htmlize/serviceListView.xhtml +++ b/src/fr/devinsy/statoolinfos/htmlize/serviceListView.xhtml @@ -42,7 +42,9 @@ n/a - n/a + + n/a + n/a