improve display of multiline messages in alerts
This better handles error messages formatted for console display, by adding a <br> after each line. Hmm, I wonder if it'd be worth pulling in a markdown formatter, and running the messages through it?
This commit is contained in:
parent
e72f0b2898
commit
01bedb54c6
3 changed files with 12 additions and 1 deletions
|
@ -14,7 +14,11 @@
|
|||
$nothing
|
||||
$maybe i <- alertIcon alert
|
||||
^{htmlIcon i} #
|
||||
#{renderAlertMessage alert}
|
||||
$if multiline
|
||||
$forall l <- messagelines
|
||||
#{l}<br>
|
||||
$else
|
||||
#{message}
|
||||
$maybe button <- alertButton alert
|
||||
<br>
|
||||
<a .btn .btn-primary href="@{ClickAlert aid}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue