From e042717fa43dc0856a2cf87302d5b857b5e81362 Mon Sep 17 00:00:00 2001 From: v-dumas Date: Tue, 28 Oct 2025 10:46:37 +0100 Subject: [PATCH 1/3] =?UTF-8?q?N=C2=B08533=20-=20Impact=20Analysis,=20add?= =?UTF-8?q?=20icons=20and=20tooltips=20in=20shortcut=5Factions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/displayblock.class.inc.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/application/displayblock.class.inc.php b/application/displayblock.class.inc.php index 2237030242..3dc4037594 100644 --- a/application/displayblock.class.inc.php +++ b/application/displayblock.class.inc.php @@ -2000,13 +2000,13 @@ public function GetRenderContent(WebPage $oPage, array $aExtraParams, string $sI $this->AddMenuSeparator($aRegularActions); foreach ($aRelations as $sRelationCode => $aRelationInfo) { if (array_key_exists('down', $aRelationInfo)) { - $aRegularActions[$sRelationCode.'_down'] = [ + $aRegularActions['UI:Menu:'.$sRelationCode.'_down'] = [ 'label' => $aRelationInfo['down'], 'url' => "{$sRootUrl}pages/$sUIPage?operation=view_relations&relation=$sRelationCode&direction=down&class=$sClass&id=$id{$sContext}", ] + $aActionParams; } if (array_key_exists('up', $aRelationInfo)) { - $aRegularActions[$sRelationCode.'_up'] = [ + $aRegularActions['UI:Menu:'.$sRelationCode.'_up'] = [ 'label' => $aRelationInfo['up'], 'url' => "{$sRootUrl}pages/$sUIPage?operation=view_relations&relation=$sRelationCode&direction=up&class=$sClass&id=$id{$sContext}", ] + $aActionParams; @@ -2251,6 +2251,16 @@ public function GetRenderContent(WebPage $oPage, array $aExtraParams, string $sI $sIconClass = 'fas fa-file-pdf fa-lg'; $sLabel = ''; break; + case 'UI:Menu:impacts_up': + $sIconClass = 'fas fa-sitemap fa-rotate-180'; + $sLabel = ''; + $aAction['tooltip'] = Dict::S('Relation:impacts/UpStream+'); + break; + case 'UI:Menu:impacts_down': + $sIconClass = 'fas fa-sitemap'; + $sLabel = ''; + $aAction['tooltip'] = Dict::S('Relation:impacts/DownStream+'); + break; default: if (isset($aAction['icon_class']) && (strlen($aAction['icon_class']) > 0)) { From 6e48b07e364230e51b910001a9bc136de7f5e024 Mon Sep 17 00:00:00 2001 From: v-dumas Date: Fri, 14 Nov 2025 10:08:44 +0100 Subject: [PATCH 2/3] =?UTF-8?q?N=C2=B08533=20-=20Use=20label=20instead=20o?= =?UTF-8?q?f=20tooltip=20for=20"Depends=20on..."?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/displayblock.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/displayblock.class.inc.php b/application/displayblock.class.inc.php index 3dc4037594..91edd2535f 100644 --- a/application/displayblock.class.inc.php +++ b/application/displayblock.class.inc.php @@ -2254,7 +2254,7 @@ public function GetRenderContent(WebPage $oPage, array $aExtraParams, string $sI case 'UI:Menu:impacts_up': $sIconClass = 'fas fa-sitemap fa-rotate-180'; $sLabel = ''; - $aAction['tooltip'] = Dict::S('Relation:impacts/UpStream+'); + $aAction['tooltip'] = Dict::S('Relation:impacts/UpStream'); // Tooltip not clear for PO, so we use the label here break; case 'UI:Menu:impacts_down': $sIconClass = 'fas fa-sitemap'; From b3000cc0248edf3a864c0fbbd1719218228a9198 Mon Sep 17 00:00:00 2001 From: v-dumas Date: Fri, 14 Nov 2025 10:28:46 +0100 Subject: [PATCH 3/3] =?UTF-8?q?N=C2=B08533=20-=20Use=20label=20instead=20o?= =?UTF-8?q?f=20the=20+=20dico=20entry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/displayblock.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/displayblock.class.inc.php b/application/displayblock.class.inc.php index 91edd2535f..aa139d8929 100644 --- a/application/displayblock.class.inc.php +++ b/application/displayblock.class.inc.php @@ -2254,12 +2254,12 @@ public function GetRenderContent(WebPage $oPage, array $aExtraParams, string $sI case 'UI:Menu:impacts_up': $sIconClass = 'fas fa-sitemap fa-rotate-180'; $sLabel = ''; - $aAction['tooltip'] = Dict::S('Relation:impacts/UpStream'); // Tooltip not clear for PO, so we use the label here + $aAction['tooltip'] = Dict::S('Relation:impacts/UpStream'); break; case 'UI:Menu:impacts_down': $sIconClass = 'fas fa-sitemap'; $sLabel = ''; - $aAction['tooltip'] = Dict::S('Relation:impacts/DownStream+'); + $aAction['tooltip'] = Dict::S('Relation:impacts/DownStream'); break; default: