-{% block title %}{% trans %}Import > Pocket{% endtrans %}{% endblock %}
+
+{% block title %}{{ 'import.pocket.page_title'|trans }}{% endblock %}
{% block content %}
<div class="row">
<div class="col s12">
<div class="card-panel settings">
+ {% include 'WallabagImportBundle:Import:_information.html.twig' %}
+
{% if not has_consumer_key %}
- <div class="card-panel red darken-1">
- {% trans %}Pocket import isn't configured.{% endtrans %}
- {% if is_granted('ROLE_SUPER_ADMIN') %}
- {% trans with {'%keyurls%': '<a href="' ~ path('craue_config_settings_modify') ~ '#set-import">', '%keyurle%':'</a>'} %}You need to define %keyurls% a pocket_consumer_key %keyurle%.{% endtrans %}
- {% else %}
- {% trans %}Your server admin needs to define an API Key for Pocket.{% endtrans %}
- <p>{% trans %}You can import your data from your Pocket account. You just have to click on the below button and authorize the application to connect to getpocket.com.{% endtrans %}</p>