mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
26 lines
780 B
HTML
26 lines
780 B
HTML
{% load i18n %}
|
|
{% if feed and not feed.bozo %}
|
|
<div class="list-group list-group-flush">
|
|
{% for entry in feed.entries %}
|
|
<div class="list-group-item px-1">
|
|
<h6><a href="{{ entry.link }}">{{ entry.title }}</a></h6>
|
|
<div>
|
|
{{ entry.summary|safe }}
|
|
</div>
|
|
</div>
|
|
{% empty %}
|
|
<div class="list-group-item text-muted">{% trans "No content found" %}</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
{# There was an error retrieving/parsing the feed #}
|
|
<span class="text-danger">
|
|
<i class="mdi mdi-alert"></i> {% trans "There was a problem fetching the RSS feed" %}:
|
|
</span>
|
|
{% if feed %}
|
|
{{ feed.bozo_exception|escape }} ({% trans "HTTP" %} {{ feed.status }})
|
|
{% else %}
|
|
{{ error }}
|
|
{% endif %}
|
|
{% endif %}
|