From 8ac6737db0f9d936d7a47884bf2f1d4b24fac413 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 18 Dec 2020 15:29:02 +0100 Subject: [PATCH] path con links --- Client/WebServer/css/docs.css | 10 ++++++++++ Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js | 7 ++++++- Projects/Superalgos/UI/Utilities/Hierarchy.js | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/Client/WebServer/css/docs.css b/Client/WebServer/css/docs.css index 45dd15c27..ad056e3a2 100644 --- a/Client/WebServer/css/docs.css +++ b/Client/WebServer/css/docs.css @@ -590,6 +590,16 @@ margin-left: -240px; color: #31708f; } +.docs-search-result-content-record-project-category-link { + font-size: 90%; + color: #31708f; +} + +a:hover.docs-search-result-content-record-project-category-link { + text-decoration: underline; + cursor: pointer; +} + .docs-search-result-content-record-title { font-size: 120%; font-weight: 500; diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index 1f0490631..220841a57 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -941,14 +941,19 @@ function newSuperalgosDocSpace() { /* Lets see if we can show a path */ let path = '' if (result.documentIndex.schemaDocument.nodeNameTypePath !== undefined) { + let linkLabel for (let i = 0; i < result.documentIndex.schemaDocument.nodeNameTypePath.length; i++) { let pathStep = result.documentIndex.schemaDocument.nodeNameTypePath[i] let nodeName = pathStep[0] let nodeType = pathStep[1] + let nodeProject = pathStep[2] + let nodeId = pathStep[3] + let link = ' > ' if (nodeName === 'New ' + nodeType || nodeName === 'My ' + nodeType || nodeName === undefined) { nodeName = '' } - path = path + ' > ' + nodeName + ' ' + '' + nodeType + '' + linkLabel = nodeName + ' ' + '' + nodeType + '' + path = path + link + linkLabel + '' } } diff --git a/Projects/Superalgos/UI/Utilities/Hierarchy.js b/Projects/Superalgos/UI/Utilities/Hierarchy.js index fb84821ea..209d4cdf7 100644 --- a/Projects/Superalgos/UI/Utilities/Hierarchy.js +++ b/Projects/Superalgos/UI/Utilities/Hierarchy.js @@ -78,7 +78,7 @@ function newSuperalgosUtilitiesHierarchy() { function stepBackwards(node) { if (node === undefined) { return } if (node.payload === undefined) { return } - pathArray.unshift([node.name, node.type]) + pathArray.unshift([node.name, node.type, node.project, node.id]) if (node.payload.parentNode === undefined) { return } else {