From: Sujith H Date: Fri, 29 Jul 2016 07:15:24 +0000 (+0000) Subject: toaster: update package detail page X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6978f65af4eabe91f65a6766799578c84a0988aa;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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] Signed-off-by: Sujith H --- diff --git a/lib/toaster/toastergui/templates/package_detail_base.html b/lib/toaster/toastergui/templates/package_detail_base.html index bce7fb2fa6d..66f8e7f0692 100644 --- a/lib/toaster/toastergui/templates/package_detail_base.html +++ b/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 %}