Skip to content

Commit

Permalink
saying no tickets mined in this block when non is
Browse files Browse the repository at this point in the history
  • Loading branch information
McEdward authored and chappjc committed Oct 29, 2017
1 parent d776aaa commit c9f6d1d
Showing 1 changed file with 27 additions and 19 deletions.
46 changes: 27 additions & 19 deletions views/block.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -193,28 +193,36 @@
<span class="anchor" id="tickets"></span>
<div class="col-md-12">
<h4><span>Tickets</span></h4>
{{if not .Tickets}}
<table class="table table-sm striped">
<thead>
<th>Transaction ID</th>
<th class="text-right">Total DCR</th>
<th class="text-right">Fee</th>
<th>Size</th>
</thead>
<tbody>
<tr>
<td>No tickets mined this block.</td>
</tr>
</table>
{{else}}
<table class="table table-sm striped">
<thead>
<th>Transaction ID</th>
<th class="text-right">Total DCR</th>
<th class="text-right">Fee</th>
<th>Size</th>
</thead>
<tbody>
{{ range .Tickets}}
<tr>
<td class="break-word">
<span>
<a class="hash" href="/explorer/tx/{{.TxID}}">{{.TxID}}</a>
</span>
</td>
<td class="text-right dcr mono fs15">{{template "decimalParts" (float64AsDecimalParts .Total false)}}</td>
<td class="mono fs15 text-right">{{.Fee}}</td>
<td class="mono fs15">{{.FormattedSize}}</td>
</tr>
<tr>
<td class="break-word">
<span>
<a class="hash" href="/explorer/tx/{{.TxID}}">{{.TxID}}</a>
</span>
</td>
<td class="text-right dcr mono fs15">{{template "decimalParts" (float64AsDecimalParts .Total false)}}</td>
<td class="mono fs15 text-right">{{.Fee}}</td>
<td class="mono fs15">{{.FormattedSize}}</td>
</tr>
{{end}}
</tbody>
</table>
</tbody>
</table>
{{end}}
</div>
</div>

Expand Down

0 comments on commit c9f6d1d

Please sign in to comment.