A corporation manager and dashboard for EVE Online
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.

application_helper.rb 374 B

9 years ago
9 years ago
9 years ago
12345678910111213141516171819
  1. require 'calefaction/version'
  2. module ApplicationHelper
  3. def get_title(title = '')
  4. base = AdminSetting.get('site_name')
  5. title.empty? ? base : "#{title} : #{base}"
  6. end
  7. def get_copyright_year
  8. start = 2015
  9. year = Time.now.year
  10. year > start ? "#{start}–#{year}" : start
  11. end
  12. def get_copyright_holders
  13. AdminSetting.get('copyright')
  14. end
  15. end