Return-Path:
Received: by yocto-www.yoctoproject.org (Postfix, from userid 118)
id B9673E00754; Fri, 13 Mar 2015 09:55:19 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
yocto-www.yoctoproject.org
X-Spam-Level:
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW
autolearn=ham version=3.3.1
X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at
http://www.dnswl.org/, low * trust
* [209.85.212.173 listed in list.dnswl.org]
* -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
* [score: 0.0000]
Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com
[209.85.212.173])
by yocto-www.yoctoproject.org (Postfix) with ESMTP id 48A0AE003A8
for ; Fri, 13 Mar 2015 09:55:16 -0700 (PDT)
Received: by wiwh11 with SMTP id h11so7525416wiw.5
for ; Fri, 13 Mar 2015 09:55:15 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:from:to:cc:subject:date:message-id;
bh=ygGn6/DulvTgagMvuj/LPSkiIzrDKEmiUTOd2DR4/RY=;
b=eVGGu13sMo2Ed3WwKt+A4uRUeXNxhL4OSInHBtmwzCWDhHZblh2M/dzbWXYOb6apf6
rVMwX16Ec0etAT/fRBsWmRJqVpXP7Nhi/tVt5S+99ATcXf8N9xGN6rJtjCZLFHHFD/nS
kYRdcH0+3v9+bJ9waK+QrIybUD9GbRPHB7tiBa9sxl26QC1/1gItVJE8zvMwFSH32TqP
8FFKthVhBGcaQJjCYIqZLJU0FooLq5jZbhpyEN258W1vQMJeNCr4/vxCU8MPPse5yVuT
4/JKOUP+GK7mkJ7VvwsdUbhw8+x+IiF6795zEudyeKGBhim9GdOb99bj9H0YR53NGEwg
PWYQ==
X-Gm-Message-State: ALoCoQkavM6+izSSgrmISYbudb2Hx2bGWzQxbZbYblZuwsmXzMoP/7XQuAapudsuFp66tdOod01W
X-Received: by 10.180.102.73 with SMTP id fm9mr101193441wib.12.1426265715619;
Fri, 13 Mar 2015 09:55:15 -0700 (PDT)
Received: from draco.icx.intel.com ([83.217.123.106])
by mx.google.com with ESMTPSA id hl8sm3559499wjb.38.2015.03.13.09.55.14
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
Fri, 13 Mar 2015 09:55:15 -0700 (PDT)
From: Michael Wood
To: toaster@yoctoproject.org
Date: Fri, 13 Mar 2015 16:55:11 +0000
Message-Id: <1426265711-30447-1-git-send-email-michael.g.wood@intel.com>
X-Mailer: git-send-email 2.1.0
Subject: [review-request][PATCH] bitbake: toaster: Project page fix project layers tooltip
X-BeenThere: toaster@yoctoproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Web based interface for BitBake
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-List-Received-Date: Fri, 13 Mar 2015 16:55:19 -0000
Make sure the tooltip for the project page shows correct vcs reference
by using the value of get_vcs_reference and align the tooltip on the
right.
[YOCTO #7155]
Signed-off-by: Michael Wood
---
bitbake/lib/toaster/toastergui/templates/project.html | 2 +-
bitbake/lib/toaster/toastergui/views.py | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/bitbake/lib/toaster/toastergui/templates/project.html b/bitbake/lib/toaster/toastergui/templates/project.html
index 54590ee..15210db 100644
--- a/bitbake/lib/toaster/toastergui/templates/project.html
+++ b/bitbake/lib/toaster/toastergui/templates/project.html
@@ -293,7 +293,7 @@ vim: expandtab tabstop=2
Import layer
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 8034cfc..d770795 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -2131,9 +2131,8 @@ if toastermain.settings.MANAGED:
"giturl": x.layercommit.layer.vcs_url,
"url": x.layercommit.layer.layer_index_url,
"layerdetailurl": reverse("layerdetails", args=(x.layercommit.pk,)),
- # This branch name is actually the release
- "branch" : { "name" : x.layercommit.commit, "layersource" : x.layercommit.up_branch.layer_source.name if x.layercommit.up_branch != None else None}},
- prj.projectlayer_set.all().order_by("id")),
+ "vcs_reference" : x.layercommit.get_vcs_reference() },
+ prj.projectlayer_set.all().order_by("id")),
"targets" : map(lambda x: {"target" : x.target, "task" : x.task, "pk": x.pk}, prj.projecttarget_set.all()),
"freqtargets": freqtargets,
"releases": map(lambda x: {"id": x.pk, "name": x.name, "description":x.description}, Release.objects.all()),
--
2.1.0