diff options
author | Belen Barros Pena <belen.barros.pena@intel.com> | 2016-02-22 09:08:37 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-26 17:20:21 +0000 |
commit | e1fc3190b730aaa73fd7b004c0b7f35a6626bd24 (patch) | |
tree | 0c0b172b91525baa73130179ea1d42015cdbcb5a /bitbake/lib/toaster/toastergui/static | |
parent | df2808f5f60736d01c11aaa247377b003899c735 (diff) | |
download | poky-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')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/css/default.css | 1 | ||||
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/layerdetails.js | 15 |
2 files changed, 0 insertions, 16 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css index c1cb93c6e5..ae9fa06071 100644 --- a/bitbake/lib/toaster/toastergui/static/css/default.css +++ b/bitbake/lib/toaster/toastergui/static/css/default.css | |||
@@ -10,7 +10,6 @@ | |||
10 | 10 | ||
11 | /* Style the breadcrumb */ | 11 | /* Style the breadcrumb */ |
12 | .breadcrumb { display: inline-block; background-color: transparent; } | 12 | .breadcrumb { display: inline-block; background-color: transparent; } |
13 | .breadcrumb li:first-child { padding-right: 10px; } | ||
14 | 13 | ||
15 | /* Styles for the help information */ | 14 | /* Styles for the help information */ |
16 | .get-help { color: #CCCCCC; } | 15 | .get-help { color: #CCCCCC; } |
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) |