package popup import "strconv" import "fmt" import "git.haelnorr.com/h/golib/notify" // ErrorModalWS displays a WebSocket-triggered error modal // Matches design of error page (page.ErrorWithDetails) templ ErrorModalWS(code int, stacktrace string, nt notify.Notification, id int) {

{ strconv.Itoa(code) }

{ nt.Title }

{ nt.Message }

if stacktrace != "" {
Details (click to expand)
{ stacktrace }
}
}