From eba4e0f74a13f13b2107959fc93b79d0b1e1cd1f Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Fri, 13 Feb 2015 15:53:34 +0000 Subject: bitbake: toaster: layerdetails use new vcs reference api Use the new layer_version api so that we return the vcs reference whether that be the commit hash, branch name or the upstream branch to which the layer is associated with. [YOCTO #7192] (Bitbake rev: fa6e6d5b18c8c6231ae8ac499d332298f551fd7d) Signed-off-by: Michael Wood Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/layerdetails.html | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'bitbake/lib') diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html index 6d00da3061..465d633062 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html @@ -5,7 +5,7 @@ {% block localbreadcrumb %}
  • All compatible layers
  • - {{layerversion.layer.name}} ({{layerversion.commit|truncatechars:13}}) + {{layerversion.layer.name}} ({{layerversion.get_vcs_reference|truncatechars:13}})
  • {% endblock %} {% block projectinfomain %} @@ -29,7 +29,7 @@ layerVersion : { name : "{{layerversion.layer.name}}", id : {{layerversion.id}}, - commit: "{{layerversion.commit}}", + commit: "{{layerversion.get_vcs_reference}}", inCurrentPrj : {{layer_in_project}}, url : "{% url 'layerdetails' layerversion.id %}", sourceId: {{layerversion.layer_source_id}}, @@ -66,7 +66,7 @@ {% include "layers_dep_modal.html" %}
    @@ -147,10 +147,10 @@ Revision
    - {{layerversion.commit}} + {{layerversion.get_vcs_reference}}
    - +
    @@ -166,8 +166,7 @@ {% for ld in layerversion.dependencies.all %}
  • - - {{ld.depends_on.layer.name}} + {{ld.depends_on.layer.name}}
  • -- cgit v1.2.3-54-g00ecf