Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 1594FE00D79; Thu, 9 Jun 2016 06:37:57 -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 BE7A0E00D5B for ; Thu, 9 Jun 2016 06:37:52 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP; 09 Jun 2016 06:37:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,444,1459839600"; d="scan'208";a="118949899" Received: from icarus.isw.intel.com ([10.237.224.37]) by fmsmga004.fm.intel.com with ESMTP; 09 Jun 2016 06:37:36 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Thu, 9 Jun 2016 14:24:21 +0100 Message-Id: <1465478673-23191-9-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 08/20] toaster: build data Tasks table 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:57 -0000 Make sure the tasks table and all build performance tables display correctly with Bootstrap 3. Signed-off-by: Belen Barros Pena --- bitbake/lib/toaster/toastergui/buildtables.py | 39 +++++++++++----------- .../templates/buildinfo-toastertable.html | 4 +-- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/buildtables.py b/bitbake/lib/toaster/toastergui/buildtables.py index 5d00aa4..b92d405 100644 --- a/bitbake/lib/toaster/toastergui/buildtables.py +++ b/bitbake/lib/toaster/toastergui/buildtables.py @@ -426,9 +426,7 @@ class BuildTasksTable(BuildTablesMixin): '' recipe_version_tmpl =\ - ''\ - '{{data.recipe.version}}'\ - '' + '{{data.recipe.version}}' def task_link_tmpl(val): return ('' - ' ' + ' ' ' {%% endif %%}' - '' + 'title="{{data.get_outcome_help}}">' ) % outcome_tmpl self.add_column(title="Outcome", @@ -483,10 +480,11 @@ class BuildTasksTable(BuildTablesMixin): filter_name="task_outcome", orderable=True) + self.toggle_columns['sstate_result'] = len(self.columns) + self.add_column(title="Cache attempt", static_data_name="sstate_result", - static_data_template=task_link_tmpl( - "{{data.sstate_text}}"), + static_data_template='{{data.sstate_text}}', filter_name="sstate_outcome", orderable=True) @@ -542,6 +540,7 @@ class BuildTimeTable(BuildTasksTable): super(BuildTimeTable, self).setup_columns(**kwargs) self.columns[self.toggle_columns['order']]['hidden'] = True + self.columns[self.toggle_columns['sstate_result']]['hidden'] = True self.columns[self.toggle_columns['elapsed_time']]['hidden'] = False @@ -556,6 +555,7 @@ class BuildCPUTimeTable(BuildTasksTable): super(BuildCPUTimeTable, self).setup_columns(**kwargs) self.columns[self.toggle_columns['order']]['hidden'] = True + self.columns[self.toggle_columns['sstate_result']]['hidden'] = True self.columns[self.toggle_columns['cpu_time_sys']]['hidden'] = False self.columns[self.toggle_columns['cpu_time_user']]['hidden'] = False @@ -571,4 +571,5 @@ class BuildIOTable(BuildTasksTable): super(BuildIOTable, self).setup_columns(**kwargs) self.columns[self.toggle_columns['order']]['hidden'] = True + self.columns[self.toggle_columns['sstate_result']]['hidden'] = True self.columns[self.toggle_columns['disk_io']]['hidden'] = False diff --git a/bitbake/lib/toaster/toastergui/templates/buildinfo-toastertable.html b/bitbake/lib/toaster/toastergui/templates/buildinfo-toastertable.html index 52cc056..eb4c656 100644 --- a/bitbake/lib/toaster/toastergui/templates/buildinfo-toastertable.html +++ b/bitbake/lib/toaster/toastergui/templates/buildinfo-toastertable.html @@ -11,10 +11,10 @@ {% endblock %} {% block buildinfomain %} -
+
{# xhr_table_url is just the current url so leave it blank #} {% with xhr_table_url='' %} -