]>
Commit | Line | Data |
---|---|---|
1f4408de | 1 | {% extends "WallabagCoreBundle::layout.html.twig" %} |
7019c7cf | 2 | {% block title %}{% trans %}Import > Pocket{% endtrans %}{% endblock %} |
1f4408de NL |
3 | |
4 | {% block content %} | |
1f4408de NL |
5 | <div class="row"> |
6 | <div class="col s12"> | |
7 | <div class="card-panel settings"> | |
1e3ed714 JB |
8 | {% if not has_consumer_key %} |
9 | <div class="card-panel red darken-1"> | |
4c07a83b TC |
10 | {% trans %}Pocket import isn't configured.{% endtrans %} |
11 | {% if is_granted('ROLE_SUPER_ADMIN') %} | |
12 | {% 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 %} | |
13 | {% else %} | |
14 | {% trans %}Your server admin needs to define an API Key for Pocket.{% endtrans %} | |
15 | {% endif %} | |
1e3ed714 JB |
16 | </div> |
17 | {% endif %} | |
18 | ||
b88cf91f | 19 | <blockquote>{{ import.description|trans }}</blockquote> |
7019c7cf | 20 | <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> |
252ebd60 | 21 | <form method="post" action="{{ path('import_pocket_auth') }}"> |
7019c7cf | 22 | <button class="btn waves-effect waves-light" type="submit" name="action"> |
d1af8ad4 | 23 | {% trans %}Connect to Pocket and import data{% endtrans %} |
7019c7cf | 24 | </button> |
1f4408de NL |
25 | </form> |
26 | </div> | |
27 | </div> | |
28 | </div> | |
29 | {% endblock %} |