Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
weeklies committed Jan 26, 2025
1 parent 738a0ef commit ec5a889
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/views/skins/_revert_skin_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<% elsif logged_in? && current_user.preference.skin_id != AdminSetting.default_skin_id %>
<%= form_for(current_user.preference, url: user_preference_path(current_user, current_user.preference), method: :patch) do |f| %>
<%= f.hidden_field :skin_id, value: AdminSetting.default_skin_id %>
<%= f.submit ts(".revert_to_default") %>
<%= f.submit t(".revert_to_default") %>
<% end %>
<% end %>
2 changes: 0 additions & 2 deletions app/views/works/_work_header_navigation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@
<% # for users, bookmark and mark to read later %>
<%# i18n-tasks-use t("works.work_header_navigation.mark_as_read") %>
<%# i18n-tasks-use t("works.work_header_navigation.mark_for_later") %>
<% if current_user.is_a?(User) %>
<% @bookmark ||= bookmark_if_exists(@work) %>
<li class="bookmark">
Expand Down
5 changes: 5 additions & 0 deletions config/locales/helpers/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ en:
troubleshot: Account Troubleshot
validated: Account Validated
warn: Warned
works_helper:
mark_as_read_link:
mark_as_read: Mark as Read
mark_for_later_link:
mark_for_later: Mark for Later
7 changes: 1 addition & 6 deletions config/locales/views/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,6 @@ en:
guest_comments_disabled: Sorry, the Archive doesn't allow guests to comment right now.
invite_to_collections_link: Invite To Collections
logged_as_admin: Please log out of your admin account to comment.
mark_as_read: Mark as Read
mark_for_later: Mark for Later
permissions:
admin_post:
alt_action: You can however %{support_link} with any feedback or questions.
Expand Down Expand Up @@ -1623,7 +1621,7 @@ en:
skins:
confirm_delete:
confirm_html: Are you sure you want to <strong><em>delete</em></strong> the skin "%{skin_title}"?
skin_actions:
revert_skin_form:
revert_to_default: Revert to Default Skin
subscriptions:
index:
Expand Down Expand Up @@ -1948,9 +1946,6 @@ 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

0 comments on commit ec5a889

Please sign in to comment.