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-06-28 17:47:08 +02:00
|
|
|
"https://zeus.ugent.be/zinc/#{color}"
|
2016-09-02 00:05:38 +02:00
|
|
|
end
|
2016-08-04 19:06:36 +02:00
|
|
|
end
|