From: Belen <[email protected]>

Adapt the layout to the Bootstrap 3 grid rules.

Signed-off-by: Belen <[email protected]>
---
 .../toaster/toastergui/static/css/bootstrap3-transition.css    | 10 ++++++++++
 .../lib/toaster/toastergui/templates/builds-toastertable.html  |  6 ++++--
 bitbake/lib/toaster/toastergui/templates/mrb_section.html      |  2 +-
 bitbake/lib/toaster/toastergui/templates/toastertable.html     |  8 ++++----
 4 files changed, 19 insertions(+), 7 deletions(-)

diff --git 
a/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css 
b/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css
index d3297e3..6f5b1f0 100644
--- a/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css
+++ b/bitbake/lib/toaster/toastergui/static/css/bootstrap3-transition.css
@@ -11,3 +11,13 @@
 .navbar .btn-group .btn#new-project-button {
   margin-top: 5px;
 }
+
+/* Changes to the tables pagination */
+
+.pagination {
+  margin: 0 0 40px 0;
+}
+
+.pagination-centered {
+  margin-left: 50%;
+}
diff --git a/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html 
b/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html
index 505a568..9b4f3fe 100644
--- a/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html
+++ b/bitbake/lib/toaster/toastergui/templates/builds-toastertable.html
@@ -13,12 +13,14 @@
 
 {% block pagecontent %}
 
-  <div class="row">
+  <div class="col-md-12">
     {% with mru=mru mrb_type=mrb_type %}
       {% include 'mrb_section.html' %}
     {% endwith %}
 
-    <h1 class="page-header top-air" data-role="page-title"></h1>
+    <div class="page-header">
+      <h1 class="top-air" data-role="page-title"></h1>
+    </div>
 
     {% url 'builds' as xhr_table_url %}
     {% include 'toastertable.html' %}
diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html 
b/bitbake/lib/toaster/toastergui/templates/mrb_section.html
index 9d92010..4ec5885 100644
--- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html
+++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html
@@ -29,7 +29,7 @@
       {% endif %}
       </h2>
   {% else %}
-    <div class="page-header top-air">
+    <div class="page-header">
       <h1>
       Latest builds
       </h1>
diff --git a/bitbake/lib/toaster/toastergui/templates/toastertable.html 
b/bitbake/lib/toaster/toastergui/templates/toastertable.html
index 52c4e6d..f7b4dfc 100644
--- a/bitbake/lib/toaster/toastergui/templates/toastertable.html
+++ b/bitbake/lib/toaster/toastergui/templates/toastertable.html
@@ -87,13 +87,13 @@
   </table>
 
   <!-- Pagination controls -->
-  <div class="pagination pagination-centered" id="pagination-{{table_name}}">
-    <ul class="pagination" style="display: block-inline">
+  <div id="pagination-{{table_name}}">
+    <ul class="pagination pagination-centered">
     </ul>
 
     <div class="pull-right">
-      <span class="help-inline" style="padding-top:5px;">Show rows:</span>
-      <select style="margin-top:5px;margin-bottom:0px;" 
class="pagesize-{{table_name}}">
+      <span class="help-inline">Show rows:</span>
+      <select class="pagesize-{{table_name}}">
         {% with "10 25 50 100 150" as list%}
         {% for i in list.split %}
         <option value="{{i}}">{{i}}</option>
-- 
1.9.1

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

Reply via email to