mirror of
https://github.com/neocities/neocities.git
synced 2025-05-14 00:17:26 +02:00
DRY up flash display code, fix colors for success/error
This commit is contained in:
parent
019ceff01c
commit
ae1f3a81e3
11 changed files with 15 additions and 87 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue