Improves datetime. Adds invoice URL

This commit is contained in:
Gustavo Maximiliano Cortez 2016-05-16 17:51:26 -03:00
commit 05e57983c6
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
5 changed files with 29 additions and 10 deletions

View file

@ -61,7 +61,7 @@
</div>
<div class="large-5 medium-5 small-5 columns text-right">
<span class="text-warning" ng-if="item.status == 'ERROR'">Error</span>
<span class="text-light" ng-if="item.status != 'ERROR'">{{item.date * 1000 | amCalendar}}</span>
<span class="text-light" ng-if="item.status != 'ERROR'">{{item.date * 1000 | amTimeAgo}}</span>
</div>
<div class="large-1 medium-1 small-1 columns text-right">
<i class="icon-arrow-right3 size-18"></i>

View file

@ -108,7 +108,7 @@
<div class="tu text-gray size-12 text-left">BitPay invoice</div>
<div class="text-bold size-16 m5t text-left">{{buy.giftCard.bitpayInvoiceId}}</div>
<button class="m20t button outline round dark-gray tiny"
ng-click="$root.openExternalLink('https://bitpay.com/invoice/' + buy.giftCard.bitpayInvoiceId)">
ng-click="$root.openExternalLink(buy.giftCard.bitpayInvoiceUrl)">
<span class="text-gray">View invoice</span>
</button>
</div>

View file

@ -25,18 +25,24 @@
</div>
<ul class="no-bullet size-14">
<li class="line-b p10 oh">
<li class="line-b p10 oh pointer" ng-click="$root.openExternalLink()">
<i class="icon-arrow-right3 size-24 right text-bold"></i>
<span class="text-gray">Claim code</span>
<span class="text-bold right enable_text_select">{{card.gcClaimCode}}</span>
</li>
<li class="line-b p10 oh">
<span class="text-gray">Created at</span>
<span class="test-gray right enable_text_select">{{card.date * 1000 | amDateFormat:'MM/DD/YYYY HH:mm a'}}</span>
</li>
<li class="line-b p10 oh">
<span class="text-gray">Status</span>
<span class="text-success right" ng-if="card.status == 'SUCCESS'">Completed</span>
<span class="text-info right" ng-if="card.status == 'PENDING'">Pending</span>
<span class="text-warning right" ng-if="card.status == 'ERROR'">Error</span>
</li>
<li class="line-b p10 oh">
<span class="text-gray">BitPay Invoice ID</span>
<li class="line-b p10 oh pointer" ng-click="$root.openExternalLink(card.bitpayInvoiceUrl)">
<i class="icon-arrow-right3 size-24 right text-gray"></i>
<span class="text-gray">BitPay Invoice</span>
<span class="text-gray right enable_text_select">{{card.bitpayInvoiceId}}</span>
</li>
</ul>