christmas/views/includes/messages.pug

11 lines
449 B
Text
Raw Normal View History

2018-11-23 09:41:08 -08:00
- successes = req.flash('success');
- errors = req.flash('error');
2020-11-08 16:01:41 -08:00
p.has-text-danger.is-size-4.has-text-weight-bold#securityNotice= _CC.securityNotice
2018-11-20 11:19:58 -08:00
if successes
each success in successes
2018-11-23 09:41:08 -08:00
p.has-text-success= (success.toString().startsWith('[object ') ? JSON.stringify(success) : success.toString())
2018-11-20 11:19:58 -08:00
if errors
each error in errors
2018-11-23 09:41:08 -08:00
p.has-text-danger= (error.toString().startsWith('[object ') ? JSON.stringify(error) : error.toString())