From fc0bbbfe83b484337fa3b3f436a683492cfb51a5 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 21 Sep 2017 09:40:20 +0200 Subject: [PATCH] Check that the network exists before showing it --- templates/dispositivo/details.htm | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/templates/dispositivo/details.htm b/templates/dispositivo/details.htm index 0c317be..b73b28c 100644 --- a/templates/dispositivo/details.htm +++ b/templates/dispositivo/details.htm @@ -123,13 +123,15 @@ {% endif %} -
  • -

    - Network -

    - -
  • + {% if disp.nid %} +
  • +

    + Network +

    + +
  • + {% endif %} {% endblock %} \ No newline at end of file