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

9 年之前
9 年之前
9 年之前
9 年之前
1234567891011121314151617181920212223
  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