Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 0F282E00D92; Tue, 24 May 2016 04:56:23 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id ABF86E00D16 for ; Tue, 24 May 2016 04:53:30 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP; 24 May 2016 04:53:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,359,1459839600"; d="scan'208";a="961194592" Received: from icarus.isw.intel.com ([10.237.224.37]) by orsmga001.jf.intel.com with ESMTP; 24 May 2016 04:53:29 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Tue, 24 May 2016 12:39:49 +0100 Message-Id: <1464090003-23469-93-git-send-email-belen.barros.pena@linux.intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1464090003-23469-1-git-send-email-belen.barros.pena@linux.intel.com> References: <1464090003-23469-1-git-send-email-belen.barros.pena@linux.intel.com> Subject: [PATCH 092/106] toaster: custom recipe Fix the custom recipe details page 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: Tue, 24 May 2016 11:56:23 -0000 Make sure the page displays correctly with Bootstrap 3, but when showing the table of packages and when showing no packages. Signed-off-by: Belen Barros Pena --- .../lib/toaster/toastergui/static/css/default.css | 12 ++- bitbake/lib/toaster/toastergui/tables.py | 3 +- .../toaster/toastergui/templates/customrecipe.html | 95 +++++++++++----------- .../toastergui/templates/pkg_add_rm_btn.html | 10 +-- .../snippets/pkg_dependencies_popover.html | 2 +- .../snippets/pkg_revdependencies_popover.html | 2 +- .../toaster/toastergui/templates/toastertable.html | 2 + 7 files changed, 67 insertions(+), 59 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css index 43c7c54..20bf498 100644 --- a/bitbake/lib/toaster/toastergui/static/css/default.css +++ b/bitbake/lib/toaster/toastergui/static/css/default.css @@ -49,12 +49,15 @@ img.logo { height: 30px; vertical-align: bottom; } /* Styles for our table controls */ .form-control[id^="search-input-"], .form-control[id^="new-search-input-"] { width: 30em; } +#search-input-selectpackagestable, +.form-control[id^="no-results-search-input-"]{ width: 20em; } #edit-columns-button { margin-right: 30px; } .navbar-default[id^="table-chrome-"] { background-color: transparent; } [id^="table-chrome-collapse-"] .navbar-form { margin-left: -15px; } .dropdown-menu.editcol { padding-left: 10px; min-width: 180px; } span[class^="remove-search-btn-"] { position: absolute; right: 5px; top: 0; bottom: 0; height: 14px; margin: auto; font-size: 14px; cursor: pointer; color: #777;} span[class^="remove-search-btn-"]:hover { color: #333; } +#no-results-special-selectpackagestable .form-inline { margin-top: 20px; } [id^="pagination-"] .pagination, [id^="pagination-"] .navbar-form { margin-top: 0; } [id^="table-chrome-"] .navbar-form { margin-left: -15px; margin-right: -15px; } @@ -77,7 +80,8 @@ thead > tr > th > a.sorted { font-weight: bold; color: #333; } thead > tr > th > .glyphicon-question-sign { margin-right: 5px; } /* Style build outcome in tables, download, remove and change icons */ -tbody > tr > td > .glyphicon-ok-circle { color: #3c763d; } +tbody > tr > td > .glyphicon-ok-circle, +dd > .glyphicon-ok-circle { color: #3c763d; } tbody > tr > td > .glyphicon-minus-sign { color: #a94442; } .glyphicon-download-alt, .glyphicon-edit { color: #337ab7; } @@ -169,7 +173,8 @@ legend { border: none; } .help-inline { color: #737373; margin-left: 10px; } /* Give some padding to the in-cell tooltips we use for notifications in tables */ -td > .tooltip-inner { padding: 10px; } +td > .tooltip-inner, +.inline-notification { padding: 10px; } /* Set sane widths for table columns */ #newcustomimagestable .get_description_or_summary, @@ -198,3 +203,6 @@ code { color: #333; background-color: transparent; } /* Style the new window icons */ .glyphicon-new-window:hover { text-decoration: none; } .dl-horizontal > dd > .glyphicon-new-window { margin-left: 5px; } + +/* Style the special no results message in the custom image details page */ +[id^="no-results-special-"] > .alert-warning > ol { margin-top: 10px; } diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index efc9c7b..f9940db 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py @@ -725,7 +725,8 @@ class PackagesTable(ToasterTable): self.add_column(title="License", field_name="license", - orderable=True) + orderable=True, + hidden=True) self.add_column(title="Dependencies", diff --git a/bitbake/lib/toaster/toastergui/templates/customrecipe.html b/bitbake/lib/toaster/toastergui/templates/customrecipe.html index fa76c8a..1a7f576 100644 --- a/bitbake/lib/toaster/toastergui/templates/customrecipe.html +++ b/bitbake/lib/toaster/toastergui/templates/customrecipe.html @@ -5,7 +5,6 @@ {% block pagecontent %} {% with recipe.get_base_recipe_file as base_recipe_file %} -
-