Images need alt value
This commit is contained in:
parent
e1394f8414
commit
0334fc45a3
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
module AssetHelper
|
module AssetHelper
|
||||||
def asset(type, identifier)
|
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>",
|
js: "<script src='/assets/scripts/#{identifier}.js'></script>",
|
||||||
css: "<link rel='stylesheet' type='text/css' href='/assets/stylesheets/#{identifier}.css'>"
|
css: "<link rel='stylesheet' type='text/css' href='/assets/stylesheets/#{identifier}.css'>"
|
||||||
}[type]
|
}[type]
|
||||||
|
|
Loading…
Reference in a new issue