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.
 
 
 
 
 

24 lines
573 B

  1. require 'calefaction/eve'
  2. require 'calefaction/version'
  3. module ApplicationHelper
  4. def get_title(title = '')
  5. base = AdminSetting.get(:site_name)
  6. title.empty? ? base : "#{title} : #{base}"
  7. end
  8. def corp_logo_tag
  9. corp_id = AdminSetting.get(:corp_id)
  10. corp_name = AdminSetting.get(:corp_name)
  11. image_tag("https://image.eveonline.com/Corporation/#{corp_id}_256.png",
  12. title: corp_name, alt: "#{corp_name} Logo")
  13. end
  14. def copyright_year
  15. start = 2015
  16. year = Time.now.year
  17. year > start ? "#{start}–#{year}" : start
  18. end
  19. end