2018-11-23 09:41:08 -08:00
|
|
|
- successes = req.flash('success');
|
|
|
|
- errors = req.flash('error');
|
|
|
|
|
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())
|