summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-04-21 20:29:46 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-08 17:42:06 +0100
commit286da989d98455b7dea166713fe48c679afbd3d8 (patch)
tree31a506f251d3f4ecb4d8c0f7c1276c35ae2dda03 /bitbake/lib
parentbec5d164717c6987f81d47d75942e94538649dad (diff)
downloadpoky-286da989d98455b7dea166713fe48c679afbd3d8.tar.gz
bitbake: toaster: Add links to the layer add notification
Adds links to the layer details for the layer that has just been removed or added (Bitbake rev: 3b323af501f7ec81cce34adb4ea86a7d6599e60a) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/libtoaster.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
index 1cf1693dde..6bf915d15a 100644
--- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
+++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
@@ -261,7 +261,7 @@ var libtoaster = (function (){
261 var alertMsg; 261 var alertMsg;
262 262
263 if (layerDepsList.length > 0 && add === true) { 263 if (layerDepsList.length > 0 && add === true) {
264 alertMsg = $("<span>You have added <strong>"+(layerDepsList.length+1)+"</strong> layers to <a id=\"project-affected-name\"></a>: <span id=\"layer-affected-name\"></span> and its dependencies </span>"); 264 alertMsg = $("<span>You have added <strong>"+(layerDepsList.length+1)+"</strong> layers to <a id=\"project-affected-name\"></a>: <a id=\"layer-affected-name\"></a> and its dependencies </span>");
265 265
266 /* Build the layer deps list */ 266 /* Build the layer deps list */
267 layerDepsList.map(function(layer, i){ 267 layerDepsList.map(function(layer, i){
@@ -277,12 +277,13 @@ var libtoaster = (function (){
277 alertMsg.append(link); 277 alertMsg.append(link);
278 }); 278 });
279 } else if (layerDepsList.length === 0 && add === true) { 279 } else if (layerDepsList.length === 0 && add === true) {
280 alertMsg = $("<span>You have added <strong>1</strong> layer to <a id=\"project-affected-name\"></a>: <span id=\"layer-affected-name\"></span></span>"); 280 alertMsg = $("<span>You have added <strong>1</strong> layer to <a id=\"project-affected-name\"></a>: <a id=\"layer-affected-name\"></a></span></span>");
281 } else if (add === false) { 281 } else if (add === false) {
282 alertMsg = $("<span>You have deleted <strong>1</strong> layer from <a id=\"project-affected-name\"></a>: <strong id=\"layer-affected-name\"></strong></span>"); 282 alertMsg = $("<span>You have deleted <strong>1</strong> layer from <a id=\"project-affected-name\"></a>: <a id=\"layer-affected-name\"></a></span>");
283 } 283 }
284 284
285 alertMsg.children("#layer-affected-name").text(layer.name); 285 alertMsg.children("#layer-affected-name").text(layer.name);
286 alertMsg.children("#layer-affected-name").attr("href", layer.url);
286 alertMsg.children("#project-affected-name").text(libtoaster.ctx.projectName); 287 alertMsg.children("#project-affected-name").text(libtoaster.ctx.projectName);
287 alertMsg.children("#project-affected-name").attr("href", libtoaster.ctx.projectPageUrl); 288 alertMsg.children("#project-affected-name").attr("href", libtoaster.ctx.projectPageUrl);
288 289