{{ define "ticket-search-result" }} {{ if .Found }}

Ticket

{{ if .Ticket.Confirmed }} {{ else }} {{ end }}
Hash {{ .Ticket.Hash }}
Status Confirmed (purchase height: {{ .Ticket.PurchaseHeight }}) Not confirmed
Ticket Outcome {{ .Ticket.Outcome }}
Voting WIF {{ .Ticket.VotingWIF }}
Commitment Address {{ .Ticket.CommitmentAddress }}
Alternate Signing Address {{ .AltSignAddr }}

Fee

Fee Address {{ .Ticket.FeeAddress }}
Fee Address Index {{ .Ticket.FeeAddressIndex }}
Fee Amount {{ atomsToDCR .Ticket.FeeAmount }}
Fee Expiration {{ .Ticket.FeeExpiration }} ({{ dateTime .Ticket.FeeExpiration }})
Fee Tx Hash {{ .Ticket.FeeTxHash }}
Fee Tx {{ .Ticket.FeeTxHex }}
Fee Tx Status {{ .Ticket.FeeTxStatus }}

Vote Choices

Consensus Vote Choices {{ range $key, $value := .Ticket.VoteChoices }} {{ $key }}: {{ $value }}
{{ end }}
Vote Choice Changes
({{ .MaxVoteChanges }} most recent)
{{ range $key, $value := .VoteChanges }}
{{ if eq $key 0}} Initial choices {{ else }} Change {{ $key }} {{ end }}
Request {{ indentJSON $value.Request }}
Request
Signature
{{ $value.RequestSignature }}
Response {{ indentJSON $value.Response }}
Response
Signature
{{ $value.ResponseSignature }}
{{end}}
{{ else }}

No ticket found with hash {{ .Hash }}

{{ end }} {{ end }}