Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions app/controllers/external_works_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class ExternalWorksController < ApplicationController
before_action :check_user_status, only: [:new]

def new
@page_subtitle = t(".page_title")
@bookmarkable = ExternalWork.new
@bookmark = Bookmark.new
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/external_works/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<h2 class="heading"><%= ts("Bookmark an external work") %></h2>
<h2 class="heading"><%= t(".page_heading") %></h2>
<%= render 'bookmarks/bookmark_form', :bookmarkable => @bookmarkable, :bookmark => @bookmark, :button_name => ts("Create"), :action => 'create' %>
2 changes: 2 additions & 0 deletions config/locales/controllers/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ en:
timeout_error:
browser_title: Timeout Error
external_works:
new:
page_title: Bookmark External Work
update:
successfully_updated: External work was successfully updated.
fandoms:
Expand Down
2 changes: 2 additions & 0 deletions config/locales/views/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,8 @@ en:
external_works:
edit:
works_languages_help_title: Languages help
new:
page_heading: Bookmark External Work
notice: This work isn't hosted on the Archive so this blurb might not be complete or accurate.
fandoms:
index:
Expand Down
5 changes: 5 additions & 0 deletions features/bookmarks/bookmark_external.feature
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,8 @@ Feature: Create bookmarks of external works
When I follow "A Work Not Posted To The AO3"
Then I should see "This work isn't hosted on the Archive"
And I should see a link to "https://example.com/external_work" within "h4"

Scenario: A user should see the correct title on the external bookmark page
Given I am logged in as "bookmarker"
When I am on the new external work page
Then I should see the page title "Bookmark External Work"
Loading