From dc1be9c4380bb7ee3b4422ee0d34bfcee8082762 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Tue, 25 Nov 2014 18:58:35 +0000 Subject: [PATCH] bitbake: toaster: fix padding of build notifications In managed mode, we show the name of the project in the build notifications of the all builds page. The way we show the project requires modifying the default padding of the .alert class. This patch makes sure the padding modification is only applied in managed mode, i.e., when the project name needs to be shown. (Bitbake rev: d1cd8b229c402fae3499e35415ad79c0e11ee517) Signed-off-by: Belen Barros Pena Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/css/default.css | 4 ++++ bitbake/lib/toaster/toastergui/templates/mrb_section.html | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css index dcb8e34ac3..199c7531dc 100644 --- a/bitbake/lib/toaster/toastergui/static/css/default.css +++ b/bitbake/lib/toaster/toastergui/static/css/default.css @@ -136,6 +136,10 @@ select { width: auto; } .new-build .alert { margin-top: 10px; } .new-build .alert p { margin-top: 10px; } +/* styles for showing the project name in build mode */ +.project-name { padding-top: 0; } +.project-name .label { font-weight: normal; margin-bottom: 5px; margin-left: -15px; padding: 5px; } + /* Remove bottom margin for forms inside modal dialogs */ #dependencies_modal_form { margin-bottom: 0px; } diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html b/bitbake/lib/toaster/toastergui/templates/mrb_section.html index 33afb7ba18..73031e2d1f 100644 --- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html +++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html @@ -12,9 +12,9 @@
{% for build in mru %} -
+
{% if MANAGED and build.project %} - {{build.project.name}} + {{build.project.name}} {% endif %}