zeus.ugent.be/lib/helpers/assets.rb

14 lines
423 B
Ruby
Raw Normal View History

2016-08-04 19:06:36 +02:00
module AssetHelper
def asset(type, identifier)
{
2016-11-02 15:36:02 +01:00
img: "<img src='/assets/images/#{identifier}' alt='#{identifier}' />",
2016-08-04 19:06:36 +02:00
js: "<script src='/assets/scripts/#{identifier}.js'></script>",
css: "<link rel='stylesheet' type='text/css' href='/assets/stylesheets/#{identifier}.css'>"
}[type]
end
2016-09-02 00:05:38 +02:00
def zeus_logo_url(color: :black)
2016-09-04 01:39:03 +02:00
"https://werthen.com/zinc/zeuslogo.svg?color=#{color}"
2016-09-02 00:05:38 +02:00
end
2016-08-04 19:06:36 +02:00
end