Some small changes to make sure the page displays properly with
Bootstrap 3.

Signed-off-by: Belen Barros Pena <[email protected]>
---
 bitbake/lib/toaster/toastergui/static/css/default.css      |  6 ++++++
 bitbake/lib/toaster/toastergui/templates/mrb_section.html  | 14 ++++++--------
 .../toastergui/templates/projectbuilds-toastertable.html   |  2 +-
 3 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css 
b/bitbake/lib/toaster/toastergui/static/css/default.css
index 795fe41..676f39a 100644
--- a/bitbake/lib/toaster/toastergui/static/css/default.css
+++ b/bitbake/lib/toaster/toastergui/static/css/default.css
@@ -121,3 +121,9 @@ h3 > .glyphicon-question-sign { font-size: 14px; }
 #layers-in-project-list .tooltip-inner  { max-width: 600px; }
 #no-layers-in-project { margin-top: 20px; }
 #no-layers-in-project ul { margin-top: 10px; }
+
+/* Create a class for additional top margin that we can use in headings */
+.top-air { margin-top: 40px; }
+
+/* Add some bottom margin to our h2's */
+h2 { margin-bottom: 25px; }
diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html 
b/bitbake/lib/toaster/toastergui/templates/mrb_section.html
index ffb268d..100f680 100644
--- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html
+++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html
@@ -21,15 +21,13 @@
 {%if mru and mru.count > 0%}
 
   {%if mrb_type == 'project' %}
-      <div class="page-header">
-        <h2>
-          Latest project builds
+  <h2>
+    Latest project builds
 
-      {% if project.is_default %}
-          <span class="glyphicon glyphicon-question-sign get-help 
heading-help" title="" data-original-title="Builds in this project cannot be 
started from Toaster: they are started from the command line"></span>
-      {% endif %}
-        </h2>
-      </div>
+    {% if project.is_default %}
+    <span class="glyphicon glyphicon-question-sign get-help heading-help" 
title="" data-original-title="Builds in this project cannot be started from 
Toaster: they are started from the command line"></span>
+    {% endif %}
+  </h2>
   {% else %}
     <div class="page-header">
       <h1>
diff --git 
a/bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html 
b/bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html
index 4118ebc..b9348eb 100644
--- a/bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html
+++ b/bitbake/lib/toaster/toastergui/templates/projectbuilds-toastertable.html
@@ -22,7 +22,7 @@
       {% include 'mrb_section.html' %}
     {% endwith %}
 
-    <h2 class="page-header top-air" data-role="page-title"></h2>
+    <h2 class="top-air" data-role="page-title"></h2>
 
     {% url 'projectbuilds' project.id as xhr_table_url %}
     {% include 'toastertable.html' %}
-- 
1.9.1

-- 
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Reply via email to