summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/base.html
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-06-11 13:14:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-26 09:27:31 +0100
commitb98a2fcab600d74a01b76fe3f9e5249642f2c32b (patch)
tree7a1c4c87872c16ea6c56e73d9d43f921b0e3cfb9 /bitbake/lib/toaster/toastergui/templates/base.html
parent933e4dbb5048ea84c32f2313e6c8e5ca7895fe48 (diff)
downloadpoky-b98a2fcab600d74a01b76fe3f9e5249642f2c32b.tar.gz
bitbake: toaster: fixing undefined variables
This patchset fixes usage of undefined variables in the base page. (Bitbake rev: a9e889af41e1e59c3b426c78ba80e4d49c6c122b) 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.html11
1 files changed, 7 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html
index 9f19c0384c..3f3253d6b2 100644
--- a/bitbake/lib/toaster/toastergui/templates/base.html
+++ b/bitbake/lib/toaster/toastergui/templates/base.html
@@ -29,17 +29,18 @@
29{% endif %} 29{% endif %}
30<script> 30<script>
31 libtoaster.ctx = { 31 libtoaster.ctx = {
32 projectId : {{project.id|default:'undefined'}},
33 jsUrl : "{% static 'js/' %}", 32 jsUrl : "{% static 'js/' %}",
34 htmlUrl : "{% static 'html/' %}", 33 htmlUrl : "{% static 'html/' %}",
35 projectsUrl : "{% url 'all-projects' %}", 34 projectsUrl : "{% url 'all-projects' %}",
36 {% if project.id %} 35 {% if project.id %}
36 projectId : {{project.id}},
37 projectPageUrl : {% url 'project' project.id as purl%}{{purl|json}}, 37 projectPageUrl : {% url 'project' project.id as purl%}{{purl|json}},
38 projectName : {{project.name|json}}, 38 projectName : {{project.name|json}},
39 projectTargetsUrl: {% url 'projectavailabletargets' project.id as paturl%}{{paturl|json}}, 39 projectTargetsUrl: {% url 'projectavailabletargets' project.id as paturl%}{{paturl|json}},
40 projectBuildsUrl: {% url 'projectbuilds' project.id as pburl %}{{pburl|json}}, 40 projectBuildsUrl: {% url 'projectbuilds' project.id as pburl %}{{pburl|json}},
41 projectId : {{project.id}}, 41 projectId : {{project.id}},
42 {% else %} 42 {% else %}
43 projectId : undefined,
43 projectPageUrl : undefined, 44 projectPageUrl : undefined,
44 projectName : undefined, 45 projectName : undefined,
45 projectId : undefined, 46 projectId : undefined,
@@ -101,8 +102,10 @@
101 <h3>New build</h3> 102 <h3>New build</h3>
102 <h6>Project:</h6> 103 <h6>Project:</h6>
103 <span id="project"> 104 <span id="project">
104 <a class="lead" href="{% if project.id %}{% url 'project' project.id %}{% endif %}">{{project.name}}</a> 105 {% if project.id %}
105 <i class="icon-pencil"></i> 106 <a class="lead" href="{% url 'project' project.id %}">{{project.name}}</a>
107 <i class="icon-pencil"></i>
108 {% endif %}
106 </span> 109 </span>
107 <form id="change-project-form" style="display:none;"> 110 <form id="change-project-form" style="display:none;">
108 <div class="input-append"> 111 <div class="input-append">
@@ -122,7 +125,7 @@
122 <form> 125 <form>
123 <input type="text" class="input-xlarge" id="build-target-input" placeholder="Type a recipe name" autocomplete="off" data-minLength="1" data-autocomplete="off" data-provide="typeahead" disabled/> 126 <input type="text" class="input-xlarge" id="build-target-input" placeholder="Type a recipe name" autocomplete="off" data-minLength="1" data-autocomplete="off" data-provide="typeahead" disabled/>
124 <div> 127 <div>
125 <button class="btn btn-primary" id="build-button" data-project-id="{{project.id}}" disabled>Build</button> 128 <button class="btn btn-primary" id="build-button" disabled>Build</button>
126 </div> 129 </div>
127 </form> 130 </form>
128 </li> 131 </li>