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)
|
2017-01-26 15:53:10 +01:00
|
|
|
"https://zeus.ugent.be/zinc/zeuslogo.svg?color=#{color}"
|
2016-09-02 00:05:38 +02:00
|
|
|
end
|
2016-08-04 19:06:36 +02:00
|
|
|
end
|