Skip to content

Commit

Permalink
imp: Add a button to never see collections links
Browse files Browse the repository at this point in the history
  • Loading branch information
marienfressinaud committed Sep 19, 2024
1 parent 9405023 commit df8545b
Showing 1 changed file with 12 additions and 0 deletions.
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

0 comments on commit df8545b

Please sign in to comment.