Skip to content

Commit 4aaf5ea

Browse files
authored
AO3-7033 Include skin title in browser page title for skin show page (otwcode#5258)
1 parent 682d41c commit 4aaf5ea

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/controllers/skins_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def index
4444

4545
# GET /skins/1
4646
def show
47+
@page_subtitle = @skin.title.html_safe
4748
end
4849

4950
# GET /skins/new

features/other_b/skin.feature

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ Feature: Non-public site and work skins
33

44
Scenario: A user should be able to create a skin with CSS
55
Given I am logged in as "skinner"
6+
And the app name is "Example Archive"
67
When I am on the new skin page
7-
And I fill in "Title" with "my blinking skin"
8+
And I fill in "Title" with "my blinking & skin"
89
And I fill in "CSS" with "#title { text-decoration: blink;}"
910
And I submit
1011
Then I should see "Skin was successfully created"
11-
And I should see "my blinking skin skin by skinner"
12+
And I should see "my blinking & skin skin by skinner"
1213
And I should see "text-decoration: blink;"
1314
And I should see "(No Description Provided)"
1415
And I should see "by skinner"
@@ -18,6 +19,7 @@ Feature: Non-public site and work skins
1819
And I should not see "Stop Using"
1920
And I should not see "(Approved)"
2021
And I should not see "(Not yet reviewed)"
22+
And I should see the page title "my blinking & skin | Example Archive"
2123

2224
Scenario: A logged-out user should not be able to create skins.
2325
Given I am a visitor

0 commit comments

Comments
 (0)