From 27023ce2d264ce05008ef9af33982b054c6a87b5 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Tue, 18 Nov 2014 14:16:57 +0000 Subject: toaster: do not show target if target name is empty 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 --- lib/toaster/toastergui/templates/targets.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/toaster/toastergui/templates/targets.html b/lib/toaster/toastergui/templates/targets.html index 1f938aad2..f4313f92b 100644 --- a/lib/toaster/toastergui/templates/targets.html +++ b/lib/toaster/toastergui/templates/targets.html @@ -39,6 +39,7 @@ {% include "basetable_top.html" %} {% for o in objects %} + {% if o.name %} {{o.name}} @@ -78,6 +79,7 @@ + {% endif %} {% endfor %} {% include "basetable_bottom.html" %} -- cgit 1.2.3-korg