Added UI for client error reports
This commit is contained in:
19
pages/admin/clienterrors.pixy
Normal file
19
pages/admin/clienterrors.pixy
Normal file
@ -0,0 +1,19 @@
|
||||
component ClientErrors(reports []*arn.ClientErrorReport)
|
||||
AdminTabs
|
||||
h1.mountable Client-side errors
|
||||
|
||||
table
|
||||
tbody
|
||||
each report in reports
|
||||
tr.mountable
|
||||
td
|
||||
a(href="/api/clienterrorreport/" + report.ID, target="_blank")= report.Message
|
||||
td
|
||||
each line in strings.Split(report.Stack, "\n")
|
||||
p= line
|
||||
td.utc-date(data-date=report.Created)
|
||||
td.edit-log-user
|
||||
if report.CreatedBy != ""
|
||||
Avatar(report.Creator())
|
||||
else
|
||||
span anonymous
|
Reference in New Issue
Block a user