From c9f6d1d00b45ad1728b6cf6df8808f9f87f0470e Mon Sep 17 00:00:00 2001 From: Macaulay Davies Date: Fri, 27 Oct 2017 21:48:27 +0200 Subject: [PATCH] saying no tickets mined in this block when non is --- views/block.tmpl | 46 +++++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/views/block.tmpl b/views/block.tmpl index eae8e1788..182b5a4f2 100644 --- a/views/block.tmpl +++ b/views/block.tmpl @@ -193,28 +193,36 @@

Tickets

+ {{if not .Tickets}} - - - - - - - + + + +
Transaction IDTotal DCRFeeSize
No tickets mined this block.
+ {{else}} + + + + + + + + {{ range .Tickets}} - - - - - - + + + + + + {{end}} - -
Transaction IDTotal DCRFeeSize
- - {{.TxID}} - - {{template "decimalParts" (float64AsDecimalParts .Total false)}}{{.Fee}}{{.FormattedSize}}
+ + {{.TxID}} + + {{template "decimalParts" (float64AsDecimalParts .Total false)}}{{.Fee}}{{.FormattedSize}}
+ + + {{end}}