From ddd34d5cd00ef7768dee8433c5a8685486e9d8ff Mon Sep 17 00:00:00 2001 From: cyrillefr Date: Wed, 16 Apr 2025 09:54:38 +0200 Subject: [PATCH] Replace link with button in index notifications --- app/views/notifications/index.html.erb | 8 ++++---- spec/system/notifications_spec.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/notifications/index.html.erb b/app/views/notifications/index.html.erb index 95ef36e03..33e3b21cd 100644 --- a/app/views/notifications/index.html.erb +++ b/app/views/notifications/index.html.erb @@ -5,10 +5,10 @@ <%= t("notifications.index.title") %> - <%= link_to t("notifications.index.mark_all_as_read"), - mark_all_as_read_notifications_path, - method: :put, - class: "button hollow float-right-medium" %> + <%= button_to t("notifications.index.mark_all_as_read"), + mark_all_as_read_notifications_path, + method: :put, + class: "button hollow float-right-medium" %>