Skip to content

Commit

Permalink
AO3-5953 Update Mark for Later and Mark as Read
Browse files Browse the repository at this point in the history
  • Loading branch information
weeklies committed Jan 25, 2025
1 parent 2362dd7 commit 76d72f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/helpers/works_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions config/locales/views/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
Expand Down
4 changes: 2 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76d72f8

Please sign in to comment.