From 875770daf7127a002110a30cd2caaf5ba2965cd6 Mon Sep 17 00:00:00 2001 From: Sujith H Date: Fri, 29 Jul 2016 07:15:24 +0000 Subject: [PATCH] bitbake: toaster: update package detail page Update package details pages layer branch and layer commit section for locally imported layers. We add Not applicable to them along with a helper text, which helps user understand why its not applicable to those layers. [YOCO #9911] (Bitbake rev: 6978f65af4eabe91f65a6766799578c84a0988aa) Signed-off-by: Sujith H Signed-off-by: Richard Purdie --- .../templates/package_detail_base.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/package_detail_base.html b/bitbake/lib/toaster/toastergui/templates/package_detail_base.html index bce7fb2fa6..66f8e7f069 100644 --- a/bitbake/lib/toaster/toastergui/templates/package_detail_base.html +++ b/bitbake/lib/toaster/toastergui/templates/package_detail_base.html @@ -133,19 +133,33 @@ {% endcomment %} {% endif %} - {% if package.recipe.layer_version.branch %}
Layer branch + {%if package.recipe.layer_version.layer.local_source_dir %} +
+ Not applicable + +
+ {% endif %} + {% if not package.recipe.layer_version.layer.local_source_dir %}
{{package.recipe.layer_version.branch}}
- {% endif %} + {% endif %}
Layer commit + {%if package.recipe.layer_version.layer.local_source_dir %} +
+ Not applicable + +
+ {% endif %} + {% if not package.recipe.layer_version.layer.local_source_dir %}
{{package.recipe.layer_version.commit}}
+ {% endif %}