{% extends "base.html" %} {% load crispy_forms_tags i18n permissions translations %} {% block nav_pills %} {% endblock nav_pills %} {% block breadcrumbs %} {% if object %} {% path_object_breadcrumbs object %} {% else %} {% endif %} {% endblock breadcrumbs %} {% block content %}

{% documentation_icon 'admin/addons' right=True %} {% if not object_list %} {% translate "No add-ons currently installed" %} {% else %} {% blocktranslate count count=object_list|length %}Installed {{ count }} add-on{% plural %}Installed {{ count }} add-ons{% endblocktranslate %} {% endif %}

{% for item in object_list %} {% with addon=item.instance %} {% endwith %} {% endfor %}
{% if addon.is_valid %} {% if item.inherited %} {% include 'addons/addon_head.html' with addon=addon.addon show_settings=item.can_manage scope_label=item.scope_label scope_description=item.scope_description %} {% elif scope == "component" and addon.repo_scope %} {% include 'addons/addon_head.html' with addon=addon.addon show_settings=item.can_manage %} {% else %} {% include 'addons/addon_head.html' with addon=addon.addon show_settings=item.can_manage hide_scope_badges=True %} {% endif %} {% else %}

{{ addon.addon_name }}

{% endif %} {% if item.inherited %}
{% translate "Inherited from" %} {{ item.scope_description }}
{% endif %}
{% if item.inherited %} {% if item.can_manage %} {% translate "View Logs" %} {% blocktranslate with location=item.scope_description %}Manage add-ons at {{ location }}{% endblocktranslate %} {% else %} {% translate "Managed at a scope you do not have access to." %} {% endif %} {% else %}
{% csrf_token %}
{% if addon.can_run_manually %}
{% csrf_token %}
{% endif %} {% translate "View Logs" %} {% if item.components_url %} {% translate "View components" %} {% endif %} {% if addon.is_valid and addon.addon.has_settings %} {% translate "Configure" %} {% endif %} {% endif %}

{% documentation_icon 'admin/addons' right=True %} {% translate "Available add-ons" %}

{% for addon in available %} {% endfor %}
{% include 'addons/addon_head.html' with addon=addon %} {% if scope != "component" and addon.needs_component %} {% else %}
{% csrf_token %}
{% endif %}
{% format_last_changes_content last_changes=last_changes user=user %} {% translate "Browse all add-on changes" %}
{% endblock content %}