summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/base.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/base.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/base.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/base.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html
index 7fee26eb42..6cdc5e8110 100644
--- a/bitbake/lib/toaster/toastergui/templates/base.html
+++ b/bitbake/lib/toaster/toastergui/templates/base.html
@@ -1,5 +1,6 @@
1<!DOCTYPE html> 1<!DOCTYPE html>
2{% load static %} 2{% load static %}
3{% load projecttags %}
3<html lang="en"> 4<html lang="en">
4 <head> 5 <head>
5 <title>{% if objectname %} {{objectname|title}} - {% endif %}Toaster</title> 6 <title>{% if objectname %} {{objectname|title}} - {% endif %}Toaster</title>
@@ -33,8 +34,10 @@
33 htmlUrl : "{% static 'html/' %}", 34 htmlUrl : "{% static 'html/' %}",
34 projectsUrl : "{% url 'all-projects' %}", 35 projectsUrl : "{% url 'all-projects' %}",
35 {% if project.id %} 36 {% if project.id %}
36 projectPageUrl : "{% url 'project' project.id %}", 37 projectPageUrl : {% url 'project' project.id as purl%}{{purl|json}},
37 projectName : "{{project.name}}", 38 projectName : {{project.name|json}},
39 projectTargetsUrl: {% url 'projectavailabletargets' project.id as paturl%}{{paturl|json}},
40 projectBuildsUrl: {% url 'projectbuilds' project.id as pburl %}{{pburl|json}},
38 projectId : {{project.id}}, 41 projectId : {{project.id}},
39 {% else %} 42 {% else %}
40 projectPageUrl : undefined, 43 projectPageUrl : undefined,