Planning applications tracker for InLinkUK from BT kiosks. https://kiosks.adrianshort.org/
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617
  1. def short_date(s)
  2. return if s.nil?
  3. Date.parse(s).strftime("%e %b %Y").gsub(' ', ' ')
  4. end
  5. def cleanup(s)
  6. return if s.nil?
  7. s.sub!('Unknown', '')
  8. s.sub!('Not Available', '')
  9. # s = "<span class=grant>#{s}</span>" if s.match(/approve/i)
  10. # s = "<span class=refuse>#{s}</span>" if s.match(/refuse/i)
  11. s
  12. end
  13. def slug(s)
  14. s.downcase.gsub(' ', '-')
  15. end