path con links

This commit is contained in:
Luis Fernando Molina committed 2020-12-18 15:29:02 +01:00
1 parent 25286d8668
commit 8ac6737db0
3 files changed
+17 -2

No files matched your search

+10
View File
@@ -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;
@@ -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 = ' > <a onClick="UI.projects.superalgos.spaces.docsSpace.navigateTo(\'' + result.documentIndex.documentCategory + '\', \'' + nodeType + '\', \'' + nodeProject + '\', \'' + nodeId + '\')" class="docs-search-result-content-record-project-category-link">'
if (nodeName === 'New ' + nodeType || nodeName === 'My ' + nodeType || nodeName === undefined) {
nodeName = ''
}
path = path + ' > ' + nodeName + ' ' + '<i>' + nodeType + '</i>'
linkLabel = nodeName + ' ' + '<i>' + nodeType + '</i>'
path = path + link + linkLabel + '</a>'
}
}
@@ -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 {