top-bar with dynamic title
This commit is contained in:
parent
ad87c4fc56
commit
096a5d0290
25 changed files with 184 additions and 80 deletions
|
|
@ -1,9 +1,6 @@
|
|||
<div class="addresses" ng-controller="AddressesController">
|
||||
<div ng-show='$root.wallet.isReady()'>
|
||||
<h1>
|
||||
<span translate>Addresses</span>
|
||||
<span class="button primary small side-bar" ng-click="newAddr()" ng-disabled="loading"><i class="fi-plus"></i></span>
|
||||
</h1>
|
||||
<h1 class="hide-for-large-up">{{$root.title}}</h1>
|
||||
<div ng-show="!addresses[0]">
|
||||
<i class="fi-bitcoin-circle icon-rotate spinner"></i>
|
||||
</div>
|
||||
|
|
@ -56,6 +53,10 @@
|
|||
<span translate ng-if="!showAll">Show all</span>
|
||||
<span translate ng-if="showAll">Show less</span>
|
||||
</a>
|
||||
|
||||
<div class="m20t">
|
||||
<a ng-click="newAddr()" ng-disabled="loading">Add <i class="fi-plus"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -4,26 +4,26 @@
|
|||
<div class="row collapse">
|
||||
<div class="large-12 columns">
|
||||
<div ng-if="!$root.wallet.publicKeyRing.isComplete()">
|
||||
<h1>
|
||||
<h2>
|
||||
<span translate>Waiting copayers for</span>
|
||||
{{$root.wallet.getName()}}
|
||||
<small>{{$root.wallet.requiredCopayers}}-{{'of'|translate}}-{{$root.wallet.totalCopayers}}</small>
|
||||
</h1>
|
||||
</h2>
|
||||
<div class="panel oh">
|
||||
<qrcode size="350" data="{{$root.wallet.getSecret()}}"></qrcode>
|
||||
<div class="secret">
|
||||
<h2 translate>Share this secret with your other copayers</h2>
|
||||
<h3 translate>Share this secret with your other copayers</h3>
|
||||
{{$root.wallet.getSecret()}}
|
||||
<span class="btn-copy" clip-copy="$root.wallet.getSecret()"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h1 ng-if="$root.wallet &&
|
||||
<h2 ng-if="$root.wallet &&
|
||||
$root.wallet.publicKeyRing.isComplete()">
|
||||
<span translate>Wallet</span> {{$root.wallet.getName()}}
|
||||
<small>{{$root.wallet.requiredCopayers}}-{{'of'|translate}}-{{$root.wallet.totalCopayers}}</small>
|
||||
<span translate>created</span>
|
||||
</h1>
|
||||
</h2>
|
||||
<div class="box-setup-copayers p20">
|
||||
<p class="text-primary m10b"
|
||||
ng-show="$root.wallet && $root.wallet.publicKeyRing.isComplete()" translate>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<div class="setup" ng-show="!loading">
|
||||
<form name="setupForm" ng-submit="create(setupForm)" novalidate>
|
||||
|
||||
<h1>{{'Create Wallet'|translate}}</h1>
|
||||
<h1 class="hide-for-large-up">{{$root.title}}</h1>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label><span translate>Wallet name</span>
|
||||
|
|
@ -51,6 +51,10 @@
|
|||
|
||||
|
||||
<div class="text-right">
|
||||
<a class="back-button m20r" href="#!/manage">
|
||||
<i class="fi-arrow-left"></i>
|
||||
<span translate>Back</span>
|
||||
</a>
|
||||
<button translate type="submit" class="button secondary m0" ng-disabled="setupForm.$invalid || loading">
|
||||
Create {{requiredCopayers}}-of-{{totalCopayers}} wallet
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<div class="row" ng-show="!loading">
|
||||
<div class="large-12 columns">
|
||||
|
||||
<h1>{{title|translate}}</h1>
|
||||
<h1 class="hide-for-large-up">{{$root.title}}</h1>
|
||||
<form name="importForm" ng-submit="import(importForm)" novalidate>
|
||||
<div ng-show="!is_iOS">
|
||||
<legend for="backupFile" class="m10b">
|
||||
|
|
@ -61,7 +61,10 @@
|
|||
|
||||
|
||||
<div class="text-right m20t">
|
||||
<a class="back-button text-white m20r" href="#!/">« <span translate>Back</span></a>
|
||||
<a class="back-button m20r" href="#!/manage">
|
||||
<i class="fi-arrow-left"></i>
|
||||
<span translate>Back</span>
|
||||
</a>
|
||||
<button translate type="submit" class="button primary m0" ng-disabled="importForm.$invalid">
|
||||
Import backup
|
||||
</button>
|
||||
|
|
|
|||
16
views/includes/head.html
Normal file
16
views/includes/head.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<div class="title">
|
||||
<h1>{{$root.title}}</h1>
|
||||
</div>
|
||||
|
||||
<div class="menu" ng-mouseover="hoverIn()" ng-mouseleave="hoverOut()"
|
||||
ng-click="hoverMenu = !hoverMenu">
|
||||
<a class="dropdown ellipsis" ng-class="{'hover': hoverMenu}">{{username}}</a>
|
||||
<ul ng-show="hoverMenu" ng-class="{'hover': hoverMenu}">
|
||||
<li>
|
||||
<a href="#!/manage" title="Manage wallets">
|
||||
<i class="fi-plus"></i> {{'Manage wallets' | translate }}</a></li>
|
||||
<li><a href="#!/" title="Close" ng-click="signout()">
|
||||
<i class="fi-power"></i> {{'Close'|translate}}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
@ -86,10 +86,6 @@
|
|||
</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="#!/" class="db p20h" title="Close" ng-click="signout()"><i class="size-21 m20r fi-power"></i> {{'Close'|translate}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="sidebar-footer text-center">
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
</div>
|
||||
|
||||
<div ng-show="!loading">
|
||||
<h1>{{'Join Wallet'|translate}}</h1>
|
||||
<h1 class="hide-for-large-up">{{$root.title}}</h1>
|
||||
<div class="row collapse">
|
||||
<div class="large-12 columns">
|
||||
<form name="joinForm" ng-submit="join(joinForm)" novalidate>
|
||||
|
|
@ -66,6 +66,10 @@
|
|||
</div>
|
||||
|
||||
<div class="text-right">
|
||||
<a class="back-button m20r" href="#!/manage">
|
||||
<i class="fi-arrow-left"></i>
|
||||
<span translate>Back</span>
|
||||
</a>
|
||||
<button translate type="submit" class="button primary m0" ng-disabled="joinForm.$invalid">Join</button>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<div class="backup" ng-controller="ManageController">
|
||||
<h1 translate>Manage Wallets</h1>
|
||||
<h1 class="hide-for-large-up">{{$root.title}}</h1>
|
||||
<div class="row collapse">
|
||||
<div class="large-12 columns">
|
||||
<div class="large-4 columns" >
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<div class="backup" ng-controller="MoreController">
|
||||
<h1 translate>Settings </h1>
|
||||
<h1 class="hide-for-large-up">{{$root.title}} </h1>
|
||||
<div class="large-12 columns panel">
|
||||
<h2><i class="fi-download m10r"></i> <span translate>Backup</span> </h2>
|
||||
<p translate class="text-gray">
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
</div>
|
||||
<div ng-show="txs.length != 0" class="large-12 line-dashed" style="padding: 0;"></div>
|
||||
|
||||
<h1>{{title|translate}}</h1>
|
||||
<h1 class="hide-for-large-up">{{$root.title}}</h1>
|
||||
<div class="row collapse m0">
|
||||
<div class="large-6 columns">
|
||||
<form name="sendForm" ng-submit="submitForm(sendForm)" novalidate>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<div class="transactions" data-ng-controller="TransactionsController" data-ng-init="update()">
|
||||
<div ng-show='$root.wallet.isReady()'>
|
||||
<h1 ng-show="wallet.isShared()">
|
||||
<span translate>Transaction Proposals</span> <small>({{txs.length}})</small></h1>
|
||||
<h2 ng-show="wallet.isShared()">
|
||||
<span translate>Transaction Proposals</span> <small>({{txs.length}})</small></h2>
|
||||
<div class="large-12" ng-show="wallet.isShared()">
|
||||
|
||||
<div class="last-transactions" ng-repeat="tx in txs | paged">
|
||||
|
|
@ -14,12 +14,12 @@
|
|||
<pagination ng-show="txs.length > txpItemsPerPage" total-items="txs.length" items-per-page="txpItemsPerPage" page="txpCurrentPage" on-select-page="show()" class="pagination-small primary"></pagination>
|
||||
</div>
|
||||
|
||||
<h1 ng-class="{'line-dashed': wallet.isShared()}">
|
||||
<h2 ng-class="{'line-dashed': wallet.isShared()}">
|
||||
<span translate>Last transactions</span>
|
||||
<small ng-hide="wallet.isShared() || !loading">
|
||||
<i class="fi-bitcoin-circle icon-rotate spinner"></i>
|
||||
</small>
|
||||
</h1>
|
||||
</h2>
|
||||
|
||||
<div class="large-12">
|
||||
<div class="m10b size-12" ng-hide="wallet.totalCopayers == 1">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue