A corporation manager and dashboard for EVE Online
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

23 lignes
567 B

  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