summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/base.html
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2014-11-20 15:06:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-28 14:02:57 +0000
commit152e2d9cc533c70cf3172c165d00ee177fb4aa78 (patch)
tree80f459e860ca2d0fad9b0ccc6638c180b4fd174d /bitbake/lib/toaster/toastergui/templates/base.html
parent49ac18dd0fedbcb63e9b18d1b0df62431ed37eb0 (diff)
downloadpoky-152e2d9cc533c70cf3172c165d00ee177fb4aa78.tar.gz
bitbake: toaster: base Only show New Build button when there are > 0 projects
Only show new build button if we have defined at least one project as we can't select a project to build against if there are no projects created yet. (Bitbake rev: 6daada59ee846c4e957bba3574dc262a0c79854d) Signed-off-by: Michael Wood <michael.g.wood@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.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html
index 734d2ad8a2..f457b91dce 100644
--- a/bitbake/lib/toaster/toastergui/templates/base.html
+++ b/bitbake/lib/toaster/toastergui/templates/base.html
@@ -31,6 +31,7 @@
31 ctx.projectBuildUrl = "{% url 'xhr_build' %}"; 31 ctx.projectBuildUrl = "{% url 'xhr_build' %}";
32 ctx.projectPageUrl = "{% url 'project' %}"; 32 ctx.projectPageUrl = "{% url 'project' %}";
33 ctx.projectInfoUrl = "{% url 'xhr_projectinfo' %}"; 33 ctx.projectInfoUrl = "{% url 'xhr_projectinfo' %}";
34 ctx.numProjects = {{projects|length}};
34 {% if project %} 35 {% if project %}
35 ctx.projectId = {{project.id}}; 36 ctx.projectId = {{project.id}};
36 {% endif %} 37 {% endif %}