Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
339 B

module ItemLabelHelper
def format_label(count, item)
count > 1 ? item.pluralize : item
end
def format_title(path, searched, page_title, current_user, item_label, count)
if searched.present?
title = "#{page_title} (#{count} #{item_label} matching ‘#{searched}’)"
else
title = page_title
end
end
end