From 446070074edbb47ca6a7d231ca45940bddb6a591 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Fri, 4 Sep 2015 11:05:19 +0100 Subject: [PATCH] bitbake: toaster: Changes to navigation This patch: * Changes the breadcrumb to provide access to either the project builds or the project configuration, as appropriate * Changes the left navigation in the project configuration to reflect the hierarchical relationship between the basic configuration and all other configuration pages * Changes the left navigation in the build history to bring it in line with the changes in the project configuration This way the breadcrumb explicitly exposes the hierarchy of the application, which is its correct behaviour, making it easier to move around within Toaster. (Bitbake rev: 135dff67216759286f584e501583584a9cb09f27) Signed-off-by: Belen Barros Pena Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/css/default.css | 5 +++++ .../toastergui/templates/basebuilddetailpage.html | 5 +++-- .../toaster/toastergui/templates/basebuildpage.html | 11 +++++++++-- .../toaster/toastergui/templates/baseprojectpage.html | 6 +++--- .../toaster/toastergui/templates/layerdetails.html | 5 +++-- 5 files changed, 23 insertions(+), 9 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css index 9723db36d0..cce3e315fc 100644 --- a/bitbake/lib/toaster/toastergui/static/css/default.css +++ b/bitbake/lib/toaster/toastergui/static/css/default.css @@ -10,6 +10,7 @@ /* Style the breadcrumb */ .breadcrumb { display: inline-block; background-color: transparent; } +.breadcrumb li:first-child { padding-right: 10px; } /* Styles for the help information */ .get-help { color: #CCCCCC; } @@ -112,6 +113,10 @@ th > a, th > span { font-weight: normal; } .btn-group + .btn-group { margin-right: 10px; } .navbar-inner > .btn-group { margin-top: 6px; } +/* Styles for the parent item in the left navigation */ + +.nav > li > a.nav-parent { font-size: 18px; line-height: 25px; } + /* Other styles */ .dropdown-menu { padding: 10px; } select { width: auto; } diff --git a/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html b/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html index 8657845cd2..22ca50c0c3 100644 --- a/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html +++ b/bitbake/lib/toaster/toastergui/templates/basebuilddetailpage.html @@ -6,7 +6,8 @@
@@ -14,7 +15,7 @@ $( function () { $('#breadcrumb > li').append(''); $('#breadcrumb > li:last').addClass("active"); - $('#breadcrumb > li:last > span').remove(); + $('#breadcrumb > li:last > span, #breadcrumb > li:first > span').remove(); });
diff --git a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html index f399ba4625..d441df84e0 100644 --- a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html +++ b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html @@ -8,7 +8,8 @@