Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 0909EE00A38; Wed, 14 Oct 2015 04:41:14 -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 6BF48E007FE for ; Wed, 14 Oct 2015 04:41:12 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 14 Oct 2015 04:41:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,681,1437462000"; d="scan'208";a="580528966" Received: from bbarrosp-mac03.isw.intel.com ([10.237.224.32]) by FMSMGA003.fm.intel.com with ESMTP; 14 Oct 2015 04:41:11 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Wed, 14 Oct 2015 12:41:05 +0100 Message-Id: <1444822865-38071-1-git-send-email-belen.barros.pena@linux.intel.com> X-Mailer: git-send-email 2.3.8 (Apple Git-58) Subject: [PATCH] [v2] toastergui: Improve directory structure layout 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: Wed, 14 Oct 2015 11:41:14 -0000 From: Belen Barros Pena File names in the directory structure often wrap due to big indenting for nested files and directories, unnecessary width in certain columns, and not using colspan when the symlink and package cells are empty. The wrapping makes the table harder to read. This patch reduces the amount of indenting, limits the width of the 'Size', 'Permissions', 'Owner' and 'Group' columns, and sets colspan to use the white space of the symlink and package names when empty. Signed-off-by: Belen Barros Pena --- bitbake/lib/toaster/toastergui/static/css/default.css | 4 ++++ .../toaster/toastergui/static/js/jquery.treetable.js | 2 +- bitbake/lib/toaster/toastergui/templates/dirinfo.html | 18 +++++++++++------- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css index cce3e31..06d9976 100644 --- a/bitbake/lib/toaster/toastergui/static/css/default.css +++ b/bitbake/lib/toaster/toastergui/static/css/default.css @@ -164,6 +164,10 @@ table { table-layout: fixed; word-wrap: break-word; } /* Remove bottom margin for forms inside modal dialogs */ #dependencies-modal-form { margin-bottom: 0px; } +/* Custom column widths */ +.narrow-col { width: 8%; } +.medium-col { width: 12%; } + /* Configuration styles */ .icon-trash { color: #B94A48; font-size: 16px; padding-left: 5px; } .icon-trash:hover { color: #943A38; text-decoration: none; cursor: pointer; } diff --git a/bitbake/lib/toaster/toastergui/static/js/jquery.treetable.js b/bitbake/lib/toaster/toastergui/static/js/jquery.treetable.js index 42e7427..794b902 100644 --- a/bitbake/lib/toaster/toastergui/static/js/jquery.treetable.js +++ b/bitbake/lib/toaster/toastergui/static/js/jquery.treetable.js @@ -421,7 +421,7 @@ columnElType: "td", // i.e. 'td', 'th' or 'td,th' expandable: false, expanderTemplate: " ", - indent: 19, + indent: 10, indenterTemplate: "", initialState: "collapsed", nodeIdAttr: "ttId", // maps to data-tt-id diff --git a/bitbake/lib/toaster/toastergui/templates/dirinfo.html b/bitbake/lib/toaster/toastergui/templates/dirinfo.html index a5bc481..7819894 100644 --- a/bitbake/lib/toaster/toastergui/templates/dirinfo.html +++ b/bitbake/lib/toaster/toastergui/templates/dirinfo.html @@ -103,12 +103,16 @@ name += ''; } else { - name = ''; if (o.link_to == null) { - name += ''; + namespan = 2; + if (o.package == null) { + namespan = 3; + } + var colspan = 'colspan="' + namespan + '"'; + name = ''; } else { - name += ''; + name = ''; } name += ' ' + o.name; name += ''; @@ -207,10 +211,10 @@ Directory / File Symbolic link to Source package - Size - Permissions - Owner - Group + Size + Permissions + Owner + Group -- 2.3.8 (Apple Git-58)