copay/views/history.html

83 lines
3.3 KiB
HTML
Raw Normal View History

2014-10-30 10:13:40 -07:00
<div class="transactions" data-ng-controller="HistoryController" data-ng-init="update()">
2014-12-04 08:42:50 -08:00
<div class="row">
<div class="large-12 medium-12 small-12 columns">
<h1 class="hide-for-large-up">{{$root.title}}</h1>
<div ng-if="loading" class="m20b">
<i class="fi-bitcoin-circle icon-rotate spinner"></i>
<span translate>Loading...</span>
</div>
<div ng-if="!blockchain_txs[0].txid && !loading">
<em><strong translate>No transactions yet.</strong></em>
2014-11-26 13:50:58 -08:00
</div>
</div>
2014-12-04 08:42:50 -08:00
</div>
<div class="row" ng-if="blockchain_txs[0].txid">
<div class="large-12 columns">
<div class="panel" ng-repeat="btx in blockchain_txs | orderBy:'-ts'">
<div class="row size-14" ng-click="openTxModal(btx)">
<div class="large-2 medium-3 small-4 columns">
<div class="tx-date oh">
<time ng-if="btx.ts">{{btx.ts | amTimeAgo}}</time>
<span class="label alert" ng-show="!btx.ts && (!btx.confirmations || btx.confirmations == 0)">
<span translate>Unconfirmed</span>
2014-12-04 08:42:50 -08:00
</span>
</div>
2014-12-04 08:42:50 -08:00
</div>
2014-10-30 12:46:39 -07:00
2014-12-04 11:19:39 -08:00
<div class="large-4 medium-9 small-8 columns text-right">
2014-12-04 10:55:56 -08:00
<span class="tx-amount " ng-class="{
'text-primary' : btx.action == 'received',
'text-warning': btx.action == 'sent',
'text-gray': btx.action == 'moved'}">
2014-12-04 08:42:50 -08:00
<b>{{btx.amount}} {{$root.wallet.settings.unitName}}</b>
<span class="alt-currency" ng-class="{
2014-12-01 09:00:42 -08:00
'green' : btx.action == 'received',
'red': btx.action == 'sent',
'gray': btx.action == 'moved'}" ng-show="btx.alternativeAmount != null">
{{btx.alternativeAmount}} {{$root.wallet.settings.alternativeIsoCode}}
2014-12-01 09:00:42 -08:00
</span>
2014-12-04 10:55:56 -08:00
</span>
<span ng-class="{
'text-primary' : btx.action == 'received',
'text-warning': btx.action == 'sent',
'text-gray': btx.action == 'moved'}">
2014-12-04 08:42:50 -08:00
<i class="m15h" ng-class="{
'fi-arrow-left' : btx.action == 'received',
'fi-arrow-right': btx.action == 'sent',
'fi-loop': btx.action == 'moved'}"></i>
2014-12-04 10:55:56 -08:00
</span>
</div>
2014-11-25 10:09:51 -08:00
2014-12-04 11:19:39 -08:00
<div class="large-6 medium-12 small-12 columns text-gray">
2014-12-04 08:42:50 -08:00
<div class="tx-comment" ng-show="btx.comment">
<i class="fi-comment-quotes"></i> {{btx.comment}}
</div>
</div>
2014-11-10 13:00:43 -08:00
</div>
2014-12-04 08:42:50 -08:00
2014-11-26 13:50:58 -08:00
</div>
</div>
2014-12-04 08:42:50 -08:00
</div>
<div ng-show="blockchain_txs[0].txid">
<div class="line-white"></div>
<div class="row">
<div class="large-9 columns">
<pagination page="currentPage" total-items="totalItems" items-per-page="itemsPerPage" on-select-page="selectPage(page)" max-size="10" />
</div>
<div class="large-3 columns m5t text-right size-12 show-for-large-up">
<div ng-if="generating">
<i class="fi-bitcoin-circle icon-rotate spinner"></i>
<span translate>Generating file...</span>
2014-11-26 13:50:58 -08:00
</div>
2014-12-04 08:42:50 -08:00
<div ng-if="!generating">
<a class="text-gray" href="#!/history" ng-click="downloadHistory();">
<i class="fi-page-export-csv"></i>
<span translate>Download CSV file</span>
</a>
</div>
</div>
</div>
2014-12-04 08:42:50 -08:00
</div>
</div>