aboutsummaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/templates/package_detail_base.html
diff options
context:
space:
mode:
authorSujith H <sujith.h@gmail.com>2016-07-29 07:15:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-11 00:08:18 +0100
commit6978f65af4eabe91f65a6766799578c84a0988aa (patch)
tree727e76b59ba7a52a50af84dd3dd7c711d912860e /lib/toaster/toastergui/templates/package_detail_base.html
parent1b0934b45d3704de604405826de9fc1da51ceae1 (diff)
downloadbitbake-contrib-6978f65af4eabe91f65a6766799578c84a0988aa.tar.gz
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 <sujith.h@gmail.com>
Diffstat (limited to 'lib/toaster/toastergui/templates/package_detail_base.html')
-rw-r--r--lib/toaster/toastergui/templates/package_detail_base.html18
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/toaster/toastergui/templates/package_detail_base.html b/lib/toaster/toastergui/templates/package_detail_base.html
index bce7fb2fa..66f8e7f06 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 %}
</dd>
- {% if package.recipe.layer_version.branch %}
<dt>
Layer branch
<span class="glyphicon glyphicon-question-sign get-help" title="The Git branch of the layer providing the recipe that builds this package"></span>
+ {%if package.recipe.layer_version.layer.local_source_dir %}
+ <dd>
+ <span class="text-muted">Not applicable</span>
+ <span class="glyphicon glyphicon-question-sign get-help" title="The source code of {{package.recipe.layer_version.layer.name}} is not in a Git repository, so there is no branch associated with it"></span>
+ </dd>
+ {% endif %}
</dt>
+ {% if not package.recipe.layer_version.layer.local_source_dir %}
<dd>{{package.recipe.layer_version.branch}}</dd>
- {% endif %}
+ {% endif %}
<dt>
Layer commit
<span class="glyphicon glyphicon-question-sign get-help" title="The Git commit of the layer providing the recipe that builds this package"></span>
+ {%if package.recipe.layer_version.layer.local_source_dir %}
+ <dd>
+ <span class="text-muted">Not applicable</span>
+ <span class="glyphicon glyphicon-question-sign get-help" title="The source code of {{package.recipe.layer_version.layer.name}} is not in a Git repository, so there is no commit associated with it"></span>
+ </dd>
+ {% endif %}
</dt>
+ {% if not package.recipe.layer_version.layer.local_source_dir %}
<dd class="iscommit">{{package.recipe.layer_version.commit}}</dd>
+ {% endif %}
</dl>
<div> <!-- end well -->