Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B79C6E00DA3; Thu, 9 Jun 2016 06:38:00 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.20 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id F212FE00D4E for ; Thu, 9 Jun 2016 06:37:53 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP; 09 Jun 2016 06:37:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,444,1459839600"; d="scan'208";a="118949919" Received: from icarus.isw.intel.com ([10.237.224.37]) by fmsmga004.fm.intel.com with ESMTP; 09 Jun 2016 06:37:39 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Thu, 9 Jun 2016 14:24:24 +0100 Message-Id: <1465478673-23191-12-git-send-email-belen.barros.pena@linux.intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465478673-23191-1-git-send-email-belen.barros.pena@linux.intel.com> References: <1465478673-23191-1-git-send-email-belen.barros.pena@linux.intel.com> Subject: [PATCH 11/20] toaster: build data Recipe details to Bootstrap 3 X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2016 13:38:00 -0000 Make sure the recipe details page displays correctly with Bootstrap 3. Signed-off-by: Belen Barros Pena --- .../lib/toaster/toastergui/static/css/default.css | 6 +- .../templates/detail_pagination_bottom.html | 24 +++--- .../toastergui/templates/detail_search_header.html | 58 +++++++------ .../toastergui/templates/detail_sorted_header.html | 8 +- .../lib/toaster/toastergui/templates/recipe.html | 98 ++++++++++++++-------- .../toastergui/templates/recipe_packages.html | 21 +++-- 6 files changed, 130 insertions(+), 85 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css index fe2c4c2..adcad81 100644 --- a/bitbake/lib/toaster/toastergui/static/css/default.css +++ b/bitbake/lib/toaster/toastergui/static/css/default.css @@ -74,7 +74,8 @@ span[class^="remove-search-btn-"]:hover { color: #333; } [id^="pagination-"] .pagination, [id^="pagination-"] .navbar-form { margin-top: 0; } [id^="table-chrome-"] .navbar-form { margin-left: -15px; margin-right: -15px; } -[id^="table-chrome-"] .detail-page-contols { padding-left: 0; padding-right: 0; } +[id^="table-chrome-"] .detail-page-contols, +#packages-built .detail-page-controls { padding-left: 0; padding-right: 0; } /* Override the default font-weight for labels: it's a bit too much */ label { font-weight: normal; } @@ -84,6 +85,9 @@ label { font-weight: normal; } /* Table heading sortable / not sortable states */ thead > tr > th > a { font-weight: normal; } + + + thead > tr > th > a.sorted { font-weight: bold; color: #333; } /* Give some extra space to the 'clear filter' buttons */ diff --git a/bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html b/bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html index 211548b..70404a2 100644 --- a/bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html +++ b/bitbake/lib/toaster/toastergui/templates/detail_pagination_bottom.html @@ -6,7 +6,7 @@ {# only paginate if 10 or more rows unfiltered, all pages #} {% if object_count >= 10 %} -
+
    {%if objects.has_previous %}
  • «
  • @@ -23,16 +23,18 @@ {%endif%}
-
- Show rows: - -
+
diff --git a/bitbake/lib/toaster/toastergui/templates/detail_search_header.html b/bitbake/lib/toaster/toastergui/templates/detail_search_header.html index 996b617..193c26b 100644 --- a/bitbake/lib/toaster/toastergui/templates/detail_search_header.html +++ b/bitbake/lib/toaster/toastergui/templates/detail_search_header.html @@ -21,22 +21,24 @@ $(document).ready(function() { {% if objects.paginator.count > 10 or request.GET.search %} {% if objects.paginator.count == 0 %} -
-

No {{search_what}} found

-
+
+

No {{search_what}} found

+ {% else %} - + {% endif %} - - - - {% if request.GET.search %} - - - - {% endif %} - +
+
+ + + + {% if request.GET.search %} + + {% endif %} +
+
+ {% if objects.paginator.count == 0 %}
{# end alert #} {% else %} {% if object_count > 10 %} -
- Show rows: - -
+ +
+ + +
+
{% endif %} {% endif %} diff --git a/bitbake/lib/toaster/toastergui/templates/detail_sorted_header.html b/bitbake/lib/toaster/toastergui/templates/detail_sorted_header.html index 6589b0a..fef2546 100644 --- a/bitbake/lib/toaster/toastergui/templates/detail_sorted_header.html +++ b/bitbake/lib/toaster/toastergui/templates/detail_sorted_header.html @@ -10,12 +10,12 @@ {% for tc in tablecols %} - {%if tc.qhelp%}{%endif%} - {%if tc.orderfield%}{{tc.name}}{%else%}{{tc.name}}{%endif%} - {%if tc.ordericon%} {%endif%} + {%if tc.qhelp%}{%endif%} + {%if tc.orderfield%}{{tc.name}}{%else%}{{tc.name}}{%endif%} + {%if tc.ordericon%} {%endif%} {% if request.GET.search and forloop.first %} {{objects.paginator.count}} - {% endif %} + {% endif %} {%if tc.filter%}{%endif%} diff --git a/bitbake/lib/toaster/toastergui/templates/recipe.html b/bitbake/lib/toaster/toastergui/templates/recipe.html index 2aaff6b..6c84660 100644 --- a/bitbake/lib/toaster/toastergui/templates/recipe.html +++ b/bitbake/lib/toaster/toastergui/templates/recipe.html @@ -14,7 +14,7 @@
- @@ -22,28 +22,33 @@
-
@@ -177,13 +207,13 @@ {{rr.depends_on.name}} {% if rr.via %} - satisfied via {{rr.via.name}} - satisfied via {{rr.via.name}} + + {{rr.via.name}} in the {{rr.depends_on.name}} recipe"> {% endif %} - {{rr.depends_on.version}} + {{rr.depends_on.version}} {% endfor %} @@ -216,13 +246,13 @@ {{rr.recipe.name}} {% if rr.via %} - satisfied via {{rr.via.name}} - satisfied via {{rr.via.name}} + + {{rr.via.name}} in the {{rr.depends_on.name}} recipe"> {% endif %} - {{rr.recipe.version}} + {{rr.recipe.version}} {% endfor %} @@ -257,7 +287,7 @@ {% if object.section %}
Section - +
{{object.section}}
{% endif %} diff --git a/bitbake/lib/toaster/toastergui/templates/recipe_packages.html b/bitbake/lib/toaster/toastergui/templates/recipe_packages.html index 2c2efd8..700704b 100644 --- a/bitbake/lib/toaster/toastergui/templates/recipe_packages.html +++ b/bitbake/lib/toaster/toastergui/templates/recipe_packages.html @@ -13,7 +13,7 @@