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>
This commit is contained in:
parent
c31f30918b
commit
dc1be9c438
|
@ -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; }
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
</div>
|
||||
<div id="latest-builds">
|
||||
{% for build in mru %}
|
||||
<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;">
|
||||
<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 %} ">
|
||||
{% if MANAGED and build.project %}
|
||||
<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>
|
||||
<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>
|
||||
{% endif %}
|
||||
|
||||
<div class="row-fluid">
|
||||
|
|
Loading…
Reference in New Issue