diff --git a/.vs/AAWeb/v15/.suo b/.vs/AAWeb/v15/.suo index 463f06658..47718db55 100644 Binary files a/.vs/AAWeb/v15/.suo and b/.vs/AAWeb/v15/.suo differ diff --git a/Panels/ProductsPanel.js b/Panels/ProductsPanel.js index a86ff3021..c4f4bea3c 100644 --- a/Panels/ProductsPanel.js +++ b/Panels/ProductsPanel.js @@ -28,7 +28,7 @@ function initialize() { - thisObject.container.frame.width = 400; + thisObject.container.frame.width = 320; thisObject.container.frame.height = viewPort.visibleArea.bottomRight.y - viewPort.visibleArea.topLeft.y + 15; var position = { diff --git a/ProductCard.js b/ProductCard.js index 03118d962..a73d65326 100644 --- a/ProductCard.js +++ b/ProductCard.js @@ -87,7 +87,7 @@ }; this.container.frame.position = position; - this.container.frame.width = 380; + this.container.frame.width = 300; this.container.frame.height = 100; /* We retrieve the locally stored status of the Product */ @@ -300,6 +300,10 @@ const devTeamImageSize = 50; const botImageSize = 50; + const plotterImageSize = { + width: 150, + height: 50 + }; /* First the Dev Team Profile Picture. */ @@ -332,7 +336,20 @@ /* Third the Plotter's Profile Picture. */ + if (thisObject.product.plotter.profilePicture !== undefined) { + let plotterImagePoint = { + x: thisObject.container.frame.width / 2 - plotterImageSize.width / 2, + y: thisObject.container.frame.height / 2 - plotterImageSize.height / 2 + }; + + plotterImagePoint = thisObject.container.frame.frameThisPoint(plotterImagePoint); + + let imageId = thisObject.bot.devTeam + "." + thisObject.product.plotter.codeName + "." + thisObject.product.plotter.moduleName + "." + thisObject.product.plotter.profilePicture; + let plotterImage = document.getElementById(imageId); + browserCanvasContext.drawImage(plotterImage, plotterImagePoint.x, plotterImagePoint.y, plotterImageSize.width, plotterImageSize.height); + + } /* Now the small circle */ @@ -421,7 +438,7 @@ /* product */ - fontSize = 12; + fontSize = 10; label = thisObject.product.displayName; diff --git a/server.js b/server.js index 0ab07539b..312d44aca 100644 --- a/server.js +++ b/server.js @@ -831,7 +831,7 @@ function onBrowserRequest(request, response) { stringToInsert = htmlLineCopy.replace('@devTeam@', devTeam.codeName); stringToInsert = stringToInsert.replace('@repo@', plotter.repo); stringToInsert = stringToInsert.replace('@image@', module.profilePicture); - stringToInsert = stringToInsert.replace('@id@', devTeam.codeName + "." + module.codeName + "." + module.profilePicture); + stringToInsert = stringToInsert.replace('@id@', devTeam.codeName + "." + plotter.codeName + "." + module.codeName + "." + module.profilePicture); let firstPart = fileContent.substring(0, fileContent.indexOf('') + 15); let secondPart = fileContent.substring(fileContent.indexOf('') + 15);