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

14 lines
402 B
Ruby
Raw Permalink 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)
2018-08-22 01:30:09 +02:00
"https://zinc.zeus.gent/#{color}"
2016-09-02 00:05:38 +02:00
end
2016-08-04 19:06:36 +02:00
end