Refactory single/multiples outputs

This commit is contained in:
Gustavo Maximiliano Cortez 2015-08-20 16:43:03 -03:00
commit 854b1511de
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
8 changed files with 127 additions and 121 deletions

View file

@ -11,18 +11,19 @@
<time class="right size-12 text-gray m5t">{{ (tx.ts || tx.createdOn ) * 1000 | amTimeAgo}}</time>
</div>
<div class="ellipsis size-14">
<span ng-if="!tx.showSingle">
<span ng-if="tx.hasMultiplesOutputs">
<span translate>Recipients</span>:
<span>{{tx.outputs.length}}</span>
<span>{{tx.recipientCount}}</span>
</span>
<span ng-if="tx.showSingle">
<span ng-if="!tx.hasMultiplesOutputs">
<span translate>To</span>:
<span ng-if="tx.merchant">
<span ng-show="tx.merchant.pr.ca"><i class="fi-lock"></i> {{tx.merchant.domain}}</span>
<span ng-show="!tx.merchant.pr.ca"><i class="fi-unlock"></i> {{tx.merchant.domain}}</span>
</span>
<contact address="{{tx.toAddress}}" ng-hide="tx.merchant"> </contact>
{{tx.toAddress}}
<span ng-if="!tx.merchant">
{{tx.toAddress}}
</span>
</span>
</div>
<div class="ellipsis text-gray size-14">