bitbake: toaster: improve the display when local dir is added
The helper text gets displayed accordingly when mouse is hovered above the layers. If its a local directory then no more branch is mentioned. Only directory path is mentioned. [YOCTO #9911] (Bitbake rev: c1961c7844cab5b9c9144f3b4946197097f53e17) Signed-off-by: Sujith H <sujith.h@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
331c1c6f0a
commit
b3fa98d449
|
@ -172,7 +172,12 @@ function projectPageInit(ctx) {
|
||||||
|
|
||||||
link.attr("href", layerObj.layerdetailurl);
|
link.attr("href", layerObj.layerdetailurl);
|
||||||
link.text(layerObj.name);
|
link.text(layerObj.name);
|
||||||
link.tooltip({title: layerObj.vcs_url + " | "+ layerObj.vcs_reference, placement: "right"});
|
|
||||||
|
if (layerObj.local_source_dir) {
|
||||||
|
link.tooltip({title: layerObj.local_source_dir, placement: "right"});
|
||||||
|
} else {
|
||||||
|
link.tooltip({title: layerObj.vcs_url + " | "+ layerObj.vcs_reference, placement: "right"});
|
||||||
|
}
|
||||||
|
|
||||||
var trashItem = projectLayer.children("span");
|
var trashItem = projectLayer.children("span");
|
||||||
trashItem.click(function (e) {
|
trashItem.click(function (e) {
|
||||||
|
|
Loading…
Reference in New Issue