{% extends "layout.html.twig" %}

{% block title %}{{ 'import.page_title'|trans }}{% endblock %}

{% block messages %}
    {{ render(controller('Wallabag\\Controller\\Import\\ImportController::checkQueueAction')) }}

    {{ parent() }}
{% endblock %}

{% block content %}
<div class="row">
    <div class="col s12">
        <div class="card-panel settings">
            {% include 'Import/_information.html.twig' %}

            {{ 'import.page_description'|trans }}
            <ul>
                {% for import in imports %}
                    <li>
                        <h5>{{ import.name }}</h5>
                        <blockquote>{{ import.description|trans|raw }}</blockquote>
                        <p><a class="waves-effect waves-light btn" href="{{ path(import.url) }}">{{ 'import.action.import_contents'|trans }}</a></p>
                    </li>
                {% endfor %}
            </ul>
        </div>
    </div>
</div>
{% endblock %}
