summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 4563eaf01a..889b6c64ca 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -2517,6 +2517,21 @@ if True:
2517 } 2517 }
2518 return render(request, template, context) 2518 return render(request, template, context)
2519 2519
2520 @_template_renderer('layerdetails.html')
2521 def layerdetails(request, pid, layerid):
2522 project = Project.objects.get(pk=pid)
2523 layer_version = Layer_Version.objects.get(pk=layerid)
2524
2525 context = { 'project' : project,
2526 'layerversion' : layer_version,
2527 'layerdeps' : { "list": [
2528 [{"id": y.id, "name": y.layer.name} for y in x.depends_on.get_equivalents_wpriority(project)][0] for x in layer_version.dependencies.all()]},
2529 'projectlayers': map(lambda prjlayer: prjlayer.layercommit.id, ProjectLayer.objects.filter(project=project))
2530 }
2531
2532 return context
2533
2534
2520 def get_project_configvars_context(): 2535 def get_project_configvars_context():
2521 # Vars managed outside of this view 2536 # Vars managed outside of this view
2522 vars_managed = { 2537 vars_managed = {