Skip to content

Commit

Permalink
Use lead image assoication on edition section of document summary page
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgisbey committed Nov 2, 2023
1 parent dc69754 commit 83361e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/admin/editions/show/_main.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@
],
rows: @edition.images.map do | image |
[
{ text: sanitize("#{image.filename} #{tag.span("Lead image", class: 'govuk-tag app-view-summary__tag') if @edition.can_have_custom_lead_image? && image == @edition.images.first}") },
{ text: sanitize("#{image.filename} #{tag.span("Lead image", class: 'govuk-tag app-view-summary__tag') if @edition.can_have_custom_lead_image? && image == @edition.lead_image}") },
]
end,
} %>
Expand Down

0 comments on commit 83361e2

Please sign in to comment.