A corporation manager and dashboard for EVE Online
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

application_helper.rb 547 B

9 년 전
9 년 전
12345678910111213141516171819202122
  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. 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