Skip to content

Commit

Permalink
AO3-6058 Hi Reviewdog
Browse files Browse the repository at this point in the history
  • Loading branch information
weeklies committed Aug 20, 2023
1 parent 7d13135 commit 0f97ace
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions app/views/downloads/_download_afterword.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<dd>
<% if child_work.work.is_a?(ExternalWork) || !child_work.work.unrevealed? %>
<%= t(".inspired_by.revealed_html",
work_link: work_link,
creator_link: creator_link) %>
work_link: work_link,
creator_link: creator_link) %>
<% else %>
<%= t(".inspired_by.unrevealed") %>
<% end %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/downloads/_download_preface.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@

<% if work.parent.is_a?(ExternalWork) || !work.parent.unrevealed? %>
<%= t(".#{relation}.revealed_html",
work_link: work_link,
creator_link: creator_link) %>
work_link: work_link,
creator_link: creator_link) %>
<% else %>
<%= t(".#{relation}.unrevealed") %>
<% end %>
Expand Down
18 changes: 9 additions & 9 deletions app/views/works/_work_approved_children.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@

<% if child_work.work.is_a?(ExternalWork) %>
<%= t(".inspired_by.revealed_html",
language: language,
work_link: work_link,
creator_link: creator_link) %>
language: language,
work_link: work_link,
creator_link: creator_link) %>
<% elsif child_work.work.unrevealed? %>
<%= t(".inspired_by.unrevealed") %>
<% elsif child_work.work.restricted? && !logged_in? %>
<%= t(".inspired_by.restricted_html",
language: language,
creator_link: creator_link ) %>
language: language,
creator_link: creator_link) %>
<% else %>
<%= t(".inspired_by.revealed_html",
language: language,
work_link: work_link,
creator_link: creator_link) %>
<%= t(".inspired_by.revealed_html",
language: language,
work_link: work_link,
creator_link: creator_link) %>
<% end %>
</li>
<% end %>
Expand Down
20 changes: 10 additions & 10 deletions app/views/works/_work_header_notes.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
<% if related_work.work.restricted? && !logged_in? %>
<%= t(".translated_to.restricted_html",
language: language,
creator_link: creator_link ) %>
language: language,
creator_link: creator_link) %>
<% else %>
<%= t(".translated_to.revealed_html",
language: language,
work_link: work_link,
creator_link: creator_link) %>
language: language,
work_link: work_link,
creator_link: creator_link) %>
<% end %>
</li>
<% else %>
Expand All @@ -46,16 +46,16 @@
<% if related_work.parent.is_a?(ExternalWork) %>
<%= t(".#{relation}.revealed_html",
work_link: work_link,
creator_link: creator_link) %>
work_link: work_link,
creator_link: creator_link) %>
<% elsif related_work.parent.unrevealed? %>
<%= t(".#{relation}.unrevealed") %>
<% elsif related_work.parent.restricted? && !logged_in? %>
<%= t(".#{relation}.restricted_html", creator_link: creator_link ) %>
<%= t(".#{relation}.restricted_html", creator_link: creator_link) %>
<% else %>
<%= t(".#{relation}.revealed_html",
work_link: work_link,
creator_link: creator_link) %>
work_link: work_link,
creator_link: creator_link) %>
<% end %>
</li>
<% end %>
Expand Down

0 comments on commit 0f97ace

Please sign in to comment.