aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Resources/views/Pocket/index.html.twig
blob: 8aa5da9714cb79d842a9c6db8cb1c61f0354a8bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{% extends "WallabagCoreBundle::layout.html.twig" %}
{% block title %}{% trans %}Import > Pocket{% endtrans %}{% endblock %}

{% block content %}
<div class="row">
    <div class="col s12">
        <div class="card-panel settings">
            {% 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 %}
                    {% endif %}
                </div>
            {% endif %}

            <blockquote>{{ import.description|trans }}</blockquote>
            <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>
            <form method="post" action="{{ path('import_pocket_auth') }}">
                <button class="btn waves-effect waves-light" type="submit" name="action">
                    {% trans %}Connect to Pocket and import data{% endtrans %}
                </button>
            </form>
        </div>
    </div>
</div>
{% endblock %}