{# * Copyright (C) 2014-2015, Champs Libres Cooperative SCRLFS, / * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . #} {% extends "@ChillMain/layout.html.twig" %} {% block title %}{{ 'Exports list'|trans }}{% endblock %} {% block css %} {{ parent() }} {% endblock %} {% macro render_export_card(export, export_alias, generations) %}

{{ export.title|trans }}

{{ export.description|trans }}

{% if generations|length > 0 %}
    {% for generation in generations %}
  • {{ generation.createdAt|format_datetime('short', 'short') }} {% if generation.status == 'pending' %}  {{ 'export.generation.Export generation is pending_short'|trans }} {% elseif generation.status == 'failure' %}  {{ 'export.generation.Error_short'|trans }} {% endif %}
  • {% endfor %}
{% endif %}
{% endmacro %} {% block content %} {{ include('@ChillMain/Export/_navbar.html.twig', {'current' : 'common'}) }}
{% for group, exports in grouped_exports %}{% if group != '_' %}

{{ group|trans }}

{% for export_alias, export in exports %} {{ _self.render_export_card(export, export_alias, last_executions[export_alias]) }} {% endfor %}
{% endif %}{% endfor %} {% if grouped_exports|keys|length > 1 and grouped_exports['_']|length > 0 %}

{{ 'Ungrouped exports'|trans }}

{% endif %}
{% for export_alias,export in grouped_exports['_'] %} {{ _self.render_export_card(export, export_alias, last_executions[export_alias]) }} {% endfor %}
{% endblock %}