Browse Source

toastergui: newbuildbutton Fix removed elements

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@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Michael Wood 8 years ago
parent
commit
e2ab67eaf7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lib/toaster/toastergui/templates/base.html

+ 3 - 1
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">