From f5acb4213ba319e5dc784616dedec9d2896224ca Mon Sep 17 00:00:00 2001 From: Sujith H Date: Fri, 29 Jul 2016 10:42:30 +0000 Subject: [PATCH] bitbake: toaster: update recipe details page Update Layer branch and Layer commit in recipe details page. For local layer imported from toaster these fields are not applicable. [YOCO #9911] (Bitbake rev: 35f7faabff17ca577fdd2e84bb25125047f66345) Signed-off-by: Sujith H Signed-off-by: Richard Purdie --- .../toaster/toastergui/templates/recipe.html | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/recipe.html b/bitbake/lib/toaster/toastergui/templates/recipe.html index 97e7b99842..bf2cd7169a 100644 --- a/bitbake/lib/toaster/toastergui/templates/recipe.html +++ b/bitbake/lib/toaster/toastergui/templates/recipe.html @@ -69,21 +69,37 @@ Recipe file
{{object.file_path}} {% if object.pathflags %}({{object.pathflags}}){% endif %}
- {% if layer_version.branch %}
Layer branch
+ {% if layer_version.layer.local_source_dir %} +
+ Not applicable + +
+ {% else %}
{{layer_version.branch}}
- {% endif %} + {% endif %}
Layer commit
+ {% if layer_version.layer.local_source_dir %} +
+ Not applicable + +
+ {% else %}
{{layer_version.commit}}
+ {% endif %} {% if object.provides_set.all %}