A corporation manager and dashboard for EVE Online
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

24 行
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