{% extends 'common/_data_table.html' %} {% load i18n %} {% load custom_filters %} {% block title %}{% trans "Components" %}{% endblock %} {% block table_caption %} {% with apps=table.get_apps_list %} {% if table.actions_allowed %} {% comment %} Note(efedorova): We are comparing to the string, since get_apps_list functions returns json.dumps, witch is used in js later. So to prevent extra transformations comparing to the string is used to check for app absence. {% endcomment %} {% if apps != '[]' %}

{% blocktrans %}Application Components{% endblocktrans %}

{% trans 'App category' %}

{% else %}

{% with repo_url=table.get_repo_url pkg_def_url=table.get_pkg_def_url %} {% blocktrans %} There are no applications in the catalog. You can import apps from {{ repo_url }}.

Go to Package Definitions, click 'Import Package' and select Repository as a Package Source. {% endblocktrans %} {% endwith %}

{% endif %}

No applications matching your criteria

{% endif %} {% endwith %}

{{ table }}

{{ table.render_table_actions }} {% endblock table_caption %} {% block table_body %} {% if table.actions_allowed %}

{% trans 'Drop Components here' %}

{% endif %} {% for row in rows %} {{ row.render }} {% empty %} {{ table.get_empty_message }} {% endfor %} {% endblock table_body %}