{{define "content"}}
Timeline
{{range .Timeline}}
{{if eq .Type "create"}}
{{if eq $.Status "open"}}
{{else if eq $.Status "closed"}}
{{end}}
{{$.Title}}
{{if .Message}}
{{.Message}}
{{else}}
No description provided.
{{end}}
{{else if eq .Type "comment"}}
{{if .Message}}
{{.Message}}
{{else}}
No comment provided.
{{end}}
{{else if eq .Type "title"}}
{{.Author}} changed the title to {{.Title}}.
{{else if eq .Type "status"}}
{{.Author}} {{.Status}} the bug.
{{else if eq .Type "labels"}}
{{.Author}}
{{if .AddedLabels}}
added label{{if gt (len .AddedLabels) 1}}s{{end}}
{{range $i, $label := .AddedLabels}}{{if $i}}, {{end}}{{$label}}{{end}}
{{end}}
{{if and .AddedLabels .RemovedLabels}}and{{end}}
{{if .RemovedLabels}}
removed label{{if gt (len .RemovedLabels) 1}}s{{end}}
{{range $i, $label := .RemovedLabels}}{{if $i}}, {{end}}{{$label}}{{end}}
{{end}}
{{end}}
{{end}}
{{end}}