Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id E2713E00DFA; Tue, 24 May 2016 04:55:49 -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 6FCC0E00B11 for ; Tue, 24 May 2016 04:53:16 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP; 24 May 2016 04:53:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,359,1459839600"; d="scan'208";a="961194449" Received: from icarus.isw.intel.com ([10.237.224.37]) by orsmga001.jf.intel.com with ESMTP; 24 May 2016 04:53:15 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Tue, 24 May 2016 12:39:32 +0100 Message-Id: <1464090003-23469-76-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 075/106] toaster: Configuration page 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: Tue, 24 May 2016 11:55:49 -0000 Make sure the project configuration page looks nice with Bootstrap 3. Signed-off-by: Belen Barros Pena --- .../lib/toaster/toastergui/static/css/default.css | 54 ++++++++++++++++++-- .../lib/toaster/toastergui/static/js/libtoaster.js | 4 +- .../toaster/toastergui/static/js/projectpage.js | 4 +- .../toastergui/templates/baseprojectpage.html | 2 +- .../lib/toaster/toastergui/templates/project.html | 59 +++++++++------------- .../toastergui/templates/projecttopbar.html | 43 ++++++++-------- 6 files changed, 102 insertions(+), 64 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css index 3790f9c..795fe41 100644 --- a/bitbake/lib/toaster/toastergui/static/css/default.css +++ b/bitbake/lib/toaster/toastergui/static/css/default.css @@ -68,8 +68,56 @@ 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 */ +/* Style build outcome in tables, download, remove and change 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; } +.glyphicon-download-alt, +.glyphicon-edit { color: #337ab7; } +.glyphicon-download-alt:hover, +.glyphicon-edit:hover { color: #23527c; cursor: pointer } +.glyphicon-trash { color: #a94442; } +.glyphicon-trash:hover { color: #843534; cursor: pointer; } + +/* Set the font size for icons inside headings and lead paragraphs */ +h1 > .glyphicon-edit, +p.lead .glyphicon { font-size: 16px; } + +h3 > .glyphicon-question-sign { font-size: 14px; } + +/* Create a class for wells without background colour */ +.well-transparent { background-color: transparent; } + +/* Create a class for the left navigation headers */ +.nav-header { display: block; font-size: 12px; font-weight: bold; line-height: 20px; color: #999; text-transform: uppercase; margin-top: 20px !important; margin-bottom: 15px; padding-left: 15px; } + +/* Increase the tabs padding and margin in the project pages to fit the build form and the main content */ +#project-topbar .nav-tabs > li > a { padding: 15px; } +#project-topbar { margin-bottom: 20px; } + +/* Style the project name change form in the project pages */ +#project-name-change-input { width: 20em; } + +/* Style the build form in the project pages */ +#project-topbar .input-lg { width: 18em; } +#project-topbar form .glyphicon { top: 15px; right: 4px; } +#build-button { padding: 10px 30px; } + +/* Style the form links in the project page (all machines, all layers, etc) */ +.form-link { margin-top: 10px; } + +/* Style the most built recipes list in the project page */ +#freq-build-list .checkbox input[type="checkbox"] { position: relative; margin: 0 10px 0 0; vertical-align: middle; } +#freq-build-list { margin-top: 20px; } +#freq-build-list label { padding-left: 0; } +#freq-build-btn { margin-top: 10px; } +#no-most-built { margin-top: 20px; } + +/* Style the layers section in the project page */ +#layer-container .form-inline { margin-top: 20px; } +#layer-add-input { width: 17em; } +#layers-in-project-list { margin-top: 20px; } +#layers-in-project-list > li { line-height: 38px; } +#layers-in-project-list .glyphicon-trash { font-size: 16px; margin-left: 7px; } +#layers-in-project-list .tooltip-inner { max-width: 600px; } +#no-layers-in-project { margin-top: 20px; } +#no-layers-in-project ul { margin-top: 10px; } diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index fad1429..c00c5ab 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js @@ -557,8 +557,8 @@ $(document).ready(function() { // show task type and outcome in task details pages $(".task-info").tooltip({ container: 'body', html: true, delay: {show: 200}, placement: 'right' }); - // initialise the tooltips for the icon-pencil icons - $(".icon-pencil").tooltip({ container: 'body', html: true, delay: {show: 400}, title: "Change" }); + // initialise the tooltips for the edit icons + $(".glyphicon-edit").tooltip({ container: 'body', html: true, delay: {show: 400}, title: "Change" }); // initialise the tooltips for the download icons $(".icon-download-alt").tooltip({ container: 'body', html: true, delay: { show: 200 } }); diff --git a/bitbake/lib/toaster/toastergui/static/js/projectpage.js b/bitbake/lib/toaster/toastergui/static/js/projectpage.js index 3013416..9cbed2b 100644 --- a/bitbake/lib/toaster/toastergui/static/js/projectpage.js +++ b/bitbake/lib/toaster/toastergui/static/js/projectpage.js @@ -145,7 +145,7 @@ function projectPageInit(ctx) { for (var i in layers){ var layerObj = layers[i]; - var projectLayer = $("
  • "); + var projectLayer = $("
  • "); projectLayer.data('layer', layerObj); projectLayer.children("span").tooltip(); @@ -208,7 +208,7 @@ function projectPageInit(ctx) { } for (var i in recipes){ - var freqTargetCheck = $('
  • '); + var freqTargetCheck = $('
  • '); freqTargetCheck.find(".freq-target-name").text(recipes[i]); freqTargetCheck.find("input").val(recipes[i]); freqTargetCheck.click(function(){ diff --git a/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html b/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html index 483a485..b3b6f1c 100644 --- a/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html +++ b/bitbake/lib/toaster/toastergui/templates/baseprojectpage.html @@ -24,7 +24,7 @@ $(document).ready(function(){
    -
    {% if not project.is_default %}
    -
    -- 1.9.1