Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 14B7DE00DDF; Tue, 24 May 2016 04:55:47 -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 2FBA1E00C4B for ; Tue, 24 May 2016 04:53:14 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP; 24 May 2016 04:53:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,359,1459839600"; d="scan'208";a="961194425" Received: from icarus.isw.intel.com ([10.237.224.37]) by orsmga001.jf.intel.com with ESMTP; 24 May 2016 04:53:13 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Tue, 24 May 2016 12:39:29 +0100 Message-Id: <1464090003-23469-73-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 072/106] toaster: Fix 'all builds' table content 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:55:47 -0000 Setting the Bootstrap 3 icons and colours, and removing some links from the table data so that we can make clickable items look clickable. Signed-off-by: Belen Barros Pena --- .../lib/toaster/toastergui/static/css/default.css | 14 +++++--- bitbake/lib/toaster/toastergui/tables.py | 42 +++++++++------------- 2 files changed, 26 insertions(+), 30 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css index 137e6f5..b6a584b 100644 --- a/bitbake/lib/toaster/toastergui/static/css/default.css +++ b/bitbake/lib/toaster/toastergui/static/css/default.css @@ -34,12 +34,12 @@ img.logo { height: 30px; vertical-align: bottom; } /* Styles for the help information */ .get-help { color: #CCCCCC; } .get-help:hover { color: #999999; cursor: pointer; } -.get-help-green { color: #468847; } -.get-help-green:hover { color: #347132; cursor: pointer; } +.get-help-green { color: #3c763d; } +.get-help-green:hover { color: #2b542c; cursor: pointer; } .get-help-blue { color: #3A87AD; } .get-help-blue:hover { color: #005580; cursor: pointer; } -.get-help-red { color: #B94A48; } -.get-help-red:hover { color: #943A38; cursor: pointer; } +.get-help-red { color: #a94442; } +.get-help-red:hover { color: #843534; cursor: pointer; } /* Styles for our table controls */ .form-control[id^="search-input-"] { width: 30em; } @@ -65,3 +65,9 @@ thead > tr > th > a.sorted { font-weight: bold; color: #333; } /* In table headings, separate the help bubble from the column heading */ thead > tr > th > .glyphicon-question-sign { margin-right: 5px; } + +/* Style build outcome and download icons */ +tbody > tr > td > .glyphicon-ok-circle { color: #3c763d; } +tbody > tr > td > .glyphicon-minus-sign { color: #a94442; } +.glyphicon-download-alt { color: #337ab7; } +.glyphicon-download-alt:hover { color: #23527c; } diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index 29b68de..a5acdb6 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py @@ -1109,19 +1109,17 @@ class BuildsTable(ToasterTable): def setup_columns(self, *args, **kwargs): outcome_template = ''' - - {% if data.outcome == data.SUCCEEDED %} - - {% elif data.outcome == data.FAILED %} - - {% endif %} - + {% if data.outcome == data.SUCCEEDED %} + + {% elif data.outcome == data.FAILED %} + + {% endif %} {% if data.cooker_log_path %}   - + {% endif %} ''' @@ -1136,27 +1134,21 @@ class BuildsTable(ToasterTable): ''' machine_template = ''' - - {{data.machine}} - + {{data.machine}} ''' started_on_template = ''' - - {{data.started_on | date:"d/m/y H:i"}} - + {{data.started_on | date:"d/m/y H:i"}} ''' completed_on_template = ''' - - {{data.completed_on | date:"d/m/y H:i"}} - + {{data.completed_on | date:"d/m/y H:i"}} ''' failed_tasks_template = ''' {% if data.failed_tasks.count == 1 %} - + {{data.failed_tasks.0.recipe.name}}.{{data.failed_tasks.0.task_name}} @@ -1167,14 +1159,14 @@ class BuildsTable(ToasterTable): {% elif data.failed_tasks.count > 1 %} - {{data.failed_tasks.count}} tasks + {{data.failed_tasks.count}} tasks {% endif %} ''' errors_template = ''' {% if data.errors_no %} - + {{data.errors_no}} error{{data.errors_no|pluralize}} {% endif %} @@ -1182,7 +1174,7 @@ class BuildsTable(ToasterTable): warnings_template = ''' {% if data.warnings_no %} - + {{data.warnings_no}} warning{{data.warnings_no|pluralize}} {% endif %} @@ -1197,9 +1189,7 @@ class BuildsTable(ToasterTable): image_files_template = ''' {% if data.outcome == extra.Build.SUCCEEDED %} - {{data.get_image_file_extensions}} - {% endif %} ''' @@ -1417,10 +1407,10 @@ class AllBuildsTable(BuildsTable): {{data.project.name}} {% if data.project.is_default %} - + running" style="visibility: hidden;"> {% endif %} ''' -- 1.9.1