Skip to content

Fix #19910: Add conditional to hide internet dependent links in an isolated deployment #19951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rodvand
Copy link
Contributor

@rodvand rodvand commented Jul 24, 2025

Fixes: #19910

In the base template, add conditionals on internet links to hide them when the setting ISOLATED_DEPLOYMENT is set to True.

@jnovinger jnovinger requested review from a team and jnovinger and removed request for a team July 25, 2025 14:33
Copy link
Member

@jnovinger jnovinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @rodvand , thanks for the quick turnaround! I marked one item for change and possibly another. I'll update the comment as soon as I can.

<i title="{% trans "Community" %}" class="mdi mdi-slack text-primary" data-bs-placement="top" data-bs-toggle="tooltip"></i>
</a>
</li>
{% if not settings.ISOLATED_DEPLOYMENT %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's combine this {% if not ... %} into the {% else %} above it with {% elif not ... %}. That will allow us to remove the level of indentation that would be necessary otherwise and keep the template more readable.

@@ -184,7 +184,7 @@ <h1 class="navbar-brand pb-0">
{% endif %}

{# Commercial links #}
{% if settings.RELEASE.features.commercial %}
{% if settings.RELEASE.features.commercial and not settings.ISOLATED_DEPLOYMENT %}
Copy link
Member

@jnovinger jnovinger Jul 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These might be mutually exclusive, but I'm not positive. I'm checking now and will have an answer for you ASAP.

Never mind on this one, I was incorrect and your approach is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove internet dependent links when running in an air gapped environment
2 participants