mirror of https://github.com/wallabag/wallabag.git
Add warning message for PocketImport
Warn user if pocket_consumer_key isn't defined
This commit is contained in:
parent
63e40f2d7c
commit
1e3ed71470
|
@ -15,6 +15,7 @@ class PocketController extends Controller
|
||||||
{
|
{
|
||||||
return $this->render('WallabagImportBundle:Pocket:index.html.twig', [
|
return $this->render('WallabagImportBundle:Pocket:index.html.twig', [
|
||||||
'import' => $this->get('wallabag_import.pocket.import'),
|
'import' => $this->get('wallabag_import.pocket.import'),
|
||||||
|
'has_consumer_key' => '' == trim($this->get('craue_config')->get('pocket_consumer_key')) ? false : true,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,12 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col s12">
|
<div class="col s12">
|
||||||
<div class="card-panel settings">
|
<div class="card-panel settings">
|
||||||
|
{% if not has_consumer_key %}
|
||||||
|
<div class="card-panel red darken-1">
|
||||||
|
{% trans %}Pocket import isn't configured. You need to define pocket_consumer_key.{% endtrans %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<blockquote>{{ import.description|trans }}</blockquote>
|
<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>
|
<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') }}">
|
<form method="post" action="{{ path('import_pocket_auth') }}">
|
||||||
|
|
Loading…
Reference in New Issue