A corporation manager and dashboard for EVE Online
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

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