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 564 B

9 years ago
9 years ago
9 years ago
9 years ago
12345678910111213141516171819202122
  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 corp_logo_tag
  8. corp_id = AdminSetting.get(:corp_id)
  9. corp_name = AdminSetting.get(:corp_name)
  10. image_tag("https://image.eveonline.com/Corporation/#{corp_id}_256.png",
  11. id: 'corp-logo', title: corp_name, alt: "#{corp_name} Logo")
  12. end
  13. def copyright_year
  14. start = 2015
  15. year = Time.now.year
  16. year > start ? "#{start}–#{year}" : start
  17. end
  18. end