Skip to content

Commit

Permalink
- Update EDM prelim sentence, removing other sponsors and changing to…
Browse files Browse the repository at this point in the history
… 'tabled' by
  • Loading branch information
j-corry committed Nov 25, 2024
1 parent bdfa98e commit c6f3371
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions app/views/search/preliminary_sentences/_edm.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,15 @@
.content-prelim-inner
.content-prelim-text#prelim-text
%span>= object_display_name_link(object.object_name)
- unless object.primary_sponsor.blank? && object.other_sponsors.blank?
%span=" sponsored by "
- if object.primary_sponsor.blank?
%span= render 'search/fragments/list', items: object.other_sponsors, terminator: '', singular: false
%span= " and "
- else object.primary_sponsor.blank?
- unless object.primary_sponsor.blank?
%span=" tabled by "
%span>= search_link(object.primary_sponsor)
- if object.primary_sponsor_party.blank?
%span= " (primary sponsor)"
- else
%span= " (primary sponsor, "
%span>= render 'search/fragments/list', items: object.primary_sponsor_party, terminator: '', singular: false
%span= ")"
- unless object.other_sponsors.blank?
%span>= render 'search/fragments/edm_sponsor_list', items: object.other_sponsors, terminator: '', singular: false
%span= " and "
%span= " tabled on "
%span>= format_date(object.date_tabled)
Expand Down

0 comments on commit c6f3371

Please sign in to comment.