Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 03F0EE00D03; Thu, 18 Aug 2016 02:42:29 -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=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.43 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id AB508E00CAF for ; Thu, 18 Aug 2016 02:42:26 -0700 (PDT) Received: by mail-pa0-f43.google.com with SMTP id i5so4990532pat.2 for ; Thu, 18 Aug 2016 02:42:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cc1sR/UtHeK+fSK2PBZ+fBqECVTRz4yTDs+R0DgYMEY=; b=vQIoVSIE+Tgm23FcBK8HhbCVBtRXLKNvX52iVfOGJvX0ybi1FaVm4zwL1bMKCpZ4td dNJAxyJ00TZI6F3ru147kfXPP7eXBBIF1lkNwxItAK6fB1lBCokJGiGdEslnZU7hfk9C NTlmYKMaVbN2pNGXrbjuxIrUd3Q10H55d2M15hTeOOR2x6Qo79ReM6MwTnNcAsQkGios qBd4NyVypiLJ27r/0vR9awl0koDD8RDQJ4p6RsE09K4fLk9jhyRKPAMO82lL9KMAARYp DKEBVyViyV3nSp9HfNdAKRLTzDZhbcQ85bbZk+/mhG3b0Zer+NoQH/hnsZo0k9AzW5aB efZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cc1sR/UtHeK+fSK2PBZ+fBqECVTRz4yTDs+R0DgYMEY=; b=MbfRG4KHRuC/33ZklAgXXoq8M3T99EmI3nvQvynm+G5dXz9q8Mr/bQYeSxZtkQ6n4S ftvXdFBb6pAyDrbNnnY50inKmJHVaTC//rRRF34VpuKtoV8HCV1Mbt2LNff872/ozhwL yz9CBVC9740MSaS1tGb5S4EfEFrIwNqfCtEpBdkT3zljwqMHPIIS4BX25/ns94AhTQSk BPhmfUkef9gj9HmCbXGm4RaFrB3socWmJm6IuJAWNoJtg5vrDpqa1U7I+02P30m/EJmK moxJK54KRnZfRjXSz0d9RP7MoHVwV714r8aE6ItSEloDZ7vGFamlFzpBhRZFe5w8vY+q 3brw== X-Gm-Message-State: AEkoousxZUQo3o3eo/tKEARx0Q3RpEIDMsNDwrHhvfv/JxWhnJdvDtsFdWeoOchGrBqGixFD X-Received: by 10.66.153.163 with SMTP id vh3mr2510861pab.0.1471513345876; Thu, 18 Aug 2016 02:42:25 -0700 (PDT) Received: from orion.ger.corp.intel.com ([192.55.54.44]) by smtp.gmail.com with ESMTPSA id e10sm2517365pay.39.2016.08.18.02.42.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Aug 2016 02:42:25 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 18 Aug 2016 10:42:10 +0100 Message-Id: <1471513336-13789-2-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1471513336-13789-1-git-send-email-michael.g.wood@intel.com> References: <1471513336-13789-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 1/7] toaster: add switch of git and not-git layers imported 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, 18 Aug 2016 09:42:29 -0000 From: Sujith H This patch updates the layerdetails html file to add the feature of switching imported layers between directories and git repositories. [YOCTO #9913] Signed-off-by: Sujith H --- .../toaster/toastergui/templates/layerdetails.html | 125 +++++++++++++++++---- 1 file changed, 101 insertions(+), 24 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html index 029c93b..3e13756 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html @@ -84,11 +84,16 @@
@@ -97,6 +102,21 @@
+ + + {% if layerversion.id not in projectlayers %} + + {% else %} + + {% endif %} + +
- - {% if layerversion.id not in projectlayers %} - - {% else %} - - {% endif %} -
-
+ {% if layerversion.layer.local_source_dir %} +

Layer source code location

+
+
+ Path to the layer directory +
+
+ {{layerversion.layer.local_source_dir}} +
+
+ {% else %} +
Repository URL @@ -139,11 +157,9 @@
- - - + {% if layerversion.dirpath %}
Repository subdirectory @@ -158,12 +174,9 @@
- - - - + {% endif %}
Git revision @@ -174,11 +187,75 @@
- - - +
+ {% endif %} + {% if layerversion.layer_source == layer_source.TYPE_IMPORTED %} + + {% endif %} + +
Layer dependencies -- 2.7.4