summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/project.html
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-06-08 18:33:44 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-12 00:01:49 +0100
commit58cd4a14ea81b72dcd9679608e5e2231ec3d3631 (patch)
tree15cea3afb06ad5ae448fbf2fb65bfb4cb7535308 /bitbake/lib/toaster/toastergui/templates/project.html
parent27f5137cd6143b523e9aea8eeba406337aa935c4 (diff)
downloadpoky-58cd4a14ea81b72dcd9679608e5e2231ec3d3631.tar.gz
bitbake: toaster: fixes after refactoring
This patch fixes issues brought in by refactoring: * the New Build button is working with pre-set projects * the xhr_datatypeahead is exposed for calls that are not mapable to the REST objects * a new table returing recipes provided by layers currently selected in the project is used to provide recipe suggestions * the field names in json are switched from "list" to "rows" as to maintain consistency with the ToasterTables * the "value" field in xhr_ calls is now named "search" to maintain consistency (Bitbake rev: a5bc29083d4f85a5695f3f62d5badb783c6f7224) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/project.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/project.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/project.html b/bitbake/lib/toaster/toastergui/templates/project.html
index 7225363c01..bca703a162 100644
--- a/bitbake/lib/toaster/toastergui/templates/project.html
+++ b/bitbake/lib/toaster/toastergui/templates/project.html
@@ -452,9 +452,10 @@ angular.element(document).ready(function() {
452 scope.urls.xhr_build = "{% url 'projectbuilds' project.id %}"; 452 scope.urls.xhr_build = "{% url 'projectbuilds' project.id %}";
453 scope.urls.xhr_edit = "{% url 'project' project.id %}?format=json"; 453 scope.urls.xhr_edit = "{% url 'project' project.id %}?format=json";
454 scope.urls.layers = "{% url 'projectlayers' project.id %}"; 454 scope.urls.layers = "{% url 'projectlayers' project.id %}";
455 scope.urls.targets = "{% url 'projecttargets' project.id %}"; 455 scope.urls.targets = "{% url 'projectavailabletargets' project.id %}";
456 scope.urls.machines = "{% url 'projectmachines' project.id %}"; 456 scope.urls.machines = "{% url 'projectmachines' project.id %}";
457 scope.urls.importlayer = "{% url 'importlayer' project.id %}"; 457 scope.urls.importlayer = "{% url 'importlayer' project.id %}";
458 scope.urls.xhr_datatypeahead = {% url 'xhr_datatypeahead' project.id as xhrdta %}{{xhrdta|json}};
458 scope.project = {{prj|json}}; 459 scope.project = {{prj|json}};
459 scope.builds = {{builds|json}}; 460 scope.builds = {{builds|json}};
460 scope.layers = {{layers|json}}; 461 scope.layers = {{layers|json}};