]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/ImportBundle/Resources/views/Import/_information.html.twig
Add warning message for import + download images
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Resources / views / Import / _information.html.twig
similarity index 55%
rename from src/Wallabag/ImportBundle/Resources/views/Import/_workerEnabled.html.twig
rename to src/Wallabag/ImportBundle/Resources/views/Import/_information.html.twig
index 2390a41f8ffca2f5dbab482a212a473827f70ec0..48bbcfe7dcbf104f150c647433b2ad2094697410 100644 (file)
@@ -1,8 +1,15 @@
 {% set redis = craue_setting('import_with_redis') %}
 {% set rabbit = craue_setting('import_with_rabbitmq') %}
+{% set downloadImages = craue_setting('download_images_enabled') %}
 
 {% if redis or rabbit %}
     <div class="card-panel yellow darken-1 black-text">
         {{ 'import.worker.enabled'|trans }} <strong>{% if rabbit %}RabbitMQ{% elseif redis %}Redis{% endif %}</strong>
     </div>
 {% endif %}
+
+{% if not redis and not rabbit and downloadImages %}
+    <div class="card-panel orange darken-1 black-text">
+        {{ 'import.worker.download_images_warning'|trans|raw }}
+    </div>
+{% endif %}