christmas/views/includes/messages.pug
2020-11-08 19:01:41 -05:00

11 lines
No EOL
449 B
Text

- successes = req.flash('success');
- errors = req.flash('error');
p.has-text-danger.is-size-4.has-text-weight-bold#securityNotice= _CC.securityNotice
if successes
each success in successes
p.has-text-success= (success.toString().startsWith('[object ') ? JSON.stringify(success) : success.toString())
if errors
each error in errors
p.has-text-danger= (error.toString().startsWith('[object ') ? JSON.stringify(error) : error.toString())