Images need alt value

This commit is contained in:
Niko Strijbol 2016-11-02 15:36:02 +01:00
parent e1394f8414
commit 0334fc45a3

View file

@ -1,7 +1,7 @@
module AssetHelper
def asset(type, identifier)
{
img: "<img src='/assets/images/#{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]