summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2014-11-25 18:58:35 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-28 14:02:59 +0000
commitdc1be9c4380bb7ee3b4422ee0d34bfcee8082762 (patch)
treef955aae61cbd45e0137279a88fe697ccf96f587c /bitbake
parentc31f30918b6c221531535297c5604cb61849b544 (diff)
downloadpoky-dc1be9c4380bb7ee3b4422ee0d34bfcee8082762.tar.gz
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 <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/static/css/default.css4
-rw-r--r--bitbake/lib/toaster/toastergui/templates/mrb_section.html4
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; }
136.new-build .alert { margin-top: 10px; } 136.new-build .alert { margin-top: 10px; }
137.new-build .alert p { margin-top: 10px; } 137.new-build .alert p { margin-top: 10px; }
138 138
139/* styles for showing the project name in build mode */
140.project-name { padding-top: 0; }
141.project-name .label { font-weight: normal; margin-bottom: 5px; margin-left: -15px; padding: 5px; }
142
139/* Remove bottom margin for forms inside modal dialogs */ 143/* Remove bottom margin for forms inside modal dialogs */
140#dependencies_modal_form { margin-bottom: 0px; } 144#dependencies_modal_form { margin-bottom: 0px; }
141 145
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 @@
12 </div> 12 </div>
13 <div id="latest-builds"> 13 <div id="latest-builds">
14 {% for build in mru %} 14 {% for build in mru %}
15 <div class="alert {%if build.outcome == build.SUCCEEDED%}alert-success{%elif build.outcome == build.FAILED%}alert-error{%else%}alert-info{%endif%}" style="padding-top: 0;"> 15 <div class="alert {%if build.outcome == build.SUCCEEDED%}alert-success{%elif build.outcome == build.FAILED%}alert-error{%else%}alert-info{%endif%} {% if MANAGED and build.project %}project-name{% endif %} ">
16 {% if MANAGED and build.project %} 16 {% if MANAGED and build.project %}
17 <span class="label {%if build.outcome == build.SUCCEEDED%}label-success{%elif build.outcome == build.FAILED%}label-danger{%else%}label-info{%endif%}" style="font-weight: normal; margin-bottom: 5px; margin-left:-15px; padding-top:5px;"> {{build.project.name}} </span> 17 <span class="label {%if build.outcome == build.SUCCEEDED%}label-success{%elif build.outcome == build.FAILED%}label-danger{%else%}label-info{%endif%}"> {{build.project.name}} </span>
18 {% endif %} 18 {% endif %}
19 19
20 <div class="row-fluid"> 20 <div class="row-fluid">