From b89444ad8bb62ad996e84b3f02c7697e5f37ed19 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 24 Jan 2016 18:21:09 +0100 Subject: [PATCH] fix #1620 and introduce new parameters to export --- app/config/config.yml | 4 ++++ app/config/parameters.yml.dist | 4 ++++ app/config/tests/parameters.yml.dist.mysql | 4 ++++ app/config/tests/parameters.yml.dist.pgsql | 4 ++++ app/config/tests/parameters.yml.dist.sqlite | 4 ++++ .../views/themes/material/Entry/entries.html.twig | 14 +++++++------- .../views/themes/material/Entry/entry.html.twig | 7 ++++--- 7 files changed, 31 insertions(+), 10 deletions(-) diff --git a/app/config/config.yml b/app/config/config.yml index 5d9c7c55..2ec44f99 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -56,6 +56,10 @@ twig: export_epub: %export_epub% export_mobi: %export_mobi% export_pdf: %export_pdf% + export_csv: %export_csv% + export_json: %export_json% + export_txt: %export_txt% + export_xml: %export_xml% version: %app.version% twofactor_auth: %twofactor_auth% warning_message: %warning_message% diff --git a/app/config/parameters.yml.dist b/app/config/parameters.yml.dist index 0c0cbff1..e4fcbd74 100644 --- a/app/config/parameters.yml.dist +++ b/app/config/parameters.yml.dist @@ -61,6 +61,10 @@ parameters: export_epub: true export_mobi: true export_pdf: true + export_csv: true + export_json: true + export_txt: true + export_xml: true wallabag_url: http://v2.wallabag.org wallabag_support_url: 'https://www.wallabag.org/pages/support.html' diff --git a/app/config/tests/parameters.yml.dist.mysql b/app/config/tests/parameters.yml.dist.mysql index 88b1d2b4..f902f239 100644 --- a/app/config/tests/parameters.yml.dist.mysql +++ b/app/config/tests/parameters.yml.dist.mysql @@ -51,6 +51,10 @@ parameters: export_epub: true export_mobi: true export_pdf: true + export_csv: true + export_json: true + export_txt: true + export_xml: true wallabag_url: http://v2.wallabag.org wallabag_support_url: 'https://www.wallabag.org/pages/support.html' diff --git a/app/config/tests/parameters.yml.dist.pgsql b/app/config/tests/parameters.yml.dist.pgsql index 3c61142d..76685b14 100644 --- a/app/config/tests/parameters.yml.dist.pgsql +++ b/app/config/tests/parameters.yml.dist.pgsql @@ -51,6 +51,10 @@ parameters: export_epub: true export_mobi: true export_pdf: true + export_csv: true + export_json: true + export_txt: true + export_xml: true wallabag_url: http://v2.wallabag.org wallabag_support_url: 'https://www.wallabag.org/pages/support.html' diff --git a/app/config/tests/parameters.yml.dist.sqlite b/app/config/tests/parameters.yml.dist.sqlite index 2f7699b5..cdafb1b1 100644 --- a/app/config/tests/parameters.yml.dist.sqlite +++ b/app/config/tests/parameters.yml.dist.sqlite @@ -51,6 +51,10 @@ parameters: export_epub: true export_mobi: true export_pdf: true + export_csv: true + export_json: true + export_txt: true + export_xml: true wallabag_url: http://v2.wallabag.org wallabag_support_url: 'https://www.wallabag.org/pages/support.html' diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index bf38bff8..6de800b9 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig @@ -99,13 +99,13 @@ {% endif %}

{% trans %}Export{% endtrans %}

diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig index 095ff7b3..31963ae8 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig @@ -117,9 +117,10 @@ {% if export_epub %}
  • EPUB
  • {% endif %} {% if export_mobi %}
  • MOBI
  • {% endif %} {% if export_pdf %}
  • PDF
  • {% endif %} -
  • CSV
  • -
  • JSON
  • -
  • XML
  • + {% if export_csv %}
  • CSV
  • {% endif %} + {% if export_json %}
  • JSON
  • {% endif %} + {% if export_txt %}
  • TXT
  • {% endif %} + {% if export_xml %}
  • XML
  • {% endif %} -- 2.41.0