copay/views/includes/sidebar.html

97 lines
4.6 KiB
HTML
Raw Normal View History

<div ng-controller="SidebarController" ng-init="getWallets()">
2014-10-23 08:29:38 -07:00
<header ng-show="$root.wallet">
<div class="col1">
<div class="avatar-wallet">{{$root.wallet.getName() | limitTo: 1}}</div>
</div>
2014-11-25 10:10:21 -08:00
<div class="col2" ng-class="{'col2_full':!wallets[0]}">
2014-10-23 08:29:38 -07:00
<div class="oh m5t m10r">
2014-10-30 12:13:56 -07:00
<div class="right size-10">[ {{$root.wallet.requiredCopayers}} of {{$root.wallet.totalCopayers}} ]</div>
2014-10-23 08:29:38 -07:00
<div class="name-wallet">
<div class="ellipsis">{{$root.wallet.getName()}}</div>
</div>
2014-10-17 07:37:41 -07:00
</div>
2014-10-23 08:29:38 -07:00
<div class="founds size-12">
<span ng-if="!$root.wallet.isReady()">Waiting for copayers...</span>
<div ng-if="$root.wallet.isReady()">
<span ng-if="$root.updatingBalance"><i class="fi-bitcoin-circle icon-rotate spinner"></i></span>
<div ng-if="$root.wallet && !$root.updatingBalance" data-options="disable_for_touch:true">
<b class="m5r">{{totalBalance || 0 |noFractionNumber}} {{$root.wallet.settings.unitName}}</b>
<span ng-if="alternativeBalanceAvailable" class="alt-currency">{{totalBalanceAlternative |noFractionNumber:2}} {{alternativeIsoCode}}</span>
<span ng-if="!alternativeBalanceAvailable" class="alt-currency">N/A</span>
</div>
</div>
2014-10-20 14:44:24 -07:00
</div>
2014-10-23 08:29:38 -07:00
</div>
2014-11-25 10:10:21 -08:00
<div class="col3" ng-if="wallets[0]">
<a ng-class="{'selected':walletSelection}"
2014-10-23 08:29:38 -07:00
ng-click="toggleWalletSelection()">
<span ng-show="!walletSelection">
2014-10-29 05:33:16 -07:00
<i class="icon-arrow-down2"></i>
2014-10-23 08:29:38 -07:00
</span>
<span ng-show="walletSelection">
2014-10-29 05:33:16 -07:00
<i class="icon-arrow-up2"></i>
2014-10-23 08:29:38 -07:00
</span>
</a>
</div>
2014-10-16 06:45:06 -07:00
</header>
<div class="locked" ng-show="lockedBalance && !walletSelection">
<span class="text-gray">
<i class="fi-lock"></i> {{'Locked'|translate}} &nbsp;
</span>
<span ng-if="$root.updatingBalance"><i class="fi-bitcoin-circle icon-rotate spinner"></i></span>
<span ng-if="$root.wallet && !$root.updatingBalance" class="text-gray"><b>{{lockedBalance || 0|noFractionNumber}} {{$root.wallet.settings.unitName}} </b> - {{lockedBalanceAlternative |noFractionNumber:2}} {{alternativeIsoCode}}
</span>
<i class="fi-info medium right text-gray size-14"
tooltip="{{'Balance locked in pending transaction proposals'|translate}}"
tooltip-placement="left"
data-options="disable_for_touch:true"
tooltip-popup-delay='500'></i>
</div>
2014-11-04 12:57:23 -08:00
<div>
2014-11-25 10:10:21 -08:00
<ul class="side-nav wallets" ng-class="{'pullDown': walletSelection}" ng-show="wallets[0]">
2014-11-04 12:57:23 -08:00
<li data-ng-repeat="item in wallets track by $index" class="nav-item" ng-if="item.id != $root.wallet.id" ng-click="switchWallet(item.id)">
<div class="col1">
<div class="avatar-wallet">{{(item.name || item.id) | limitTo: 1}}</div>
2014-10-17 07:37:41 -07:00
</div>
2014-10-20 14:44:24 -07:00
<div class="col2">
2014-11-04 12:57:23 -08:00
<a class="size-12 wallet-item" >
<div class="oh">
2014-10-30 12:13:56 -07:00
<div class="right size-10 type-wallet">[ {{item.requiredCopayers}} of {{item.totalCopayers}} ]</div>
<div class="ellipsis name-wallet">{{item.name || item.id}}</div>
2014-10-20 14:44:24 -07:00
</div>
<div class="oh">
<span ng-if="item.isReady() && item.balanceInfo.updatingBalance"><i class="fi-bitcoin-circle icon-rotate spinner"></i></span>
<div ng-if="item.isReady() && !item.balanceInfo.updatingBalance" data-options="disable_for_touch:true">
<b class="m5r size-12">{{item.balanceInfo.totalBalance || 0 |noFractionNumber}} {{item.settings.unitName}}</b>
<span class="alt-currency size-10">{{item.balanceInfo.totalBalanceAlternative |noFractionNumber:2}} {{item.balanceInfo.alternativeIsoCode}}</span>
</div>
<span ng-if="!item.isReady()">Waiting for copayers...</span>
2014-10-20 14:44:24 -07:00
</div>
</a>
</div>
2014-10-17 07:37:41 -07:00
</li>
</ul>
</div>
2014-11-25 10:10:21 -08:00
<ul class="side-nav" ng-if="(!walletSelection || !wallets[0]) && $root.wallet.isReady()">
2014-10-16 08:01:11 -07:00
<li data-ng-repeat="item in menu" ui-route="{{item.link}}" class="nav-item" data-ng-class="{active: isActive(item)}">
<a href="#!/{{item.link}}" ng-click="toggleCollapse()" class="db p20h">
<i class="size-21 m20r {{item.icon}}"></i> {{item.title|translate}}
<span class="right">
<span class="label alert" ng-if="item.link=='send' && $root.pendingTxCount > 0">{{$root.pendingTxCount}}</span>
2014-10-16 08:01:11 -07:00
</span>
</a>
</li>
</ul>
<div class="sidebar-footer text-center">
<a href="#!/" class="db">
<img src="img/logo-negative-beta.svg" alt="Copay" width="100">
</a>
<div ng-include="'views/includes/version.html'"></div>
</div>
</div>
2014-10-16 08:01:11 -07:00