[bitbake-devel] [PATCH 19/22] bitbake: toastergui: newbuildbutton Fix removed elements

Ed Bartosh ed.bartosh at linux.intel.com
Fri Jul 31 12:09:20 UTC 2015


From: Michael Wood <michael.g.wood at intel.com>

All the elements for the new build button need to be present for the
build button to work. Now that the template variables all have to have
values we have to make sure that the elements are still added to the dom
for the js to manipulate them.

Signed-off-by: Michael Wood <michael.g.wood at intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
 lib/toaster/toastergui/templates/base.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/toaster/toastergui/templates/base.html b/lib/toaster/toastergui/templates/base.html
index 4bef04f..c16fd65 100644
--- a/lib/toaster/toastergui/templates/base.html
+++ b/lib/toaster/toastergui/templates/base.html
@@ -123,8 +123,10 @@
                 <span id="project">
                   {% if project.id %}
                   <a class="lead" href="{% url 'project' project.id %}">{{project.name}}</a>
-                  <i class="icon-pencil"></i>
+                  {% else %}
+                  <a class="lead" href="#"></a>
                   {% endif %}
+                  <i class="icon-pencil"></i>
                 </span>
                 <form id="change-project-form" style="display:none;">
                   <div class="input-append">
-- 
2.1.4




More information about the bitbake-devel mailing list