summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-03-11 14:20:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-16 17:44:11 +0000
commitfb84086f7dd509d4c0e282af3b3cedde0802bd60 (patch)
treeab26a68c1d256ce8aa6a62fbae596298d9a97adf /bitbake/lib/toaster
parent25d21316844f6ab35852f105a57b0077b103d84d (diff)
downloadpoky-fb84086f7dd509d4c0e282af3b3cedde0802bd60.tar.gz
bitbake: toastergui: fix mrb Run again buttons
The button for error-ed builds had invalid javascript markup, this patch fixes the buttons. (Bitbake rev: 2824888196acc5cbe326b18148581472772ab21d) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html5
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html b/bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html
index d6e32f89ce..edaa08e0d9 100644
--- a/bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html
+++ b/bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html
@@ -54,8 +54,7 @@
54 Build time: <a href="{% url 'buildtime' build.pk %}">{{ build.timespent|sectohms }}</a> 54 Build time: <a href="{% url 'buildtime' build.pk %}">{{ build.timespent|sectohms }}</a>
55 </span> 55 </span>
56 {% if build.project %} 56 {% if build.project %}
57 <button class="btn {%if build.outcome == build.SUCCEEDED%}btn-success{%elif build.outcome == build.FAILED%}btn-danger{%else%}btn-info{%endif%} pull-right" onclick='scheduleBuild({% url 'xhr_projectbuild' build.project.id as bpi%}{{bpi|json}}, {{build.project.name|json}}, 57 <button class="btn {%if build.outcome == build.SUCCEEDED%}btn-success{%elif build.outcome == build.FAILED%}btn-danger{%else%}btn-info{%endif%} pull-right" onclick='scheduleBuild({% url 'xhr_projectbuild' build.project.id as bpi%}{{bpi|json}}, {{build.project.name|json}}, {% url 'project' buildrequest.project.id as bpurl%}{{bpurl|json}}, {{build.get_sorted_target_list|mapselect:'target'|json}})'>Run again</button>
58{% url 'project' buildrequest.project.id as bpurl%}{{bpurl|json}}, {{build.get_sorted_target_list|mapselect:'target'|json}})'>Run again</button>
59 {% endif %} 58 {% endif %}
60 </div> 59 </div>
61 {%endif%} 60 {%endif%}
@@ -105,7 +104,7 @@
105 <span class="lead{%if not MANAGED or not buildrequest.project%} pull-right{%endif%}"> 104 <span class="lead{%if not MANAGED or not buildrequest.project%} pull-right{%endif%}">
106 Build time: {{ buildrequest.get_duration|sectohms }} 105 Build time: {{ buildrequest.get_duration|sectohms }}
107 </span> 106 </span>
108 <button class="btn btn-danger pull-right" onclick='scheduleBuild({% url 'xhr_projectbuild' buildrequest.project.id as bpi%}{{bpi|json}}, {{buildrequest.project.name|json}}, {% url 'project' buildrequest.project.id as bpurl%}|{{bpurl|json}}, {{buildrequest.get_sorted_target_list|mapselect:'target'|json}})'>Run again</button> 107 <button class="btn btn-danger pull-right" onclick='scheduleBuild({% url 'xhr_projectbuild' buildrequest.project.id as bpi%}{{bpi|json}}, {{buildrequest.project.name|json}}, {% url 'project' buildrequest.project.id as bpurl%}{{bpurl|json}}, {{buildrequest.get_sorted_target_list|mapselect:'target'|json}})'>Run again</button>
109 108
110 </div> 109 </div>
111 110