zeus.ugent.be/lib/helpers/assets.rb
2016-09-04 01:39:03 +02:00

13 lines
402 B
Ruby

module AssetHelper
def asset(type, identifier)
{
img: "<img src='/assets/images/#{identifier}'/>",
js: "<script src='/assets/scripts/#{identifier}.js'></script>",
css: "<link rel='stylesheet' type='text/css' href='/assets/stylesheets/#{identifier}.css'>"
}[type]
end
def zeus_logo_url(color: :black)
"https://werthen.com/zinc/zeuslogo.svg?color=#{color}"
end
end