DRY up flash display code, fix colors for success/error

This commit is contained in:
Kyle Drake 2017-03-03 20:36:58 -08:00
parent 019ceff01c
commit ae1f3a81e3
11 changed files with 15 additions and 87 deletions

View file

@ -110,3 +110,7 @@ end
def sanitize_comment(text)
Rinku.auto_link Sanitize.fragment(text), :all, 'target="_blank" rel="nofollow"'
end
def flash_display(opts={})
erb :'_flash', layout: false, locals: {opts: opts}
end