From a5d1500307c76f10c444287dad2b315835aca006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20R=C3=B8dvand?= Date: Thu, 24 Jul 2025 22:04:41 +0200 Subject: [PATCH 1/4] Add conditional to hide internet dependent links in an isolated deployment --- netbox/templates/base/layout.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/netbox/templates/base/layout.html b/netbox/templates/base/layout.html index 7fce92c5c76..9eaacc01c0c 100644 --- a/netbox/templates/base/layout.html +++ b/netbox/templates/base/layout.html @@ -55,7 +55,7 @@

{# Release info #}
{{ settings.RELEASE.name }} - {% if not settings.RELEASE.features.commercial %} + {% if not settings.RELEASE.features.commercial and not settings.ISOLATED_DEPLOYMENT %}
{% trans "Get" %} Cloud | {% trans "Get" %} Enterprise @@ -184,7 +184,7 @@

{% endif %} {# Commercial links #} - {% if settings.RELEASE.features.commercial %} + {% if settings.RELEASE.features.commercial and not settings.ISOLATED_DEPLOYMENT %} {# LinkedIn #}
  • @@ -200,6 +200,7 @@

    {# Community links #} {% else %} + {% if not settings.ISOLATED_DEPLOYMENT %} {# GitHub #}
  • @@ -212,6 +213,7 @@

  • + {% endif %} {% endif %} {% endblock footer_links %} From 576099e3b87e5ac10352fef0c8552b825bef5adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20R=C3=B8dvand?= Date: Thu, 24 Jul 2025 22:07:56 +0200 Subject: [PATCH 2/4] Formatting --- netbox/templates/base/layout.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/netbox/templates/base/layout.html b/netbox/templates/base/layout.html index 9eaacc01c0c..6470dcbbf60 100644 --- a/netbox/templates/base/layout.html +++ b/netbox/templates/base/layout.html @@ -200,19 +200,19 @@

    {# Community links #} {% else %} - {% if not settings.ISOLATED_DEPLOYMENT %} - {# GitHub #} -
  • - - - -
  • - {# NetDev Slack #} -
  • - - - -
  • + {% if not settings.ISOLATED_DEPLOYMENT %} + {# GitHub #} +
  • + + + +
  • + {# NetDev Slack #} +
  • + + + +
  • {% endif %} {% endif %} {% endblock footer_links %} From ccec1182d8281179295553c8d1e3ddd3760d61c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20R=C3=B8dvand?= Date: Sun, 27 Jul 2025 12:06:25 +0200 Subject: [PATCH 3/4] Adjust conditional --- netbox/templates/base/layout.html | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/netbox/templates/base/layout.html b/netbox/templates/base/layout.html index 6470dcbbf60..070e8a5a288 100644 --- a/netbox/templates/base/layout.html +++ b/netbox/templates/base/layout.html @@ -199,21 +199,19 @@

  • {# Community links #} - {% else %} - {% if not settings.ISOLATED_DEPLOYMENT %} - {# GitHub #} -
  • - - - -
  • - {# NetDev Slack #} -
  • - - - -
  • - {% endif %} + {% elif not settings.ISOLATED_DEPLOYMENT %} + {# GitHub #} +
  • + + + +
  • + {# NetDev Slack #} +
  • + + + +
  • {% endif %} {% endblock footer_links %} From 9063f5faccd140c941c13e5311d57ebc16bbb3a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20R=C3=B8dvand?= Date: Sun, 27 Jul 2025 12:08:10 +0200 Subject: [PATCH 4/4] Formatting --- netbox/templates/base/layout.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netbox/templates/base/layout.html b/netbox/templates/base/layout.html index 070e8a5a288..c31896256c5 100644 --- a/netbox/templates/base/layout.html +++ b/netbox/templates/base/layout.html @@ -199,7 +199,7 @@

    {# Community links #} - {% elif not settings.ISOLATED_DEPLOYMENT %} + {% elif not settings.ISOLATED_DEPLOYMENT %} {# GitHub #}
  • @@ -211,7 +211,7 @@

    -

  • + {% endif %} {% endblock footer_links %}