From: Belen Barros Pena Date: Fri, 4 Sep 2015 10:05:19 +0000 (+0100) Subject: toaster: Changes to navigation X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=135dff67216759286f584e501583584a9cb09f27;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Belen Barros Pena Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- diff --git a/lib/toaster/toastergui/static/css/default.css b/lib/toaster/toastergui/static/css/default.css index 9723db36d07..cce3e315fca 100644 --- a/lib/toaster/toastergui/static/css/default.css +++ b/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/lib/toaster/toastergui/templates/basebuilddetailpage.html b/lib/toaster/toastergui/templates/basebuilddetailpage.html index 8657845cd29..22ca50c0c3a 100644 --- a/lib/toaster/toastergui/templates/basebuilddetailpage.html +++ b/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/lib/toaster/toastergui/templates/basebuildpage.html b/lib/toaster/toastergui/templates/basebuildpage.html index f399ba46250..d441df84e0b 100644 --- a/lib/toaster/toastergui/templates/basebuildpage.html +++ b/lib/toaster/toastergui/templates/basebuildpage.html @@ -8,7 +8,8 @@