summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2016-02-22 09:08:37 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-26 17:20:21 +0000
commite1fc3190b730aaa73fd7b004c0b7f35a6626bd24 (patch)
tree0c0b172b91525baa73130179ea1d42015cdbcb5a /bitbake/lib/toaster/toastergui/static/js/layerdetails.js
parentdf2808f5f60736d01c11aaa247377b003899c735 (diff)
downloadpoky-e1fc3190b730aaa73fd7b004c0b7f35a6626bd24.tar.gz
bitbake: toaster: link to configuration in all breadcrumbs
The existing breadcrumb does not always provide a link to the project configuration page. When you are in the build history pages, you must go back to the builds information first, and from there access the project configuration. That feels very long. Change the breadcrumb so that the project name item always provides a link to the project configuration. (Bitbake rev: 9910f3f292d35fc91215d550c5f123dcf18ab35d) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/layerdetails.js')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/layerdetails.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
index 8c2ec4cdd9..663b3c6bf3 100644
--- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
+++ b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
@@ -32,21 +32,6 @@ function layerDetailsPageInit (ctx) {
32 } 32 }
33 }); 33 });
34 34
35
36 $(".breadcrumb li:first a").click(function(e){
37 e.preventDefault();
38 /* By default this link goes to the project configuration page. However
39 * if we have some builds we go there instead of the default href
40 */
41 libtoaster.getProjectInfo(libtoaster.ctx.projectPageUrl, function(prjInfo){
42 if (prjInfo.builds && prjInfo.builds.length > 0) {
43 window.location.replace(libtoaster.ctx.projectBuildsUrl);
44 } else {
45 window.location.replace(libtoaster.ctx.projectPageUrl);
46 }
47 });
48 });
49
50 function addRemoveDep(depLayerId, add, doneCb) { 35 function addRemoveDep(depLayerId, add, doneCb) {
51 var data = { layer_version_id : ctx.layerVersion.id }; 36 var data = { layer_version_id : ctx.layerVersion.id };
52 if (add) 37 if (add)