2016-09-19 17:52:01 -03:00
< ion-modal-view ng-controller = "txDetailsController" ng-init = "init()" id = "tx-details" >
2016-09-20 13:56:54 -03:00
< ion-header-bar align-title = "center" class = "bar-royal" ng-style = "{'background-color': color}" >
2016-09-07 13:34:47 -03:00
< button class = "button button-clear" ng-click = "cancel()" >
2016-09-18 19:38:55 -03:00
{{'Close' | translate}}
2016-09-07 13:34:47 -03:00
< / button >
2016-09-27 12:57:46 -03:00
< div class = "title" >
2016-09-19 10:37:32 -03:00
{{title}}
2016-06-15 12:47:01 -03:00
< / div >
< / ion-header-bar >
2016-05-26 15:02:00 -03:00
2016-09-07 13:34:47 -03:00
< ion-content >
2016-09-20 16:21:05 -03:00
< div class = "header-modal text-center" ng-init = "showRate = false" >
2016-09-07 13:34:47 -03:00
< div ng-show = "btx.action != 'invalid'" >
2016-09-19 10:37:32 -03:00
2016-09-20 13:56:54 -03:00
< i class = "icon big-icon-svg" >
2016-09-20 12:02:45 -03:00
< img src = "img/icon-wallet.svg" ng-style = "{'background-color': color}" class = "bg" / >
2016-09-19 10:37:32 -03:00
< / i >
2016-09-27 12:57:46 -03:00
< div class = "size-36 m20t" copy-to-clipboard = "btx.amountStr" >
{{btx.amountStr}}
2016-09-07 13:34:47 -03:00
< / div >
2016-09-19 10:37:32 -03:00
2016-09-27 12:57:46 -03:00
< div class = "m10t" style = "height:20px;" ng-click = "showRate =! showRate" >
< span ng-show = "!showRate && alternativeAmountStr" >
2016-09-19 12:12:56 -03:00
{{alternativeAmountStr}}
< / span >
2016-09-27 12:57:46 -03:00
< span ng-show = "showRate && alternativeAmountStr" >
2016-09-19 12:12:56 -03:00
{{rateStr}} ({{rateDate | amDateFormat:'MM/DD/YYYY HH:mm a'}})
< / span >
< / div >
< / div >
2016-09-20 13:56:54 -03:00
< div ng-show = "btx.action == 'sent'" >
2016-09-27 12:57:46 -03:00
< div >
< span translate > Sent from< / span >
< strong ng-style = "{'color': color}" > {{wallet.credentials.walletName}}< / strong >
2016-09-07 13:34:47 -03:00
< / div >
2016-09-27 12:57:46 -03:00
< i class = "icon ion-ios-arrow-thin-down size-24" > < / i >
2016-09-20 13:56:54 -03:00
< / div >
2016-05-20 11:37:13 -03:00
2016-09-20 13:56:54 -03:00
< div ng-show = "btx.action == 'received'" >
< div class = "padding-vertical" >
< i class = "icon ion-ios-arrow-thin-up size-24" > < / i >
2016-05-20 11:37:13 -03:00
< / div >
2016-09-20 13:56:54 -03:00
< span translate > Received Funds< / span >
< / div >
2016-09-18 19:38:55 -03:00
2016-09-20 13:56:54 -03:00
< div ng-show = "btx.action == 'moved'" >
< span translate > Moved Funds< / span >
< / div >
2016-09-19 12:12:56 -03:00
2016-09-07 13:34:47 -03:00
< div ng-show = "btx.action == 'invalid'" >
-
< / div >
< / div >
2015-07-28 10:22:46 -07:00
2016-09-20 16:21:05 -03:00
< div class = "list" >
2016-10-13 16:33:25 -03:00
< div class = "item item-icon-left" ng-show = "btx.action == 'sent' && !btx.hasMultiplesOutputs && btx.addressTo && btx.addressTo != 'N/A'" >
2016-10-11 14:30:41 -04:00
< i class = "icon icon-svg" > < img src = "img/icon-bitcoin-symbol.svg" > < / i >
2016-10-13 16:33:25 -03:00
< div copy-to-clipboard = "btx.addressTo" >
2016-09-07 13:34:47 -03:00
< 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 >
2016-05-26 15:02:00 -03:00
< / span >
2016-09-07 13:34:47 -03:00
< span ng-if = "!btx.merchant" >
< span ng-show = "btx.labelTo" > {{btx.labelTo}}< / span >
2016-09-27 12:57:46 -03:00
< contact ng-show = "!btx.labelTo" address = "{{btx.addressTo}}" > < / contact >
2016-05-26 15:02:00 -03:00
< / span >
2016-09-18 19:38:55 -03:00
< / div >
2016-09-07 13:34:47 -03:00
< / div >
2016-05-31 14:51:17 -03:00
2016-10-13 16:33:25 -03:00
< div ng-show = "btx.hasMultiplesOutputs" class = "item item-icon-right item-heading" ng-click = "showMultiplesOutputs = !showMultiplesOutputs" >
{{'Recipients'|translate}}
[ {{btx.recipientCount}} ]
< i class = "icon bp-arrow-up" ng-show = "showMultiplesOutputs" > < / i >
< i class = "icon bp-arrow-down" ng-show = "!showMultiplesOutputs" > < / i >
< / div >
< div class = "item" ng-show = "btx.hasMultiplesOutputs && showMultiplesOutputs"
ng-repeat="output in btx.outputs"
ng-include="'views/includes/output.html'">
< / div >
2016-09-27 12:57:46 -03:00
< div class = "item item-icon-left"
2016-10-13 12:20:53 -04:00
ng-click="openExternalLink('https://' + (getShortNetworkName() == 'test' ? 'test-' : '') + 'insight.bitpay.com/tx/' + btx.txid, true, 'View Transaction on Insight', 'Would you like to view this transaction on the Insight blockchain explorer?
', 'Open Insight', 'Go back')">
2016-09-18 19:38:55 -03:00
< i class = "icon ion-ios-upload-outline" > < / i >
2016-09-19 11:30:44 -03:00
< span class = "text-gray" translate > View transaction on the blockchain< / span >
2016-09-18 19:38:55 -03:00
< / div >
2016-05-31 14:51:17 -03:00
2016-09-18 19:38:55 -03:00
< div class = "item" >
2016-09-27 12:57:46 -03:00
< div ng-if = "btx.action == 'received' || btx.action == 'moved'" >
{{'Date'|translate}}
2016-09-20 13:56:54 -03:00
< span class = "item-note" >
< time > {{ btx.time * 1000 | amDateFormat:'MM/DD/YYYY HH:mm a'}}< / time >
< / span >
< / div >
< div ng-if = "btx.action == 'sent'" >
2016-09-27 12:57:46 -03:00
{{'Created by'|translate}} < strong > {{btx.creatorName}}< / strong >
2016-09-20 13:56:54 -03:00
< span class = "item-note" >
< time > {{ btx.createdOn * 1000 | amDateFormat:'MM/DD/YYYY HH:mm a'}}< / time >
< / span >
< / div >
2016-09-18 19:38:55 -03:00
< / div >
2016-05-26 15:02:00 -03:00
2016-10-11 15:31:16 -03:00
< div class = "item" ng-if = "btx.action != 'received' && btx.feeStr" copy-to-clipboard = "btx.feeStr" >
2016-09-27 12:57:46 -03:00
{{'Fee'|translate}}: {{btx.feeStr}}
< span class = "item-note" >
2016-09-07 13:34:47 -03:00
< 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}}
2016-05-31 14:51:17 -03:00
< / span >
2016-09-07 13:34:47 -03:00
< span class = "label gray radius" ng-show = "btx.safeConfirmed" >
{{btx.safeConfirmed}}
< / span >
2016-10-11 15:31:16 -03:00
< span ng-show = "btx.confirmations && btx.confirmations > 0" translate > Confirmations< / span >
2016-09-07 13:34:47 -03:00
< / span >
2016-09-18 19:38:55 -03:00
< / div >
< div class = "item" ng-if = "btx.message && btx.action != 'received'" copy-to-clipboard = "btx.message" >
2016-09-27 12:57:46 -03:00
{{'Description'|translate}}
< span class = "item-note" >
{{btx.message}}
< / span >
2016-09-18 19:38:55 -03:00
< / div >
2016-09-07 13:34:47 -03:00
2016-09-18 19:38:55 -03:00
< div ng-if = "btx.merchant" class = "item" copy-to-clipboard = "btx.merchant.pr.pd.memo" >
2016-09-27 12:57:46 -03:00
{{'Merchant message'|translate}}
< span class = "item-note" >
2016-09-18 19:38:55 -03:00
{{btx.merchant.pr.pd.memo}}
< / span >
< / 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 >
2016-09-27 12:57:46 -03:00
< div class = "item" ng-click = "showCommentPopup()" >
{{'Memo'|translate}}
< span class = "item-note" translate ng-if = "!btx.note" >
< i class = "icon ion-ios-plus-empty" > < / i >
< / span >
< span class = "item-note" ng-if = "btx.note && btx.note.body" >
{{btx.note.body}}
< div >
< span translate > Edited by< / span > {{btx.note.editedByName}},
< time > {{btx.note.editedOn * 1000 | amTimeAgo}}< / time >
< / div >
< / span >
2016-09-19 11:30:44 -03:00
< / div >
2016-09-19 17:52:01 -03:00
< div ng-if = "actionList[0]" >
< div class = "item item-divider" translate > Timeline< / div >
< div class = "item" ng-class = "{'action-created' : a.type == 'created' || a.type == 'accept', 'action-rejected' : a.type == 'reject'}" ng-repeat = "a in actionList track by $index" >
< div class = "row" >
< div class = "col col-10" >
< span id = "timeline-icon" > {{$index + 1}}< / span >
< / div >
< div class = "col" >
< div > {{a.description}}< / div >
< div >
< span > {{a.by}}< / span >
< span class = "item-note" >
< time > {{ a.time * 1000 | amDateFormat:'MM/DD/YYYY HH:mm a'}}< / time >
< / span >
< / div >
< / div >
< / div >
< / div >
2016-05-26 15:02:00 -03:00
< / div >
2016-09-07 13:34:47 -03:00
< / div >
2016-05-20 11:37:13 -03:00
< / ion-content >
2016-05-27 15:06:41 -03:00
< / ion-modal-view >