{% macro appCard(app, infos, timestamp_now, catalog) -%} {% set this_app_stars = stars.get(app, {})|length %} {% if user %} {% set user_starred_this_app = user['id'] in stars.get(app, {}) %} {% else %} {% set user_starred_this_app = False %} {% endif %}
{{ _('Logo for %(app)s',app=infos['manifest']['name']) }}

{{ infos['manifest']['name'] }}

{% if infos['level'] == "?" or infos["level"]|int <= 4 %} {% elif infos['level'] == 8 %} {% endif %} {{ this_app_stars }}

{{ infos['manifest']['description']|localize }}

{% if infos['category'] %} {{ catalog['categories'][infos['category']]['title']|localize|lower }} {% endif %}
{%- endmacro %} {% extends "base.html" %} {% block title %} {{ _("Application Catalog") }} {% endblock %} {% block main %}

{{ _("Application Catalog") }}

{{ _("Sort by") }}
{{ _("Show only apps you starred") }}
{% for app, infos in catalog['apps'].items() %} {% if infos['level'] and infos['level'] != "?" and infos['level'] > 4 %} {{ appCard(app, infos, timestamp_now, catalog) }} {% endif %} {% endfor %}

{{ _("Applications currently flagged as broken") }}

{{ _("These are apps which failed our automatic tests.") }}
{{ _("This is usually a temporary situation which requires packagers to fix something in the app.") }}

{% for app, infos in catalog['apps'].items() %} {% if not infos['level'] or infos["level"] == "?" or infos['level'] <= 4 %} {{ appCard(app, infos, timestamp_now, catalog) }} {% endif %} {% endfor %}
{% endblock %}