From: Jeremy Benoist Date: Wed, 24 May 2017 19:33:37 +0000 (+0200) Subject: Add some deletion confirmation to avoid mistake X-Git-Tag: 2.3.0~31^2~86^2~2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=fa0f5ee12bc71e1ec7d8fae9032c6dd0ff13dd55;p=github%2Fwallabag%2Fwallabag.git Add some deletion confirmation to avoid mistake --- diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml index 1bd0b8fd..3e64af8f 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml @@ -240,6 +240,9 @@ entry: save_label: 'Gem' public: # shared_by_wallabag: "This article has been shared by wallabag" + confirm: + # delete: "Are you sure you want to remove that article?" + # delete_tag: "Are you sure you want to remove that tag from that article?" about: page_title: 'Om' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml index 94bb3295..6472e64b 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml @@ -241,6 +241,9 @@ entry: save_label: 'Speichern' public: shared_by_wallabag: "Dieser Artikel wurde mittels wallabag geteilt" + confirm: + # delete: "Are you sure you want to remove that article?" + # delete_tag: "Are you sure you want to remove that tag from that article?" about: page_title: 'Über' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml index 3a006a0e..8703a0e5 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml @@ -241,6 +241,9 @@ entry: save_label: 'Save' public: shared_by_wallabag: "This article has been shared by wallabag" + confirm: + delete: "Are you sure you want to remove that article?" + delete_tag: "Are you sure you want to remove that tag from that article?" about: page_title: 'About' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml index ca5d9b2c..0f2a4a7b 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml @@ -241,6 +241,9 @@ entry: save_label: 'Guardar' public: shared_by_wallabag: "Este artículo se ha compartido con wallabag" + confirm: + # delete: "Are you sure you want to remove that article?" + # delete_tag: "Are you sure you want to remove that tag from that article?" about: page_title: 'Acerca de' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml index ecd8f64d..ec7a4362 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml @@ -241,6 +241,9 @@ entry: save_label: 'ذخیره' public: # shared_by_wallabag: "This article has been shared by wallabag" + confirm: + # delete: "Are you sure you want to remove that article?" + # delete_tag: "Are you sure you want to remove that tag from that article?" about: page_title: 'درباره' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml index 84706459..6969b67b 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml @@ -241,6 +241,9 @@ entry: save_label: "Enregistrer" public: shared_by_wallabag: "Cet article a été partagé par wallabag" + confirm: + delete: "Voulez-vous vraiment supprimer cet article ?" + delete_tag: "Voulez-vous vraiment supprimer ce tag de cet article ?" about: page_title: "À propos" diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml index a8baa96f..70e9575a 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.it.yml @@ -241,6 +241,9 @@ entry: save_label: 'Salva' public: # shared_by_wallabag: "This article has been shared by wallabag" + confirm: + # delete: "Are you sure you want to remove that article?" + # delete_tag: "Are you sure you want to remove that tag from that article?" about: page_title: 'About' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml index 8f39ce05..3ac472d0 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.oc.yml @@ -241,6 +241,9 @@ entry: save_label: 'Enregistrar' public: shared_by_wallabag: "Aqueste article es estat partejat per wallabag" + confirm: + # delete: "Are you sure you want to remove that article?" + # delete_tag: "Are you sure you want to remove that tag from that article?" about: page_title: 'A prepaus' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml index a6e0c10f..c338e63f 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml @@ -241,6 +241,9 @@ entry: save_label: 'Zapisz' public: shared_by_wallabag: "Ten artykuł został udostępniony przez wallabag" + confirm: + # delete: "Are you sure you want to remove that article?" + # delete_tag: "Are you sure you want to remove that tag from that article?" about: page_title: 'O nas' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml index a9473591..bf038ee8 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pt.yml @@ -241,6 +241,9 @@ entry: save_label: 'Salvar' public: shared_by_wallabag: "Este artigo foi compartilhado pelo wallabag" + confirm: + # delete: "Are you sure you want to remove that article?" + # delete_tag: "Are you sure you want to remove that tag from that article?" about: page_title: 'Sobre' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml index 80d78a01..bd66d83a 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml @@ -241,6 +241,9 @@ entry: save_label: 'Salvează' public: # shared_by_wallabag: "This article has been shared by wallabag" + confirm: + # delete: "Are you sure you want to remove that article?" + # delete_tag: "Are you sure you want to remove that tag from that article?" about: page_title: 'Despre' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml index 2896c823..b86c4003 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml @@ -241,6 +241,9 @@ entry: save_label: 'Kaydet' public: # shared_by_wallabag: "This article has been shared by wallabag" + confirm: + # delete: "Are you sure you want to remove that article?" + # delete_tag: "Are you sure you want to remove that tag from that article?" about: page_title: 'Hakkımızda' diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig index bdd44b54..0ba6f4f4 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig @@ -50,7 +50,7 @@
  • {{ entry.domainName|removeWww }}
  • check{{ 'entry.list.toogle_as_read'|trans }}
  • star_rate{{ 'entry.list.toogle_as_star'|trans }}
  • -
  • delete{{ 'entry.list.delete'|trans }}
  • +
  • delete{{ 'entry.list.delete'|trans }}
  • {% if (entry.previewPicture is null or listMode == 1) %} diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig index 3ba6253a..174b7b54 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig @@ -10,7 +10,7 @@
  • {% if entry.isArchived == 0 %}done{% else %}redo{% endif %} {% if entry.isStarred == 0 %}star_border{% else %}star{% endif %} - delete + delete
  • 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 58e08cbc..4cff7bf2 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 @@ -82,7 +82,7 @@
  • - + delete {{ 'entry.view.left_menu.delete'|trans }} @@ -253,7 +253,10 @@ @@ -279,7 +282,7 @@