diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/base.html | 7 | ||||
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/project.html | 3 |
2 files changed, 7 insertions, 3 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, |
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}}; |