Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imp: Add a button to never see collections links #694

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified locales/fr_FR/LC_MESSAGES/main.mo
Binary file not shown.
24 changes: 12 additions & 12 deletions locales/fr_FR/LC_MESSAGES/main.po
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Flus\n"
"POT-Creation-Date: 2024-09-19 14:39+0200\n"
"PO-Revision-Date: 2024-09-19 14:39+0200\n"
"POT-Creation-Date: 2024-09-19 15:03+0200\n"
"PO-Revision-Date: 2024-09-19 15:03+0200\n"
"Last-Translator: Marien Fressinaud <dev@marienfressinaud.fr>\n"
"Language-Team: \n"
"Language: fr_FR\n"
Expand Down Expand Up @@ -721,7 +721,7 @@ msgid "Place here the links you want to consult later on."
msgstr "Placez ici les liens que vous souhaitez consulter plus tard."

#: views/bookmarks/index.phtml:28 views/collections/_collection.phtml:31
#: views/collections/show.phtml:169 views/collections/show_public.phtml:214
#: views/collections/show.phtml:169 views/collections/show_public.phtml:226
#: views/links/searches/show.phtml:106 views/news/index.phtml:115
#: views/read/index.phtml:29
#, php-format
Expand Down Expand Up @@ -1139,16 +1139,21 @@ msgstr "Copier le lien"
msgid "Mark all as read"
msgstr "Tout marquer comme lu"

#: views/collections/show_public.phtml:175 views/links/searches/show.phtml:121
#: views/collections/show_public.phtml:175 views/news/index.phtml:85
#: views/news/index.phtml:177 views/news/index.phtml:253
msgid "Never see the links again"
msgstr "Ne plus revoir les liens"

#: views/collections/show_public.phtml:187 views/links/searches/show.phtml:121
msgid "Unfollow"
msgstr "Ne plus suivre"

#: views/collections/show_public.phtml:186
#: views/collections/show_public.phtml:200 views/links/searches/show.phtml:130
#: views/collections/show_public.phtml:198
#: views/collections/show_public.phtml:212 views/links/searches/show.phtml:130
msgid "Follow"
msgstr "Suivre"

#: views/collections/show_public.phtml:236
#: views/collections/show_public.phtml:248
msgid "This collection is empty."
msgstr "Cette collection est vide."

Expand Down Expand Up @@ -2120,11 +2125,6 @@ msgstr ""
"Vous allez retirer tous les liens du journal, cette action ne peut pas être "
"annulée. Confirmez-vous ?"

#: views/news/index.phtml:85 views/news/index.phtml:177
#: views/news/index.phtml:253
msgid "Never see the links again"
msgstr "Ne plus revoir les liens"

#: views/news/index.phtml:135
msgid "Actions on the feed"
msgstr "Actions pour le flux"
Expand Down
12 changes: 12 additions & 0 deletions src/views/collections/show_public.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,18 @@
</button>
</form>

<form method="post" action="<?= url('never read collection', ['id' => $collection->id]) ?>" role="menuitem">
<input type="hidden" name="csrf" value="<?= $csrf_token ?>" />
<input type="hidden" name="from" value="<?= url('collection', $current_url_params) ?>" />

<button class="popup__item popup__item--button">
<?= icon('times') ?>
<?= _('Never see the links again') ?>
</button>
</form>

<div class="popup__separator"></div>

<form method="post" action="<?= url('unfollow collection', ['id' => $collection->id]) ?>" role="menuitem">
<input type="hidden" name="csrf" value="<?= $csrf_token ?>" />
<input type="hidden" name="from" value="<?= url('collection', $current_url_params) ?>" />
Expand Down
Loading