summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/base.html
diff options
context:
space:
mode:
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>