161 lines
6.4 KiB
HTML
161 lines
6.4 KiB
HTML
<ion-modal-view ng-controller="txDetailsController">
|
|
<ion-header-bar align-title="center" class="bar-royal" ng-style="{'background-color':color}">
|
|
<button class="button button-clear" ng-click="cancel()">
|
|
{{'Close' | translate}}
|
|
</button>
|
|
<div class="title" translate>
|
|
{{title}}
|
|
</div>
|
|
</ion-header-bar>
|
|
|
|
<ion-content>
|
|
<div class="header-modal text-center" ng-init="getAlternativeAmount(btx); showRate = false">
|
|
<div ng-show="btx.action != 'invalid'">
|
|
|
|
<i class="icon big-icon-svg">
|
|
<img src="img/icon-wallet.svg" ng-style="{'background-color': wallet.color}" class="bg"/>
|
|
</i>
|
|
|
|
<div class="size-36" copy-to-clipboard="btx.amountStr">
|
|
<span class="enable_text_select">{{btx.amountStr}}</span>
|
|
</div>
|
|
|
|
<div class="alternative-amount" ng-click="showRate =! showRate">
|
|
<span class="label gray radius" ng-show="!showRate && alternativeAmountStr">
|
|
{{alternativeAmountStr}}
|
|
</span>
|
|
<span class="size-12" ng-show="showRate && alternativeAmountStr">
|
|
{{rateStr}} ({{rateDate | amDateFormat:'MM/DD/YYYY HH:mm a'}})
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div ng-show="btx.action == 'sent'">
|
|
<span translate>Sent from</span> {{wallet.credentials.walletName}}
|
|
<div class="padding-vertical">
|
|
<i class="icon ion-ios-arrow-thin-down size-24"></i>
|
|
</div>
|
|
</div>
|
|
|
|
<div ng-show="btx.action == 'received'">
|
|
<div class="padding-vertical">
|
|
<i class="icon ion-ios-arrow-thin-up size-24"></i>
|
|
</div>
|
|
<span translate>Received Funds</span>
|
|
</div>
|
|
|
|
<div ng-show="btx.action == 'moved'">
|
|
<span translate>Moved Funds</span>
|
|
</div>
|
|
|
|
<div ng-show="btx.action == 'invalid'">
|
|
-
|
|
</div>
|
|
</div>
|
|
|
|
<div class="list">
|
|
<div class="item item-icon-left" ng-show="btx.action == 'sent'">
|
|
<i class="icon ion-social-bitcoin-outline"></i>
|
|
<div ng-if="!btx.hasMultiplesOutputs && btx.addressTo && btx.addressTo != 'N/A'" copy-to-clipboard="btx.addressTo">
|
|
<span ng-if="btx.merchant">
|
|
<span ng-show="btx.merchant.pr.ca"><i class="fi-lock color-greeni"></i> {{btx.merchant.domain}}</span>
|
|
<span ng-show="!btx.merchant.pr.ca"><i class="fi-unlock color-yellowi"></i> {{btx.merchant.domain}}</span>
|
|
</span>
|
|
<span ng-if="!btx.merchant">
|
|
<span ng-show="btx.labelTo">{{btx.labelTo}}</span>
|
|
<contact ng-show="!btx.labelTo" class="enable_text_select" address="{{btx.addressTo}}"></contact>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="item item-icon-left" ng-click="openExternalLink('https://' +
|
|
(getShortNetworkName() == 'test' ? 'test-' : '') + 'insight.bitpay.com/tx/' + btx.txid)">
|
|
<i class="icon ion-ios-upload-outline"></i>
|
|
<span class="text-gray" translate>View transaction on the blockchain</span>
|
|
</div>
|
|
|
|
<div class="item">
|
|
<div translate>Created by</div>
|
|
<span>{{wallet.credentials.copayerName}}</span>
|
|
<span class="item-note">
|
|
<time>{{ btx.time * 1000 | amDateFormat:'MM/DD/YYYY HH:mm a'}}</time>
|
|
</span>
|
|
</div>
|
|
|
|
<div class="item" ng-show="btx.action != 'received'" copy-to-clipboard="btx.feeStr">
|
|
<div translate>Fee</div>
|
|
<span class="enable_text_select">{{btx.feeLevel}} ({{btx.feeStr}})</span>
|
|
<span class="right">
|
|
<span class="text-warning" ng-show="!btx.confirmations || btx.confirmations == 0" translate>
|
|
Unconfirmed
|
|
</span>
|
|
<span class="label gray radius" ng-show="btx.confirmations>0 && !btx.safeConfirmed">
|
|
{{btx.confirmations}}
|
|
</span>
|
|
<span class="label gray radius" ng-show="btx.safeConfirmed">
|
|
{{btx.safeConfirmed}}
|
|
</span>
|
|
<span translate>Confirmations</span>
|
|
</span>
|
|
</div>
|
|
|
|
<div class="item" ng-if="btx.message && btx.action != 'received'" copy-to-clipboard="btx.message">
|
|
<div translate>Description</div>
|
|
<span class="enable_text_select">{{btx.message}}</span>
|
|
</div>
|
|
|
|
<div ng-if="btx.merchant" class="item" copy-to-clipboard="btx.merchant.pr.pd.memo">
|
|
<div translate>Merchant message</div>
|
|
<span class="enable_text_select">
|
|
{{btx.merchant.pr.pd.memo}}
|
|
</span>
|
|
</div>
|
|
|
|
<div ng-show="btx.hasMultiplesOutputs" class="item" ng-click="showMultiplesOutputs = !showMultiplesOutputs">
|
|
<div translate>Recipients</div>
|
|
<span class="right">{{btx.recipientCount}}
|
|
<i ng-show="showMultiplesOutputs" class="icon-arrow-up3 size-24"></i>
|
|
<i ng-show="!showMultiplesOutputs" class="icon-arrow-down3 size-24"></i>
|
|
</span>
|
|
</div>
|
|
|
|
<div class="item" ng-show="btx.hasMultiplesOutputs && showMultiplesOutputs"
|
|
ng-repeat="output in btx.outputs"
|
|
ng-include="'views/includes/output.html'">
|
|
</div>
|
|
|
|
<div ng-if="btx.action == 'invalid'" class="item">
|
|
<span class="right" translate>
|
|
This transaction has become invalid; possibly due to a double spend attempt.
|
|
</span>
|
|
</div>
|
|
|
|
<div class="item item-icon-right" ng-click="showCommentPopup()">
|
|
<span class="text-gray" translate ng-show="!btx.note">Add Memo</i></span>
|
|
<span class="text-gray" translate ng-show="btx.note">Memo</span>
|
|
<i class="icon nav-item-arrow-right"></i>
|
|
<div ng-show="btx.note && btx.note.body">
|
|
<span class="enable_text_select">{{btx.note.body}}</span><br>
|
|
<span class="text-italic item-note size-12">
|
|
<span translate>Edited by</span> <span>{{btx.note.editedByName}}</span>,
|
|
<time>{{btx.note.editedOn * 1000 | amTimeAgo}}</time></span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="item item-divider" ng-show="btx.action == 'sent'" translate>Timeline</div>
|
|
|
|
</div>
|
|
|
|
<div class="list" ng-if="btx.actions[0] && isShared">
|
|
<div class="item item-divider" translate>Participants</div>
|
|
<div class="item" ng-repeat="c in btx.actions">
|
|
<span class="item-note">
|
|
<i ng-if="c.type == 'reject'" class="fi-x icon-sign x db"></i>
|
|
<i ng-if="c.type == 'accept'" class="fi-check icon-sign check db"></i>
|
|
</span>
|
|
{{c.copayerName}} <span ng-if="c.copayerId == copayerId">({{'Me'|translate}})</span>
|
|
</div>
|
|
</div>
|
|
</ion-content>
|
|
</ion-modal-view>
|