]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/ImportBundle/Resources/views/Import/index.html.twig
Add tagged services for import
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Resources / views / Import / index.html.twig
index bd51f73078949f7d7c7766a227eddb3c98bc5ad2..27baa1e37bc31ba970066afe95efa22a971dae5c 100644 (file)
@@ -1,15 +1,19 @@
 {% extends "WallabagCoreBundle::layout.html.twig" %}
-{% block title %}{% trans %}import{% endtrans %}{% endblock %}
+{% block title %}{% trans %}Import{% endtrans %}{% endblock %}
 
 {% block content %}
-
 <div class="row">
     <div class="col s12">
         <div class="card-panel settings">
             {% trans %}Welcome on wallabag importer. Please select your previous service that you want to migrate.{% endtrans %}
             <ul>
-                <li><a href="{{ path('import_pocket') }}">Pocket</a></li>
-                <li><a href="{{ path('import_wallabag_v1') }}">Wallabag v1</a></li>
+                {% for import in imports %}
+                    <li>
+                        <h5>{{ import.name }}</h5>
+                        <blockquote>{{ import.description|raw }}</blockquote>
+                        <p><a class="waves-effect waves-light btn" href="{{ path(import.url) }}">Import contents</a></p>
+                    </li>
+                {% endfor %}
             </ul>
         </div>
     </div>