Skip to content

Commit

Permalink
AO3-4728 Allow HTML in subscription byline (#4925)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjaustin authored Sep 19, 2024
1 parent 8aaa777 commit f607097
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/views/subscriptions/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
<% case subscription.subscribable_type %>
<% when "Work" %>
<%= t(".work") if @subscribable_type.blank? %>
<%= t(".byline", creators: byline(subscription.subscribable)) %>
<%= t(".byline_html", creators: byline(subscription.subscribable)) %>
<% when "Series" %>
<%= t(".series") if @subscribable_type.blank? %>
<%= t(".byline", creators: byline(subscription.subscribable)) %>
<%= t(".byline_html", creators: byline(subscription.subscribable)) %>
<% end %>
<% else %>
<%= subscription.name %>
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 @@ -855,7 +855,7 @@ en:
subscriptions:
index:
button_html: Unsubscribe from %{name}
byline: by %{creators}
byline_html: by %{creators}
heading:
landmark:
list: List of Subscriptions
Expand Down
2 changes: 2 additions & 0 deletions features/other_b/subscriptions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,10 @@
When I am on my subscriptions page
Then I should see "My Subscriptions"
And I should see "Awesome Series (Series)"
And I should see a link "series_author"
And I should see "third_user"
And I should see "Awesome Story (Work)"
And I should see a link "wip_author"
When I follow "Series Subscriptions"
Then I should see "My Series Subscriptions"
And I should see "Awesome Series"
Expand Down

0 comments on commit f607097

Please sign in to comment.