copay-crown
Version:
A Secure Crown Wallet
33 lines (31 loc) • 1.48 kB
HTML
<button ion-item (click)="openTxpModal(tx)">
<ion-icon item-start>
<img src="assets/img/icon-proposal-pending.svg">
</ion-icon>
<div class="action">
<span *ngIf="!tx.merchant">
<span *ngIf="tx.message">{{tx.message}}</span>
<span *ngIf="!tx.message && addressbook[tx.toAddress]">{{addressbook[tx.toAddress].name || addressbook[tx.toAddress]}}</span>
<span *ngIf="!tx.message && !addressbook[tx.toAddress]" translate>Sending</span>
</span>
<span *ngIf="tx.merchant">
<span *ngIf="tx.merchant.pr.ca"><ion-icon class="fi-lock"></ion-icon> {{tx.merchant.domain}}</span>
<span *ngIf="!tx.merchant.pr.ca"><ion-icon class="fion-icon-unlock"></ion-icon> {{tx.merchant.domain}}</span>
</span>
<div class="copayer">
<span *ngIf="tx.creatorName">{{ tx.creatorName}}@</span>
<span>{{tx.wallet.name}}</span>
</div>
</div>
<ion-note item-end>
<div class="amount">
<span *ngIf="tx.action == 'sent'">–</span>
<span *ngIf="tx.action == 'invalid'" translate> (possible double spend) </span>
<span *ngIf="tx.action != 'invalid'"> – {{tx.amount | satToUnit: tx.coin}}</span>
</div>
<div class="date">
<time *ngIf="tx.createdOn && createdWithinPastDay(tx.createdOn * 1000)">{{tx.createdOn * 1000 | amTimeAgo}}</time>
<time *ngIf="tx.createdOn && !createdWithinPastDay(tx.createdOn * 1000)">{{tx.createdOn * 1000 | date:'MMMM d, y'}}</time>
</div>
</ion-note>
</button>