Skip to content

Commit

Permalink
fix: show tx without input addres. Show type of address for tx out
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgustavo committed Jan 10, 2014
1 parent a5b9df2 commit fb00366
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions public/views/transaction.html
Expand Up @@ -22,19 +22,30 @@ <h1>
<tr>
<td width="45%">
<ul class="list-unstyled" data-ng-repeat="vin in tx.vin" data-ng-show="!tx.isCoinBase">
<li><a href="/#!/address/{{vin.addr}}">{{vin.addr}}</a> <span class="pull-right badge">{{vin.value}} BTC</span></li>
<li>
<span data-ng-show="!vin.addr">No parse address</span>
<a data-ng-show="vin.addr" href="/#!/address/{{vin.addr}}">{{vin.addr}}</a>
<span class="pull-right badge">{{vin.value}} BTC</span>
</li>
</ul>
<div data-ng-show="tx.isCoinBase">
No Inputs (Newly Generated isCoinBasens)
</div>
</td>
<td width="10%" style="text-align: center;"><span class="glyphicon glyphicon-chevron-right">&nbsp;</span></td>
<td width="45%">
<div data-ng-repeat="vout in tx.vout">
<ul class="list-unstyled" data-ng-repeat="addr in vout.scriptPubKey.addresses">
<li><a href="/#!/address/{{addr}}">{{addr}}</a> <span class="pull-right badge">{{vout.value}} BTC</span></li>
</ul>
</div>
<table class="table table-condensed">
<tbody>
<tr data-ng-repeat="vout in tx.vout">
<td><b>{{vout.scriptPubKey.type}}</b></td>
<td>
<ul class="list-unstyled" data-ng-repeat="addr in vout.scriptPubKey.addresses">
<li><a href="/#!/address/{{addr}}">{{addr}}</a> <span class="pull-right badge">{{vout.value}} BTC</span></li>
</ul>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
Expand Down

0 comments on commit fb00366

Please sign in to comment.