diff options
author | Belen Barros Pena <belen.barros.pena@intel.com> | 2014-11-25 18:58:35 +0000 |
---|---|---|
committer | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-11-27 17:04:52 +0000 |
commit | d1cd8b229c402fae3499e35415ad79c0e11ee517 (patch) | |
tree | 56e989ceb12e45ade8f067d242083b02e4e5af72 /lib | |
parent | 99ac7379e5df6c5cc491c2be591b15ad7ec04caa (diff) | |
download | bitbake-d1cd8b229c402fae3499e35415ad79c0e11ee517.tar.gz |
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.
Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/toaster/toastergui/static/css/default.css | 4 | ||||
-rw-r--r-- | lib/toaster/toastergui/templates/mrb_section.html | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/toaster/toastergui/static/css/default.css b/lib/toaster/toastergui/static/css/default.css index dcb8e34ac..199c7531d 100644 --- a/lib/toaster/toastergui/static/css/default.css +++ b/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/lib/toaster/toastergui/templates/mrb_section.html b/lib/toaster/toastergui/templates/mrb_section.html index 33afb7ba1..73031e2d1 100644 --- a/lib/toaster/toastergui/templates/mrb_section.html +++ b/lib/toaster/toastergui/templates/mrb_section.html @@ -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"> |