From d9b5d11664e849a7cbb1894062f45017a1c5998c Mon Sep 17 00:00:00 2001 From: Sujith H Date: Mon, 22 Aug 2016 16:42:28 +0100 Subject: [PATCH] bitbake: toaster: add switch of git and not-git layers imported This patch updates the layerdetails html file to add the feature of switching imported layers between directories and git repositories. [YOCTO #9913] (Bitbake rev: 70319eb690a056b41b7e91d79560067edd623ee1) Signed-off-by: Sujith H Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- .../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 029c93b978..3e1375617d 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