13 lines
406 B
Ruby
13 lines
406 B
Ruby
module AssetHelper
|
|
def asset(type, identifier)
|
|
{
|
|
img: "<img src='/assets/images/#{identifier}' alt='#{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://zeus.ugent.be/zinc/#{color}"
|
|
end
|
|
end
|