Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 2443DE00B2F; Wed, 14 Oct 2015 03:29:03 -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 * [192.55.52.88 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A7A36E00A70 for ; Wed, 14 Oct 2015 03:28:59 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 14 Oct 2015 03:28:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,681,1437462000"; d="scan'208";a="792398693" Received: from irsmsx101.ger.corp.intel.com ([163.33.3.153]) by orsmga001.jf.intel.com with ESMTP; 14 Oct 2015 03:28:58 -0700 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.151]) by IRSMSX101.ger.corp.intel.com ([169.254.1.33]) with mapi id 14.03.0248.002; Wed, 14 Oct 2015 11:28:57 +0100 From: "Barros Pena, Belen" To: "Smith, Elliot" , Belen Barros Pena Thread-Topic: [Toaster] [PATCH] toastergui: Improve directory structure layout Thread-Index: AQHRAE8eh7YA/goWJkWW3nQqrZfa255qw/QAgAARsYA= Date: Wed, 14 Oct 2015 10:28:56 +0000 Message-ID: References: <1444146745-3898-1-git-send-email-belen.barros.pena@linux.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.5.6.150930 x-originating-ip: [10.237.224.32] MIME-Version: 1.0 Cc: "toaster@yoctoproject.org" Subject: Re: [PATCH] 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 10:29:03 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable On 14/10/2015 11:25, "toaster-bounces@yoctoproject.org on behalf of Smith, Elliot" wrote: >On 6 October 2015 at 16:52, Belen Barros Pena > wrote: > >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 >--- > .../toaster/toastergui/static/js/jquery.treetable.js | 2 +- > bitbake/lib/toaster/toastergui/templates/dirinfo.html | 18 >+++++++++++------- > 2 files changed, 12 insertions(+), 8 deletions(-) > >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..c5e586e 100644 >--- a/bitbake/lib/toaster/toastergui/templates/dirinfo.html >+++ b/bitbake/lib/toaster/toastergui/templates/dirinfo.html >@@ -103,12 +103,16 @@ > name +=3D ''; > } > else { >- name =3D ''; > if (o.link_to =3D=3D null) { >- name +=3D ''; >+ namespan =3D 2; >+ if (o.package =3D=3D null) { >+ namespan =3D 3; >+ } >+ var colspan =3D 'colspan=3D"' + namespan + '"'; >+ name =3D '= '; > } > else { >- name +=3D ''; >+ name =3D ''; > } > name +=3D ' ' + >o.name ; > name +=3D ''; >@@ -207,10 +211,10 @@ > Directory / File > Symbolic link to > Source package >- Size >- Permissions >- Owner >- Group >+ Size >+ Permissions >+ Owner >+ Group > > > > >"width" is a deprecated HTML attribute. We should use CSS to define these >instead. Either style=3D"width: 8%;" or in the stylesheet (which is >probably cleaner, but would need extra classes/attributes on the th >elements too). Thanks for the feedback. Will send a v2 Cheers Bel=E9n > > >Elliot > > >=20 > > > > >-- >2.3.8 (Apple Git-58) > >-- >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster > > > > > > > >--=20 >Elliot Smith >Software Engineer >Intel Open Source Technology Centre > > > >