fixes sidebar. Amount in alternative currency breaking the layout. Vertical support for small devices
This commit is contained in:
parent
abe82dc158
commit
768dba5d53
3 changed files with 71 additions and 99 deletions
|
|
@ -1,66 +1,61 @@
|
|||
<div ng-controller="SidebarController">
|
||||
<header ng-click="toggleWalletSelection()" ng-show="$root.wallet">
|
||||
<!-- <div ng-show="$root.wallet.isShared()" ng-include="'views/includes/peer-list.html'"></div> -->
|
||||
<div class="col1 avatar-wallet m10r">
|
||||
<span>P</span>
|
||||
</div>
|
||||
<div class="col2">
|
||||
<div href="#!/receive">
|
||||
<b class="ellipsis name-wallet">{{$root.wallet.getName()}} </b>
|
||||
<p class="right size-10">[ {{$root.wallet.totalCopayers}} of {{$root.wallet.requiredCopayers}} ]</p>
|
||||
<a href="#" ng-click="refresh()">
|
||||
<div class="col1">
|
||||
<div class="avatar-wallet">P</div>
|
||||
</div>
|
||||
<div class="founds size-12">
|
||||
<!-- {{'Balance'|translate}} -->
|
||||
<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 class="alt-currency">{{totalBalanceAlternative |noFractionNumber:2}} {{alternativeIsoCode}}</span>
|
||||
<div class="col2">
|
||||
<div class="oh m5t m10r">
|
||||
<div class="right size-10">[ {{$root.wallet.totalCopayers}} of {{$root.wallet.requiredCopayers}} ]</div>
|
||||
<div class="ellipsis name-wallet">{{$root.wallet.getName()}}</div>
|
||||
</div>
|
||||
<div class="m10t" ng-show="lockedBalance">
|
||||
{{'Locked'|translate}}
|
||||
<div class="founds size-12">
|
||||
<!-- {{'Balance'|translate}} -->
|
||||
<span ng-if="$root.updatingBalance"><i class="fi-bitcoin-circle icon-rotate spinner"></i></span>
|
||||
<span ng-if="$root.wallet && !$root.updatingBalance" class="has-tip" data-options="disable_for_touch:true" tooltip-popup-delay='500' tooltip="{{lockedBalanceAlternative |noFractionNumber:2}} {{alternativeIsoCode}}" tooltip-trigger="mouseenter" tooltip-placement="bottom">{{lockedBalance || 0|noFractionNumber}} {{$root.wallet.settings.unitName}}
|
||||
</span>
|
||||
<i class="fi-info medium" tooltip="{{'Balance locked in pending transaction proposals'|translate}}" tooltip-placement="bottom"></i>
|
||||
</div>
|
||||
<!-- <div class="wfooter">
|
||||
<span ng-if="$root.wallet.isShared()">
|
||||
{{$root.wallet.requiredCopayers}} <span translate>of</span> {{$root.wallet.totalCopayers}} wallet
|
||||
<span ng-if="!$root.wallet.isReady()">
|
||||
<span class="creation"> in creation </span>
|
||||
</span>
|
||||
</span>
|
||||
</div> -->
|
||||
<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 class="alt-currency">{{totalBalanceAlternative |noFractionNumber:2}} {{alternativeIsoCode}}</span>
|
||||
</div>
|
||||
<div class="m10t" ng-show="lockedBalance">
|
||||
{{'Locked'|translate}}
|
||||
<span ng-if="$root.updatingBalance"><i class="fi-bitcoin-circle icon-rotate spinner"></i></span>
|
||||
<span ng-if="$root.wallet && !$root.updatingBalance" class="has-tip" data-options="disable_for_touch:true" tooltip-popup-delay='500' tooltip="{{lockedBalanceAlternative |noFractionNumber:2}} {{alternativeIsoCode}}" tooltip-trigger="mouseenter" tooltip-placement="bottom">{{lockedBalance || 0|noFractionNumber}} {{$root.wallet.settings.unitName}}
|
||||
</span>
|
||||
<i class="fi-info medium" tooltip="{{'Balance locked in pending transaction proposals'|translate}}" tooltip-placement="bottom"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col3">
|
||||
<a class="side-bar" title="{{'Manual Update'|translate}}" ng-disabled="$root.loading" ng-click="refresh()"> v </a>
|
||||
</div>
|
||||
</a>
|
||||
<div class="col3">
|
||||
<a href="#" class="side-bar" title="{{'Manual Update'|translate}}" ng-disabled="$root.loading" ng-click="refresh()"> v </a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div ng-if="walletSelection">
|
||||
<ul class="side-nav wallets">
|
||||
<li data-ng-repeat="item in wallets track by $index" class="nav-item" ng-if="item.id != $root.wallet.id">
|
||||
<div class="col1 avatar-wallet m10r">
|
||||
<span>P</span>
|
||||
<div class="col1">
|
||||
<div class="avatar-wallet">P</div>
|
||||
</div>
|
||||
<div class="col2">
|
||||
<a class="size-12 wallet-item" ng-click="switchWallet(item.id)">
|
||||
<div>
|
||||
<span class="ellipsis name-wallet">{{item.name || item.id}} </span>
|
||||
<p class="m0 size-10">[ {{item.totalCopayers}} of {{item.requiredCopayers}} ]</p>
|
||||
<div class="oh">
|
||||
<div class="right size-10">[ {{item.totalCopayers}} of {{item.requiredCopayers}} ]</div>
|
||||
<div class="ellipsis name-wallet">{{item.name || item.id}}</div>
|
||||
</div>
|
||||
<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 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>
|
||||
</div>
|
||||
<span ng-if="!item.isReady()">Waiting for copayers...</span>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a ui-route="{{create}}" href="#!/manage" class="button-setup add-wallet db p20h" title="Create"><i class="m5r fi-plus"></i> {{'Add Wallets' | translate }} </a>
|
||||
<a ui-route="{{create}}" href="#!/manage" class="button-setup add-wallet db p20h" title="Create"><i class="m5r fi-plus"></i> {{'Add Wallet' | translate }} </a>
|
||||
</div>
|
||||
|
||||
<ul class="side-nav" ng-if="!walletSelection && $root.wallet.isReady()">
|
||||
|
|
@ -78,14 +73,11 @@
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="pa text-gray" style="bottom: 0; left: 30%;">
|
||||
<div class="text-center lo">
|
||||
<a href="#" class="db">
|
||||
<img src="img/logo-negative-beta.svg" alt="" width="100">
|
||||
</a>
|
||||
</div>
|
||||
<div ng-include="'views/includes/version.html'"></div>
|
||||
<span ng-if="$root.wallet.isTestnet()"> [TESTNET]</span>
|
||||
</div>
|
||||
<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>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<div ng-controller="VersionController">
|
||||
<small>v{{version}}</small>
|
||||
<small>#{{commitHash}}</small>
|
||||
<small ng-if="$root.wallet.isTestnet()">[TESTNET]</small>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue