mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-23 12:08:43 -06:00
Fixes: #18184 - Gracefully handle unavailable internet connection on RSS feed dashboard widget if ISOLATED_DEPLOYMENT is set (#18186)
* Suppress adding the RSS feed widget to the dashboard if ISOLATED_DEPLOYMENT is set * Add config option on RSSFeedWidget to specify requires_internet and to display a more appropriate error if ISOLATED_DEPLOYMENT is set * Remove skipping behavior from utils.py * Add required=False
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
<div class="list-group-item text-muted">{% trans "No content found" %}</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% elif isolated_deployment %}
|
||||
<span class="text-danger">
|
||||
<i class="mdi mdi-alert"></i> {% trans "This RSS feed requires an external connection. Check the ISOLATED_DEPLOYMENT setting." %}
|
||||
</span>
|
||||
{% else %}
|
||||
{# There was an error retrieving/parsing the feed #}
|
||||
<span class="text-danger">
|
||||
|
||||
Reference in New Issue
Block a user