Skip to content
Open
3 changes: 2 additions & 1 deletion app/controllers/tag_wranglings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class TagWranglingsController < ApplicationController
def index
@counts = tag_counts_per_category
authorize :wrangling, :read_access? if logged_in_as_admin?
@page_subtitle = t(".page_title.wrangling_tools")
return if params[:show].blank?

raise "Redshirt: Attempted to constantize invalid class initialize tag_wranglings_controller_index #{params[:show].classify}" unless Tag::USER_DEFINED.include?(params[:show].classify)
Expand All @@ -18,7 +19,7 @@ def index

if params[:show] == "fandoms"
@media_names = Media.by_name.pluck(:name)
@page_subtitle = t(".page_subtitle")
@page_subtitle = t(".page_title.fandoms")
end

type = params[:show].singularize.capitalize
Expand Down
4 changes: 3 additions & 1 deletion config/locales/controllers/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,9 @@ en:
other: Could not assign fandoms %{fandom_list}. Non-canonical fandoms cannot be assigned.
tag_wranglings:
index:
page_subtitle: fandoms
page_title:
fandoms: Fandoms
wrangling_tools: Wrangling Tools
tags:
index:
collection_page_title: "%{collection_title} - Tags"
Expand Down
2 changes: 1 addition & 1 deletion config/locales/views/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3122,7 +3122,7 @@ en:
tw_wranglers_slack: "#tw-wranglers"
wrangle_to_guidelines_html: Wrangle tags in accordance with the %{wrangling_guidelines_link}.
wrangling_guidelines: wrangling guidelines
page_heading: Tag Wrangling
page_heading: Wrangling Tools
wrangler_dashboard:
characters_by_fandom: Characters by fandom (%{count})
fandoms_by_media: Fandoms by media (%{count})
Expand Down
6 changes: 6 additions & 0 deletions features/tags_and_wrangling/tag_wrangling_more.feature
Original file line number Diff line number Diff line change
Expand Up @@ -417,3 +417,9 @@ Feature: Tag wrangling: assigning wranglers, using the filters on the Wranglers
And I should see "1" within "td[title='unwrangled characters']"
And I should see "Freeforms by fandom (0)"
And I should see "Characters by fandom (1)"

Scenario: browser page title and page heading appears as "Wrangling Tools" in Wrangling Tools page
Given I am logged in as a tag wrangler
When I go to the wrangling tools page
Then I should see "Wrangling Tools" within "h2.heading"
And I should see the page title "Wrangling Tools"
Loading