diff --git a/Projects/Governance/UI/Spaces/Reports-Space/ReportsPage.js b/Projects/Governance/UI/Spaces/Reports-Space/ReportsPage.js index c22c6069c..cb7ce9b8e 100644 --- a/Projects/Governance/UI/Spaces/Reports-Space/ReportsPage.js +++ b/Projects/Governance/UI/Spaces/Reports-Space/ReportsPage.js @@ -46,73 +46,16 @@ function newGovernanceReportsReportsPage() { HTML = HTML + '
' + tab.toUpperCase() + '_TOTAL_RESULTS results (' + tab.toUpperCase() + '_TOTAL_SECONDS seconds)
' let resultCounter = 0 - for (let j = 0; j < resultsArary.length; j++) { - let result = resultsArary[j] - if (tab !== 'All') { - if (tab.indexOf(result.documentIndex.category) < 0) { - continue - } + switch (tab) { + case 'Profiles': { + HTML = HTML + UI.projects.governance.spaces.reportsSpace.userProfiles.addHTML() + resultCounter = UI.projects.governance.spaces.reportsSpace.userProfiles.resultCounter + + break } - resultCounter++ - - /* Lets see if we can show a path */ - let path = '' - if (result.documentIndex.docsSchemaDocument.nodeNameTypePath !== undefined) { - let linkLabel - for (let i = 0; i < result.documentIndex.docsSchemaDocument.nodeNameTypePath.length; i++) { - let pathStep = result.documentIndex.docsSchemaDocument.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 = '' - } - if (nodeName === '') { - linkLabel = nodeType - } else { - linkLabel = nodeType + ' (' + nodeName + ')' - } - path = path + link + linkLabel + '' - } - } - - HTML = HTML + '' + result.documentIndex.project + ' > ' + result.documentIndex.category + path + '
' - - let mainLink = '' - - switch (result.documentIndex.category) { - case 'Topic': { - HTML = HTML + '' + result.documentIndex.docsSchemaDocument.topic + ' - Page ' + result.documentIndex.docsSchemaDocument.pageNumber + '
' - mainLink = result.documentIndex.docsSchemaDocument.type - break - } - case 'Tutorial': { - HTML = HTML + '' + result.documentIndex.docsSchemaDocument.tutorial + ' - Page ' + result.documentIndex.docsSchemaDocument.pageNumber + '
' - mainLink = result.documentIndex.docsSchemaDocument.type - break - } - case 'Review': { - HTML = HTML + '' + result.documentIndex.docsSchemaDocument.review + ' - Page ' + result.documentIndex.docsSchemaDocument.pageNumber + '
' - mainLink = result.documentIndex.docsSchemaDocument.type - break - } - default: { - mainLink = result.documentIndex.docsSchemaDocument.type - } - } - HTML = HTML + '' - - if (result.documentIndex.docsSchemaDocument.definition !== undefined) { - HTML = HTML + '' + UI.projects.education.utilities.docs.getTextBasedOnLanguage(result.documentIndex.docsSchemaDocument.definition) + '
' - } else { - HTML = HTML + '' + 'No definition available.' + '
' - } - HTML = HTML + '' + userProfile.name + '
' + + HTML = HTML + '