Skip to content

Commit

Permalink
- Further changes to EDM preliminary sentences:
Browse files Browse the repository at this point in the history
-- Move primary sponsor to before sponsor name
-- Add comma after primary sponsor party
-- Remove 'and tabled on' as it is now redundant
  • Loading branch information
j-corry committed Nov 29, 2024
1 parent 3c81fee commit 1478f6a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions app/views/search/preliminary_sentences/_edm.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@
.content-prelim-text#prelim-text
%span>= object_display_name_link(object.object_name)
- unless object.primary_sponsor.blank?
%span=" tabled by "
%span=" tabled by primary sponsor "
%span>= search_link(object.primary_sponsor)
- if object.primary_sponsor_party.blank?
%span= " (primary sponsor)"
- else
%span= " (primary sponsor, "
- unless object.primary_sponsor_party.blank?
%span= " ("
%span>= render 'search/fragments/list', items: object.primary_sponsor_party, terminator: '', singular: false
%span= ")"
%span= " and "
%span= " tabled on "
%span>= ")"
%span= ", on "
%span>= format_date(object.date_tabled)
%span= ", in the "
%span= render 'search/fragments/list', items: object.legislature, terminator: '.', singular: false
Expand Down

0 comments on commit 1478f6a

Please sign in to comment.