Files
nairobi/app/helpers/legislation_helper.rb
Javi Martín f93281fd02 Extract link text to a helper
This way we can use the same code in custom views which won't use the
same text.
2018-10-03 22:06:20 +02:00

14 lines
285 B
Ruby

module LegislationHelper
def format_date(date)
l(date, format: "%d %h %Y") if date
end
def format_date_for_calendar_form(date)
l(date, format: "%d/%m/%Y") if date
end
def new_legislation_proposal_link_text(process)
t("proposals.index.start_proposal")
end
end