Skip to content

Commit

Permalink
Fixed html_safe output of life years
Browse files Browse the repository at this point in the history
  • Loading branch information
abartov committed Jun 12, 2024
1 parent f97eec4 commit a199879
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/periodless.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
- @authors.each do |author|
%tr
%td= link_to author.name, authors_show_path(id: author.id)
%td= author.person&.life_years
%td!= author.person&.life_years
2 changes: 1 addition & 1 deletion app/views/authors/_author_top.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.author-name-years
.headline-1-v02= @author.name
- if @author.person.present?
.author-page-top-years (#{@author.person.life_years})
.author-page-top-years!= "(#{@author.person.life_years})"
.author-top-second-line
.author-page-top-rights
= render partial: 'shared/intellectual_property',
Expand Down
2 changes: 1 addition & 1 deletion app/views/authors/toc.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
.headline-1-v02
= @author.name
- if @author.person.present?
.author-page-top-years (#{@author.person.life_years})
.author-page-top-years!= "(#{@author.person.life_years})"
.by-card-content-v02
.text-height-author= @author.wikipedia_snippet
- if @author.wikipedia_url.present?
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_author_popup.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
%span.headline-1-v02
= link_to author.name, authority_path(author)
- if author.person.present?
%span.date-range (#{author.person.life_years})
%span.date-range!= "(#{author.person.life_years})"
.by-card-content-v02
.surprise-author-card-content-v02
.metadata
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_surprise_author.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%span.headline-1-v02
%a{ href: authority_path(author.id) }= author.name
- if author.person.present?
%span.date-range (#{author.person.life_years})
%span.date-range!= "(#{author.person.life_years})"
.by-card-content-v02.surprise-author-card-content-v02
.row
.col-md-6.col-sm-12
Expand Down

0 comments on commit a199879

Please sign in to comment.