]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: do not show target if target name is empty
authorBelen Barros Pena <belen.barros.pena@linux.intel.com>
Tue, 18 Nov 2014 14:16:57 +0000 (14:16 +0000)
committerAlexandru DAMIAN <alexandru.damian@intel.com>
Thu, 20 Nov 2014 15:43:57 +0000 (15:43 +0000)
In the all targets table, all entries should have a target
name. If a target does not have a name, something has not
gone to plan, so don't show it.

Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
lib/toaster/toastergui/templates/targets.html

index 1f938aad2f513172022b54fa4f1df30a4db4e221..f4313f92b279728e872609f4ce1a63164a8eb0f5 100644 (file)
@@ -39,6 +39,7 @@
 
 {% include "basetable_top.html" %}
     {% for o in objects %}
+    {% if o.name %}
     <tr class="data">
         <td class="target">
                 {{o.name}}
@@ -78,6 +79,7 @@
             </a>
         </td>
     </tr>
+    {% endif %}
     {% endfor %}
 {% include "basetable_bottom.html" %}