Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id E2142E00E1D; Tue, 24 May 2016 04:56:12 -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 5642EE00CA6 for ; Tue, 24 May 2016 04:53:28 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP; 24 May 2016 04:53:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,359,1459839600"; d="scan'208";a="961194542" Received: from icarus.isw.intel.com ([10.237.224.37]) by orsmga001.jf.intel.com with ESMTP; 24 May 2016 04:53:27 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Tue, 24 May 2016 12:39:46 +0100 Message-Id: <1464090003-23469-90-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 089/106] toaster: layers table Changes for 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: Tue, 24 May 2016 11:56:13 -0000 Make sure the layers table displays properly with Bootstrap 3. Signed-off-by: Belen Barros Pena --- bitbake/lib/toaster/toastergui/static/css/default.css | 8 ++++++-- bitbake/lib/toaster/toastergui/tables.py | 8 ++++---- bitbake/lib/toaster/toastergui/templates/layer_btn.html | 12 ++++++------ 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css index da5f54b..bb71074 100644 --- a/bitbake/lib/toaster/toastergui/static/css/default.css +++ b/bitbake/lib/toaster/toastergui/static/css/default.css @@ -20,7 +20,7 @@ img.logo { height: 30px; vertical-align: bottom; } #new-project-button { margin-right: 0; } /* Increase popovers width to fit commit SHAs */ -.popover { min-width: 350px; } +.popover { max-width: 350px; } /* Increase bottom margin of definition lists inside popovers for the Toaster version information in the top navbar */ .popover-content dd { margin-bottom: 15px; } @@ -78,6 +78,8 @@ tbody > tr > td > .glyphicon-minus-sign { color: #a94442; } .glyphicon-download-alt:hover, .glyphicon-edit:hover { color: #23527c; cursor: pointer; text-decoration: none; } .glyphicon-trash { color: #a94442; } +.btn-danger > .glyphicon-trash, +.btn-danger > .glyphicon-trash:hover { color: #fff; } .glyphicon-trash:hover { color: #843534; cursor: pointer; } /* Set the font size for icons inside headings and lead paragraphs */ @@ -158,7 +160,9 @@ td > .tooltip-inner { padding: 10px; } /* Set sane widths for table columns */ #newcustomimagestable .get_description_or_summary, #imagerecipestable .get_description_or_summary, -#softwarerecipestable .get_description_or_summary { width: 30%; } +#softwarerecipestable .get_description_or_summary, +#machinestable .description, +#layerstable .layer__summary { width: 30%; } /* Override the rather ugly default code styles */ code { color: #333; background-color: transparent; } diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index 337a335..dead0d7 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py @@ -118,7 +118,7 @@ class LayersTable(ToasterTable): {% if data.get_vcs_link_url %} - + {% endif %} ''' @@ -135,7 +135,7 @@ class LayersTable(ToasterTable): {% if data.dirpath and data.get_vcs_dirpath_link_url %} - + {% endif %}''' @@ -166,8 +166,8 @@ class LayersTable(ToasterTable): deps_template = ''' {% with ods=data.dependencies.all%} {% if ods.count %} - {{data.layer.name}} dependencies" - data-content="
    + {{data.layer.name}} dependencies" + data-content="
      {% for i in ods%}
    • {{i.depends_on.layer.name}}
    • {% endfor %} diff --git a/bitbake/lib/toaster/toastergui/templates/layer_btn.html b/bitbake/lib/toaster/toastergui/templates/layer_btn.html index 1be29fe..b2f73eb 100644 --- a/bitbake/lib/toaster/toastergui/templates/layer_btn.html +++ b/bitbake/lib/toaster/toastergui/templates/layer_btn.html @@ -1,17 +1,17 @@ - - -- 1.9.1