refactor bug report response to use embedded template for report formatting
This commit is contained in:
22
internal/handlers/templates/report.txt.tmpl
Normal file
22
internal/handlers/templates/report.txt.tmpl
Normal file
@@ -0,0 +1,22 @@
|
||||
EMLy Bug Report #{{ .ID }}
|
||||
========================
|
||||
|
||||
Name: {{ .Name }}
|
||||
Email: {{ .Email }}
|
||||
Hostname: {{ .Hostname }}
|
||||
OS User: {{ .OsUser }}
|
||||
HWID: {{ .HWID }}
|
||||
IP: {{ .SubmitterIP }}
|
||||
Status: {{ .Status }}
|
||||
Created: {{ .CreatedAt }}
|
||||
Updated: {{ .UpdatedAt }}
|
||||
|
||||
Description:
|
||||
------------
|
||||
{{ .Description }}
|
||||
{{ if .SystemInfo }}
|
||||
System Info:
|
||||
------------
|
||||
{{ .SystemInfo }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user