summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/templates/base.html
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-06-08 18:33:44 +0100
committerAlexandru DAMIAN <alexandru.damian@intel.com>2015-06-10 15:31:12 +0100
commita5bc29083d4f85a5695f3f62d5badb783c6f7224 (patch)
tree3ad2b07120e565e9a7dfa07692e5007561b29b81 /lib/toaster/toastergui/templates/base.html
parent33d2b87aca667d72262a3928deaf35414b46a7c1 (diff)
downloadbitbake-a5bc29083d4f85a5695f3f62d5badb783c6f7224.tar.gz
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 Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Diffstat (limited to 'lib/toaster/toastergui/templates/base.html')
-rw-r--r--lib/toaster/toastergui/templates/base.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/toaster/toastergui/templates/base.html b/lib/toaster/toastergui/templates/base.html
index 7fee26eb4..6cdc5e811 100644
--- a/lib/toaster/toastergui/templates/base.html
+++ b/lib/toaster/toastergui/templates/base.html
@@ -1,5 +1,6 @@
<!DOCTYPE html>
{% load static %}
+{% load projecttags %}
<html lang="en">
<head>
<title>{% if objectname %} {{objectname|title}} - {% endif %}Toaster</title>
@@ -33,8 +34,10 @@
htmlUrl : "{% static 'html/' %}",
projectsUrl : "{% url 'all-projects' %}",
{% if project.id %}
- projectPageUrl : "{% url 'project' project.id %}",
- projectName : "{{project.name}}",
+ projectPageUrl : {% url 'project' project.id as purl%}{{purl|json}},
+ projectName : {{project.name|json}},
+ projectTargetsUrl: {% url 'projectavailabletargets' project.id as paturl%}{{paturl|json}},
+ projectBuildsUrl: {% url 'projectbuilds' project.id as pburl %}{{pburl|json}},
projectId : {{project.id}},
{% else %}
projectPageUrl : undefined,