Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 7102DE00DFA; Thu, 18 Aug 2016 11:49:26 -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.45 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-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E442EE00DEA for ; Thu, 18 Aug 2016 11:49:23 -0700 (PDT) Received: by mail-pa0-f45.google.com with SMTP id ti13so8582409pac.0 for ; Thu, 18 Aug 2016 11:49:23 -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=JJsPghPmQo5A3Bkmjb/X87kzAIr0ONZ3nRMxRb0QXmgcWtz8U8pHAlEanoNByJkKfs 1jZMOmMZ1sRT3N4E6bnoxOB3t5SNb7QYTXZ65WREOlTG49OGshJXHYho1j8rqEm3n6Gl yZwfB7IIWQNiIq2K6V8REdVof+rmC/L6Mnyr73m7BpOhStLncQ9EBaGVihDDhm6LpKse S6YE0ObVvOx3tIRlUeAo8qbjsLDROaOiiH8dm0Z9VK0M0nNk1sWFX5AyigCDw1YxbVK8 rsT+kjgWI8RASGOmjHyn9l2/5NV7JM0/jQTj0VHbnxOqzNwQ46fkod4VdfgGPuONN3ws +n8w== 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=eEvsrOyBWKqQkMAeiXu8OX+DmcNstYgV+EBEWZ000MNRnKsVuf/rNbAauG/a18wQwx YGUviNdl0L9vg1QMQ/mHHHV7D6FjtV89xMN5I5VjfZQ37VAwxOftOYFbS7vqpkr+AaM+ 3dax6daZTbhA7/Uzp5Z5wr7o7GpgyxceQ3mj3fZ8tQbBkXO5bkKpRv2+p2wH0UHb7mb7 aEseVUEsd1Xqm+w7tVwNaFrctp3vdbQtkQWHNqQxHLSCKMyL7LiqyWuH4UO8Qh/vGtiB P/3LtCuHMELIBmFdQ7kWghFsEaEA6RNbkWh9KZVyGhse2NuO9+Grm3s9mX80lllYWmSD Kdew== X-Gm-Message-State: AEkoousy6QXoG6Xl3LAbl0Ed7yvvkwpxsWTBTkK8pwIUekAH0RM2JHHipeIOStLfpzeLweUF X-Received: by 10.66.2.135 with SMTP id 7mr6608571pau.136.1471546162653; Thu, 18 Aug 2016 11:49:22 -0700 (PDT) Received: from orion.ger.corp.intel.com (fmdmzpr02-ext.fm.intel.com. [192.55.55.37]) by smtp.gmail.com with ESMTPSA id w64sm496095pfb.93.2016.08.18.11.49.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Aug 2016 11:49:22 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 18 Aug 2016 19:49:06 +0100 Message-Id: <1471546154-20891-2-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1471546154-20891-1-git-send-email-michael.g.wood@intel.com> References: <1471546154-20891-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH v2 1/9] 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 18:49:26 -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