Skip to content

Commit 111fefd

Browse files
authored
Fix #19910: Add conditional to hide internet dependent links in an isolated deployment (#19951)
* Add conditional to hide internet dependent links in an isolated deployment * Formatting * Adjust conditional * Formatting
1 parent 063d1fe commit 111fefd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netbox/templates/base/layout.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h1 class="navbar-brand pb-0">
5555
{# Release info #}
5656
<div class="text-muted text-center fs-5 my-3">
5757
{{ settings.RELEASE.name }}
58-
{% if not settings.RELEASE.features.commercial %}
58+
{% if not settings.RELEASE.features.commercial and not settings.ISOLATED_DEPLOYMENT %}
5959
<div>
6060
<a href="https://netboxlabs.com/netbox-cloud/" class="text-muted">{% trans "Get" %} Cloud</a> |
6161
<a href="https://netboxlabs.com/netbox-enterprise/" class="text-muted">{% trans "Get" %} Enterprise</a>
@@ -184,7 +184,7 @@ <h1 class="navbar-brand pb-0">
184184
{% endif %}
185185

186186
{# Commercial links #}
187-
{% if settings.RELEASE.features.commercial %}
187+
{% if settings.RELEASE.features.commercial and not settings.ISOLATED_DEPLOYMENT %}
188188
{# LinkedIn #}
189189
<li class="list-inline-item">
190190
<a href="https://www.linkedin.com/company/netboxlabs/" target="_blank" class="link-secondary" rel="noopener" aria-label="LinkedIn">
@@ -199,7 +199,7 @@ <h1 class="navbar-brand pb-0">
199199
</li>
200200

201201
{# Community links #}
202-
{% else %}
202+
{% elif not settings.ISOLATED_DEPLOYMENT %}
203203
{# GitHub #}
204204
<li class="list-inline-item">
205205
<a href="https://github.com/netbox-community/netbox" target="_blank" class="link-secondary" rel="noopener" aria-label="{% trans "Source Code" %}">

0 commit comments

Comments
 (0)