From 35f7faabff17ca577fdd2e84bb25125047f66345 Mon Sep 17 00:00:00 2001 From: Sujith H Date: Fri, 29 Jul 2016 10:42:30 +0000 Subject: [PATCH] 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] Signed-off-by: Sujith H --- lib/toaster/toastergui/templates/recipe.html | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/lib/toaster/toastergui/templates/recipe.html b/lib/toaster/toastergui/templates/recipe.html index 97e7b99842d..bf2cd7169ac 100644 --- a/lib/toaster/toastergui/templates/recipe.html +++ b/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 %}