Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 13F2BE00D63; Thu, 9 Jun 2016 06:37:54 -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 84D70E00D45 for ; Thu, 9 Jun 2016 06:37:50 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP; 09 Jun 2016 06:37:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,444,1459839600"; d="scan'208";a="118949877" Received: from icarus.isw.intel.com ([10.237.224.37]) by fmsmga004.fm.intel.com with ESMTP; 09 Jun 2016 06:37:31 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Thu, 9 Jun 2016 14:24:17 +0100 Message-Id: <1465478673-23191-5-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 04/20] toaster: build data Packages installed 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:37:54 -0000 Make sure the table showing the list of packages installed in an image displays correctly with Bootstrap 3. Signed-off-by: Belen Barros Pena --- bitbake/lib/toaster/toastergui/buildtables.py | 12 ++++++------ bitbake/lib/toaster/toastergui/static/css/default.css | 8 +++++++- bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 4 +--- .../toastergui/templates/snippets/gitrev_popover.html | 2 +- .../templates/snippets/pkg_dependencies_popover.html | 2 +- .../templates/snippets/pkg_revdependencies_popover.html | 2 +- bitbake/lib/toaster/toastergui/templates/target.html | 10 +++++----- 7 files changed, 22 insertions(+), 18 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/buildtables.py b/bitbake/lib/toaster/toastergui/buildtables.py index e237e4e..5d00aa4 100644 --- a/bitbake/lib/toaster/toastergui/buildtables.py +++ b/bitbake/lib/toaster/toastergui/buildtables.py @@ -75,8 +75,8 @@ class BuiltPackagesTableBase(tables.PackagesTable): {%% endif %%} ''' % {'value': val}) - add_pkg_link_to = ['name', 'version', 'size', 'license'] - add_recipe_link_to = ['recipe__name', 'recipe__version'] + add_pkg_link_to = ['name'] + add_recipe_link_to = ['recipe__name'] # Add the recipe and pkg build links to the required columns for column in self.columns: @@ -160,7 +160,7 @@ class InstalledPackagesTable(BuildTablesMixin, BuiltPackagesTableBase): """ Show all packages installed in an image """ def __init__(self, *args, **kwargs): super(InstalledPackagesTable, self).__init__(*args, **kwargs) - self.title = "Installed Packages" + self.title = "Packages Included" self.default_orderby = "name" def make_package_list(self, target): @@ -213,11 +213,11 @@ class InstalledPackagesTable(BuildTablesMixin, BuiltPackagesTableBase): ' extra.target_id data.pk %}">{{data.name}}' '{% if data.installed_name and data.installed_name !=' ' data.name %}' - ' as {{data.installed_name}}' - ' as {{data.installed_name}}' + ' {% endif %} ') + '">{% endif %} ') for column in self.columns: if column['static_data_name'] == 'name': diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css index c275dbb..d808ab0 100644 --- a/bitbake/lib/toaster/toastergui/static/css/default.css +++ b/bitbake/lib/toaster/toastergui/static/css/default.css @@ -22,6 +22,9 @@ img.logo { height: 30px; vertical-align: bottom; } /* Increase popovers width to fit commit SHAs */ .popover { max-width: 350px; } +/* Set a limit to popover height to handle long dependency lists */ +.popover-content { max-height: 350px; overflow: scroll; } + /* Increase bottom margin of definition lists inside popovers for the Toaster version information in the top navbar, and also inside the right hand columns of our details pages */ .popover-content dd, .item-info dd { margin-bottom: 15px; } @@ -55,7 +58,7 @@ img.logo { height: 30px; vertical-align: bottom; } #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; } +.dropdown-menu.editcol { padding-left: 10px; min-width: 200px; } 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; } @@ -273,3 +276,6 @@ h2.panel-title { font-size: 30px; } /* Style the wells in the build dashboard */ .dashboard-section h3 { margin-top: 10px; margin-bottom: 20px; } .col-md-4.dashboard-section dd { margin-bottom: 10px; } + +/* Make the help in tables insivisble until you hover over the right cell */ +.hover-help { visibility: hidden; } diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index e4e4f6c..eafe70d 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js @@ -541,9 +541,7 @@ $(document).ready(function() { delay: { show : 300 } }); - // show help bubble only on hover inside tables - $(".hover-help").css("visibility","hidden"); - + // show help bubble on hover inside tables $("table").on("mouseover", "th, td", function () { $(this).find(".hover-help").css("visibility","visible"); }); diff --git a/bitbake/lib/toaster/toastergui/templates/snippets/gitrev_popover.html b/bitbake/lib/toaster/toastergui/templates/snippets/gitrev_popover.html index 281a3bd..c1e3dab 100644 --- a/bitbake/lib/toaster/toastergui/templates/snippets/gitrev_popover.html +++ b/bitbake/lib/toaster/toastergui/templates/snippets/gitrev_popover.html @@ -1,6 +1,6 @@ {% load projecttags %} {% if vcs_ref|is_shaid %} - + {{vcs_ref|truncatechars:10}} {% else %} diff --git a/bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html b/bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html index 5be409c..273437e 100644 --- a/bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html +++ b/bitbake/lib/toaster/toastergui/templates/snippets/pkg_dependencies_popover.html @@ -5,7 +5,7 @@ {% with count_package=package_deps.packages|length %} {% if count_package > 0 %} - {% for dep in package_deps.packages %}
  • {% if extra.add_links %} diff --git a/bitbake/lib/toaster/toastergui/templates/snippets/pkg_revdependencies_popover.html b/bitbake/lib/toaster/toastergui/templates/snippets/pkg_revdependencies_popover.html index 65c2b29..e6ef816 100644 --- a/bitbake/lib/toaster/toastergui/templates/snippets/pkg_revdependencies_popover.html +++ b/bitbake/lib/toaster/toastergui/templates/snippets/pkg_revdependencies_popover.html @@ -5,7 +5,7 @@ {% with count_package=package_deps.packages|length %} {% if count_package > 0 %} - {% for dep in package_deps.packages|dictsort:"package.name" %}
  • {% if extra.add_links %} diff --git a/bitbake/lib/toaster/toastergui/templates/target.html b/bitbake/lib/toaster/toastergui/templates/target.html index 0b2fe99..1924a0d 100644 --- a/bitbake/lib/toaster/toastergui/templates/target.html +++ b/bitbake/lib/toaster/toastergui/templates/target.html @@ -18,7 +18,7 @@ {% block buildinfomain %} {% endblock buildinfomain %} -- 1.9.1