Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 388A4E00D94; Thu, 9 Jun 2016 06:37:56 -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 63D6AE00D57 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:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,444,1459839600"; d="scan'208";a="118949895" Received: from icarus.isw.intel.com ([10.237.224.37]) by fmsmga004.fm.intel.com with ESMTP; 09 Jun 2016 06:37:35 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Thu, 9 Jun 2016 14:24:20 +0100 Message-Id: <1465478673-23191-8-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 07/20] toaster: build data Variables 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:56 -0000 Make sure the page showing the variable history displays correctly with Bootstrap 3. Signed-off-by: Belen Barros Pena --- .../lib/toaster/toastergui/static/css/default.css | 26 +++- .../toastergui/templates/basetable_bottom.html | 24 ++-- .../toastergui/templates/basetable_top.html | 135 ++++++++++++--------- .../toaster/toastergui/templates/configvars.html | 79 +++++++----- .../toastergui/templates/filtersnippet.html | 40 +++--- bitbake/lib/toaster/toastergui/views.py | 1 - 6 files changed, 179 insertions(+), 126 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css index d808ab0..fe2c4c2 100644 --- a/bitbake/lib/toaster/toastergui/static/css/default.css +++ b/bitbake/lib/toaster/toastergui/static/css/default.css @@ -25,6 +25,13 @@ img.logo { height: 30px; vertical-align: bottom; } /* Set a limit to popover height to handle long dependency lists */ .popover-content { max-height: 350px; overflow: scroll; } +/* Set a limit to modal dialogs height to handle long variable history */ +[id^="variable-"] .modal-content { max-height: 550px; overflow-y: scroll; } + +/* Make sure long values in variable history do not make the modal dialogs + * scroll horizontally */ +[id^="variable-"] .modal-content p { word-break: break-all; } + /* 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; } @@ -51,18 +58,20 @@ img.logo { height: 30px; vertical-align: bottom; } /* Styles for our table controls */ .form-control[id^="search-input-"], -.form-control[id^="new-search-input-"] { width: 30em; } +.form-control[id^="new-search-input-"], +#search{ width: 30em; } #search-input-selectpackagestable, #search-input-packagestable, -.form-control[id^="no-results-search-input-"]{ width: 20em; } +.form-control[id^="no-results-search-input-"] { width: 20em; } #edit-columns-button { margin-right: 30px; } -.navbar-default[id^="table-chrome-"] { background-color: transparent; } +.navbar-default[id^="table-chrome-"], +#variables .navbar-default { background-color: transparent; } [id^="table-chrome-collapse-"] .navbar-form { margin-left: -15px; } .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; } -[id^="pagination-"] .pagination, +#no-results-special-selectpackagestable .form-inline { margin-top: 20px; } +[id^="pagination-"] .pagination, [id^="pagination-"] .navbar-form { margin-top: 0; } [id^="table-chrome-"] .navbar-form { margin-left: -15px; margin-right: -15px; } [id^="table-chrome-"] .detail-page-contols { padding-left: 0; padding-right: 0; } @@ -208,6 +217,13 @@ td > .tooltip-inner, #recipestable .get_description_or_summary { width: 40%; } #machinestable .name { white-space: nowrap; } #machinestable .description { width: 45%; } +#otable .variable_value, +#otable .file { word-break: break-all; width: 25%; } +[id^="variable-"] .file { word-break: break-all; } + +/* For the tables still not ported to ToasterTables, style the table headings + * that are not sortable */ +th > span.text-muted { font-weight: normal; } /* Override the rather ugly default code styles */ code { color: #333; background-color: transparent; } diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html index 96f405c..7fc3138 100644 --- a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html +++ b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html @@ -2,7 +2,7 @@ -
+
    @@ -20,16 +20,18 @@
  • »
  • {%endif%}
-
- Show rows: - -
+
diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_top.html b/bitbake/lib/toaster/toastergui/templates/basetable_top.html index 6731ff2..61785f0 100644 --- a/bitbake/lib/toaster/toastergui/templates/basetable_top.html +++ b/bitbake/lib/toaster/toastergui/templates/basetable_top.html @@ -159,68 +159,83 @@ - {% include "basetable_bottom.html" %} {% endif %}
@@ -75,7 +86,7 @@ {% for variable in objects %} {% if variable.vhistory.count %} - diff --git a/bitbake/lib/toaster/toastergui/templates/filtersnippet.html b/bitbake/lib/toaster/toastergui/templates/filtersnippet.html index 4c2c53e..9f86eaa 100644 --- a/bitbake/lib/toaster/toastergui/templates/filtersnippet.html +++ b/bitbake/lib/toaster/toastergui/templates/filtersnippet.html @@ -17,25 +17,27 @@ diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 1f908ea..f05677e 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py @@ -898,7 +898,6 @@ def configvars(request, build_id): }, {'name': 'Value', 'qhelp': "The value assigned to the variable", - 'dclass': "span4", }, {'name': 'Set in file', 'qhelp': "The last configuration file that touched the variable value", -- 1.9.1