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 <sujith.h@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
3a5039949a
commit
875770daf7
|
@ -133,19 +133,33 @@
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</dd>
|
</dd>
|
||||||
{% if package.recipe.layer_version.branch %}
|
|
||||||
<dt>
|
<dt>
|
||||||
Layer branch
|
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>
|
<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>
|
</dt>
|
||||||
|
{% if not package.recipe.layer_version.layer.local_source_dir %}
|
||||||
<dd>{{package.recipe.layer_version.branch}}</dd>
|
<dd>{{package.recipe.layer_version.branch}}</dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<dt>
|
<dt>
|
||||||
Layer commit
|
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>
|
<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>
|
</dt>
|
||||||
|
|
||||||
|
{% if not package.recipe.layer_version.layer.local_source_dir %}
|
||||||
<dd class="iscommit">{{package.recipe.layer_version.commit}}</dd>
|
<dd class="iscommit">{{package.recipe.layer_version.commit}}</dd>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
<div> <!-- end well -->
|
<div> <!-- end well -->
|
||||||
|
|
Loading…
Reference in New Issue