{{define "title"}}Ticket Detail{{end}} {{define "content"}} {{with .Data}}
← Back to tickets
{{if .Ticket.Pinned}}📌{{end}}

{{.Ticket.Title}}

{{if .Repo}}{{.Repo.Name}} · {{end}} {{if .User}}by {{.User.Email}} · {{end}} Created {{formatDate .Ticket.CreatedAt}} {{if .Ticket.ForgejoIssueNumber}} · Forgejo #{{.Ticket.ForgejoIssueNumber}}{{end}}

{{if .Ticket.Priority}}{{priorityBadge (print .Ticket.Priority)}}{{end}} {{statusBadge (print .Ticket.Status)}}
{{if .Ticket.Assignees}}
Assigned to: {{.Ticket.Assignees}}
{{end}} {{if .Ticket.DueDate}}
Due: {{formatDatePtr .Ticket.DueDate}} {{if isOverdue .Ticket.DueDate}}(overdue){{end}}
{{end}}
{{renderMarkdown .Ticket.Description}}
{{if .Ticket.Attachments}}

Attachments

{{range .Ticket.Attachments}} {{.Name}} ({{.Size}} bytes) {{end}}
{{end}}
{{if .RelatedIssues}}

Related Issues

{{end}}

Timeline

{{if .Timeline}}
{{range .Timeline}} {{if eq .Type "comment"}}
{{.AuthorName}} {{if .IsTeam}}Team{{end}}
{{formatDateTime .CreatedAt}}
{{renderMarkdown .Body}}
{{if .Attachments}}
{{range .Attachments}} {{.Name}} {{end}}
{{end}}
{{else}}
{{.AuthorName}} {{.EventText}} · {{formatDateTime .CreatedAt}}
{{end}} {{end}}
{{else}}

No activity.

{{end}}
{{end}} {{end}}