diff --git a/app/helpers/works_helper.rb b/app/helpers/works_helper.rb index 4e92daa3515..712212bc576 100644 --- a/app/helpers/works_helper.rb +++ b/app/helpers/works_helper.rb @@ -83,11 +83,11 @@ def marked_for_later?(work) end def mark_as_read_link(work) - link_to ts("Mark as Read"), mark_as_read_work_path(work) + link_to t(".mark_as_read"), mark_as_read_work_path(work), method: :delete end def mark_for_later_link(work) - link_to ts("Mark for Later"), mark_for_later_work_path(work) + link_to t(".mark_for_later"), mark_for_later_work_path(work), method: :post end def get_endnotes_link diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index 4cbc8c0438a..c8a530f67cc 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -1944,6 +1944,9 @@ en: revealed_html: "%{work_link} by %{creator_link}" title: Works inspired by this one unrevealed: A work in an unrevealed collection + work_header_navigation: + mark_as_read: Mark as Read + mark_for_later: Mark for Later work_header_notes: inspired_by: restricted_html: Inspired by [Restricted Work] by %{creator_link} (Log in to access.) diff --git a/config/routes.rb b/config/routes.rb index a4fedf346dc..ad4967e07dc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -359,8 +359,8 @@ get :edit_tags get :preview_tags patch :update_tags - get :mark_for_later - get :mark_as_read + post :mark_for_later + delete :mark_as_read get :confirm_delete get :share end