summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-06-08 18:41:46 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-12 00:01:48 +0100
commit4a2a057130e877eae96d726bc86c6b9f48ed1ca3 (patch)
tree2cf8147a96e976333627cc52e7089b62e4748083 /bitbake/lib/toaster/toastergui/templates
parentb1c91d06e0262e886154129fb1b6b4a12e3fc5fe (diff)
downloadpoky-4a2a057130e877eae96d726bc86c6b9f48ed1ca3.tar.gz
bitbake: toastergui: remove xhr_projectedit and xhr_projectinfo URLs
This patch removes the xhr_projectedit and xhr_projectinfo URLs in favour of REST calls to the Project page. The project page takes now the POST requests to modify project settings. All usages of removed URLs are now changed to point to the project page, using the json format. The interface call specs have not modified. (Bitbake rev: 6ad3078bd2be1a8cda99040acaa9bb81d77f0013) 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')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/base.html3
-rw-r--r--bitbake/lib/toaster/toastergui/templates/project.html2
2 files changed, 1 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html
index e10dc11673..5d51bc3c95 100644
--- a/bitbake/lib/toaster/toastergui/templates/base.html
+++ b/bitbake/lib/toaster/toastergui/templates/base.html
@@ -34,13 +34,11 @@
34 projectsUrl : "{% url 'all-projects' %}", 34 projectsUrl : "{% url 'all-projects' %}",
35 {% if project.id %} 35 {% if project.id %}
36 xhrProjectDataTypeaheadUrl : "{% url 'xhr_datatypeahead' project.id %}", 36 xhrProjectDataTypeaheadUrl : "{% url 'xhr_datatypeahead' project.id %}",
37 xhrProjectEditUrl : "{% url 'xhr_projectedit' project.id %}",
38 projectPageUrl : "{% url 'project' project.id %}", 37 projectPageUrl : "{% url 'project' project.id %}",
39 projectName : "{{project.name}}", 38 projectName : "{{project.name}}",
40 projectId : {{project.id}}, 39 projectId : {{project.id}},
41 {% else %} 40 {% else %}
42 xhrProjectDataTypeaheadUrl : undefined, 41 xhrProjectDataTypeaheadUrl : undefined,
43 xhrProjectEditUrl : undefined,
44 projectPageUrl : undefined, 42 projectPageUrl : undefined,
45 projectName : undefined, 43 projectName : undefined,
46 projectId : undefined, 44 projectId : undefined,
@@ -53,7 +51,6 @@
53 $(document).ready(function () { 51 $(document).ready(function () {
54 /* Vars needed for base.js */ 52 /* Vars needed for base.js */
55 var ctx = {}; 53 var ctx = {};
56 ctx.projectInfoUrl = "{% url 'xhr_projectinfo' %}";
57 ctx.numProjects = {{projects|length}}; 54 ctx.numProjects = {{projects|length}};
58 ctx.currentUrl = "{{request.path|escapejs}}"; 55 ctx.currentUrl = "{{request.path|escapejs}}";
59 56
diff --git a/bitbake/lib/toaster/toastergui/templates/project.html b/bitbake/lib/toaster/toastergui/templates/project.html
index 933da4f7da..e598631304 100644
--- a/bitbake/lib/toaster/toastergui/templates/project.html
+++ b/bitbake/lib/toaster/toastergui/templates/project.html
@@ -430,7 +430,7 @@ angular.element(document).ready(function() {
430 scope = angular.element("#main").scope(); 430 scope = angular.element("#main").scope();
431 scope.urls = {}; 431 scope.urls = {};
432 scope.urls.xhr_build = "{% url 'xhr_projectbuild' project.id %}"; 432 scope.urls.xhr_build = "{% url 'xhr_projectbuild' project.id %}";
433 scope.urls.xhr_edit = "{% url 'xhr_projectedit' project.id %}"; 433 scope.urls.xhr_edit = "{% url 'project' project.id %}?format=json";
434 scope.urls.xhr_datatypeahead = "{% url 'xhr_datatypeahead' project.id %}"; 434 scope.urls.xhr_datatypeahead = "{% url 'xhr_datatypeahead' project.id %}";
435 scope.urls.layers = "{% url 'all-layers' project.id %}"; 435 scope.urls.layers = "{% url 'all-layers' project.id %}";
436 scope.urls.targets = "{% url 'all-targets' project.id %}"; 436 scope.urls.targets = "{% url 'all-targets' project.id %}";