|
|
|
@ -290,7 +290,7 @@ module ApplicationHelper |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def render_flash_message(type, message, html_options = {}) |
|
|
|
|
html_options = {:class => "flash #{type} icon icon-#{type}"}.merge(html_options) |
|
|
|
|
html_options = { :class => "flash #{type} icon icon-#{type}", role: "alert" }.merge(html_options) |
|
|
|
|
if User.current.impaired? |
|
|
|
|
content_tag('div', content_tag('a', join_flash_messages(message), :href => 'javascript:;'), html_options) |
|
|
|
|
else |
|
|
|
|