Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/controllers/readings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ def load_user

def index
@readings = @user.readings.visible
@page_subtitle = t(".history_page_title", username: @user.login)
if params[:show] == 'to-read'
@readings = @readings.where(toread: true)
@page_subtitle = t(".marked_for_later_page_title")
@page_subtitle = t(".marked_for_later_page_title", username: @user.login)
else
Comment thread
Respheal marked this conversation as resolved.
Outdated
@page_subtitle = t(".history_page_title", username: @user.login)
end
@readings = @readings.order("last_viewed DESC").includes(work: :pseuds)
@pagy, @readings = pagy(@readings)
Expand Down
2 changes: 1 addition & 1 deletion config/locales/controllers/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ en:
success: Your history is now cleared.
index:
history_page_title: "%{username} - History"
marked_for_later_page_title: Marked for Later
marked_for_later_page_title: "%{username} - Marked for Later"
related_works:
index:
page_title: "%{login} - Related Works"
Expand Down
Loading