diff options
author | Belen Barros Pena <belen.barros.pena@intel.com> | 2015-01-26 15:11:54 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-29 22:11:34 +0000 |
commit | 088c19d6442653c6b39003057512d75b6c9508b7 (patch) | |
tree | 8086b1bf4d5b545d28c5eaea786bdf8bf5365ae6 /bitbake/lib/toaster/toastergui/static | |
parent | 571d551a2de0961c7cf3f9463b406b7d667ff444 (diff) | |
download | poky-088c19d6442653c6b39003057512d75b6c9508b7.tar.gz |
bitbake: toastergui: consistent add / remove layer notifications
In my struggle to ensure consistency in the format and content
of the notifications we show when you add and remove layers to
a project, I've:
* added the project name to the notifications
in the layer details page
* removed the 'Go to project configuration' link
from the notifications in the layer details page
This changes align the notifications we show in the layer
details page with the ones we show in the 'all' pages.
(Bitbake rev: 87deeb2016cbfdaff5531e1badb58761af6df848)
Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/layerdetails.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js index 41cbf4ba93..2addecd357 100644 --- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js +++ b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js | |||
@@ -211,7 +211,7 @@ function layerDetailsPageInit (ctx) { | |||
211 | addRmLayerBtn.prepend("<span class=\"icon-trash\"></span>"); | 211 | addRmLayerBtn.prepend("<span class=\"icon-trash\"></span>"); |
212 | 212 | ||
213 | if (depsList) { | 213 | if (depsList) { |
214 | alertMsg.append("You have added <strong>"+(depsList.length+1)+"</strong> layers: <span id=\"layer-affected-name\"></span> and its dependencies "); | 214 | alertMsg.append("You have added <strong>"+(depsList.length+1)+"</strong> layers to <a id=\"project-affected-name\"></a>: <span id=\"layer-affected-name\"></span> and its dependencies "); |
215 | 215 | ||
216 | /* Build the layer deps list */ | 216 | /* Build the layer deps list */ |
217 | depsList.map(function(layer, i){ | 217 | depsList.map(function(layer, i){ |
@@ -227,7 +227,7 @@ function layerDetailsPageInit (ctx) { | |||
227 | alertMsg.append(link); | 227 | alertMsg.append(link); |
228 | }); | 228 | }); |
229 | } else { | 229 | } else { |
230 | alertMsg.append("You have added <strong>1</strong> layer: <span id=\"layer-affected-name\"></span>"); | 230 | alertMsg.append("You have added <strong>1</strong> layer to <a id=\"project-affected-name\"></a>: <span id=\"layer-affected-name\"></span>"); |
231 | } | 231 | } |
232 | } else { | 232 | } else { |
233 | /* disable and switch all the button states */ | 233 | /* disable and switch all the button states */ |
@@ -252,10 +252,12 @@ function layerDetailsPageInit (ctx) { | |||
252 | break; | 252 | break; |
253 | } | 253 | } |
254 | 254 | ||
255 | alertMsg.append("You have deleted <strong>1</strong> layer: <span id=\"layer-affected-name\"></span>"); | 255 | alertMsg.append("You have deleted <strong>1</strong> layer from <a id=\"project-affected-name\"></a>: <span id=\"layer-affected-name\"></span>"); |
256 | } | 256 | } |
257 | 257 | ||
258 | alertMsg.children("#layer-affected-name").text(ctx.layerVersion.name); | 258 | alertMsg.children("#layer-affected-name").html("<strong>" + ctx.layerVersion.name + "</strong>"); |
259 | alertMsg.children("#project-affected-name").text(ctx.projectName); | ||
260 | alertMsg.children("#project-affected-name").attr("href", ctx.projectPageUrl); | ||
259 | $("#alert-area").show(); | 261 | $("#alert-area").show(); |
260 | } | 262 | } |
261 | 263 | ||